Evaluation of a value at a specific point within a Cut Point 3D Grid Dataset

Please login with a confirmed email address before reporting spam

Hopefully a quick and easy one!

I have created a 3D simulation of an arc magnet that moves around in space, and want to evaluate the z component of field at specific points within a 3D Cut Point dataset.

Obviously if the dataset had 1 discrete point, I would just evaluate mfnc.Bz for the dataset.

However, with a grid definition of the dataset (see attachment) I want to evaluate it at a specific point within that grid definition. I have customised the point number variable to be "chip_n" so clearly need to use that within my expression to evaluate, but I cannot determine what the correct syntax for this is!

In my attached example there are 54 discreet points defined by my grid, and I would like (for example) to determine the difference in the z field at points 1 and 10.

Thanks in advance for your guidance...

Mark



4 Replies Last Post Feb 21, 2025, 12:35 p.m. EST
Edgar J. Kaiser Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 3 days ago Feb 19, 2025, 1:26 p.m. EST

Hi Mark,

just a wild guess: could withsol() do the trick.

Cheers Edgar

-------------------
Edgar J. Kaiser
emPhys Physical Technology
www.emphys.com
Hi Mark, just a wild guess: could withsol() do the trick. Cheers Edgar

Please login with a confirmed email address before reporting spam

Posted: 2 days ago Feb 20, 2025, 6:17 a.m. EST

Hi Edgar,

I did try looking into using "withsol()", but I still couldn't see how to develop an expression that drills down to an individual point within a dataset. The examples in the manual don't really relate to what I am trying to achieve.

Thanks for the idea though!

Will let you know if I find out a suitable method.

Mark

Hi Edgar, I did try looking into using "withsol()", but I still couldn't see how to develop an expression that drills down to an individual point within a dataset. The examples in the manual don't really relate to what I am trying to achieve. Thanks for the idea though! Will let you know if I find out a suitable method. Mark

Gunnar Andersson COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 17 hours ago Feb 21, 2025, 10:30 a.m. EST

There's no expression syntax for referring to a point that has a certain value of chip_n. It might be possible to do what you want using a Point Evaluation in a Derived Values or an Evaluation Group: I think that the points are ordered in increasing order with respect to chip_n, and if they aren't, then you can evaluate chip_n in addition to the expression that you are interested in. This leaves you with a table of values. You can create a model method that extracts the values you're interested in. This is admittedly more complicated that a dedicated expression syntax would have been.

There's no expression syntax for referring to a point that has a certain value of chip_n. It might be possible to do what you want using a Point Evaluation in a Derived Values or an Evaluation Group: I think that the points are ordered in increasing order with respect to chip_n, and if they aren't, then you can evaluate chip_n in addition to the expression that you are interested in. This leaves you with a table of values. You can create a model method that extracts the values you're interested in. This is admittedly more complicated that a dedicated expression syntax would have been.

Edgar J. Kaiser Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 15 hours ago Feb 21, 2025, 12:35 p.m. EST

Can a filter expression help in a point plot?

-------------------
Edgar J. Kaiser
emPhys Physical Technology
www.emphys.com
Can a filter expression help in a point plot?

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.