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.

Point plotting within a volume

Please login with a confirmed email address before reporting spam

Hello, thanks for looking at this,

I want to get tabled results at a certain point within my model. I create my multiphysics simulation by first importing a mesh from NASTRAN, and then simulating (so I normally can't create points from geometry this way).

Is it possible to take the geometry I get from a mesh import, select a point in 3D, and then get a output value (in my case: pressure)? I can view the volume and surface normally, but this is for some post processing.

Thanks for your help!

5 Replies Last Post 28.03.2017, 12:46 GMT-4
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 13.03.2017, 08:08 GMT-4
Hello Brian,
Have you tried creating a Cut Point 3D data set and using that for your post processing?
Best regards,
Jeff
Hello Brian, Have you tried creating a Cut Point 3D data set and using that for your post processing? Best regards, Jeff

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 15.03.2017, 14:08 GMT-4
Hello,

I'm looking for something like this:

www.comsol.com/community/forums/general/thread/35590/

where I can input a series of x,y and z coordinates and get the values that way.

I tried to do two things to facilitate this: one, what was mentioned in that with the scatter volume (but I needed to input a radius, not sure what that was about) and also through exporting a grid of points and finding the closest value in the grid to the actual coordinate I have, but I wasn't able to export a fine enough grid for what I wanted due to memory problems.

Ideally I want to get values at whatever x,y,z coordinate I want. If I have to do it manually I will, albeit it will be a long annoying process. Is there a way to do this?

Thanks!
Hello, I'm looking for something like this: https://www.comsol.com/community/forums/general/thread/35590/ where I can input a series of x,y and z coordinates and get the values that way. I tried to do two things to facilitate this: one, what was mentioned in that with the scatter volume (but I needed to input a radius, not sure what that was about) and also through exporting a grid of points and finding the closest value in the grid to the actual coordinate I have, but I wasn't able to export a fine enough grid for what I wanted due to memory problems. Ideally I want to get values at whatever x,y,z coordinate I want. If I have to do it manually I will, albeit it will be a long annoying process. Is there a way to do this? Thanks!

Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 15.03.2017, 14:39 GMT-4
Hi Brian,
It sounds like you are after a Cut Point 3D data set.
If the issue is that you have many such points, as suggested by the last sentence, then you could create an app to read the coordinates for all the points from file and automate the process of creating the data sets and evaluating your field (pressure) at those points.
Or you could do essentially the same via MATLAB if your license includes LiveLink for MATLAB.
I am sure there are a bunch of other ways.
Best,
Jeff
Hi Brian, It sounds like you are after a Cut Point 3D data set. If the issue is that you have many such points, as suggested by the last sentence, then you could create an app to read the coordinates for all the points from file and automate the process of creating the data sets and evaluating your field (pressure) at those points. Or you could do essentially the same via MATLAB if your license includes LiveLink for MATLAB. I am sure there are a bunch of other ways. Best, Jeff

Gunnar Andersson COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 16.03.2017, 03:33 GMT-4

Ideally I want to get values at whatever x,y,z coordinate I want. If I have to do it manually I will, albeit it will be a long annoying process. Is there a way to do this?


If you have many (x, y, z)-triplets in a file, then I suggest the following approach:
- Create a 3D Cut Point data set.
- Set Entry method =From file.
- Browse to the file containing your points. The file format is assumed to be one line for each point. If your file has some other format, then you have to preprocess it in some external program.
- Results > Export: Create a Data export.
- Select the cut point data set created above.
- Choose the expression(s) to evaluate and browse to an output file. Click on Export.

An alternative is to use a Results > Derived Values > Point Evalution feature. Then you see the results in a table in the GUI. This approach works for a small to moderate number of points, but for a large number of points it becomes unwieldy.
[QUOTE] Ideally I want to get values at whatever x,y,z coordinate I want. If I have to do it manually I will, albeit it will be a long annoying process. Is there a way to do this? [/QUOTE] If you have many (x, y, z)-triplets in a file, then I suggest the following approach: - Create a 3D Cut Point data set. - Set Entry method =From file. - Browse to the file containing your points. The file format is assumed to be one line for each point. If your file has some other format, then you have to preprocess it in some external program. - Results > Export: Create a Data export. - Select the cut point data set created above. - Choose the expression(s) to evaluate and browse to an output file. Click on Export. An alternative is to use a Results > Derived Values > Point Evalution feature. Then you see the results in a table in the GUI. This approach works for a small to moderate number of points, but for a large number of points it becomes unwieldy.

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 28.03.2017, 12:46 GMT-4
Hello, sorry for responding late to this, I was at a conference the past week,

The former worked perfectly, thanks!
Hello, sorry for responding late to this, I was at a conference the past week, The former worked perfectly, thanks!

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.