Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

More on extracting data from boundaries (using MATLAB scripting)

Please login with a confirmed email address before reporting spam

I am using Comsol 3.5a and running a weak form system of PDEs on a roughly ellipsoid 3D geometry with the semi-major axis in the x-direction. (It looks like and represents an insect egg early in development.)

The typical experimental procedure for data collection involves positioning the egg on it side and measuring fluorescent surface intensity values at a series of x,y-coordinates along its semi-major axis.

I need to fit my model to data, so I need to extract concentration values from my model boundaries in a similar manner.

I can specify these x,y-coordinates, but I don't know the corresponding z-values (the geometry isn't perfectly elliptical). As a result, I can't simply plug everything into postinterp(fem, 'conc', [x y z]) and get my values.

Is there a way to interrogate the geometry to find "missing" boundary coordinate values? I.e., given (x,y) = (0.2,0.2), is there a way to return the corresponding z-values on all boundaries at that x,y-point.

I've looked at the geominfo() and postcoord() functions. While these have options to return points from the geometry (like vertices), they don't seem to handle simple geometric questions like mine. (Given x and y, what are corresponding boundary z-values?)

Has anyone found a way to do this? If possible, I'd like to avoid the hassle of defining x,y coordinates and finding nearest neighbors on the surface. These projected coordinates are messy and sometimes lead to NaNs from postinterp.

Thanks much!


Edit: I've also read through www.comsol.com/community/forums/general/thread/287/

It didn't address the question.

0 Replies Last Post May 27, 2010, 11:06 a.m. EDT
COMSOL Moderator

Hello James Hengenius

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

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.