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.

How to display "Cut Point 3D" data sets?

Please login with a confirmed email address before reporting spam

Hi there,

I want to simulate and visualize discrete measurement points which I import from another application as distinguished "Point" objects in the geometry of my 3D-model. So far I've created a "Cut Point 3D" data set for each measurement point. But how do I display the solution at the given points in the 3D Plot Group?

For "Cut Plane" data sets there's the "Surface" plot, for "Cut Line 3D" data sets there's the "Line" plot, but I can't find any suitable plot for "Cut Point 3D" data sets. Neither did I find anything about that in the Comsol User's Guide.

Any advice which plot to take would be really appreciated.

Thanks a lot in advance,
Joerg

6 Replies Last Post Mar 25, 2013, 4:35 a.m. EDT
Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Mar 19, 2013, 5:25 a.m. EDT
Hi,

There are two options that are useful for "Cut Point 3D" data sets:

To display the value of a property at a point, add a Point Evaluation node under Results>Derived Values. Then select the "Cut Point 3D" data set that you want to use from the "Data set" list and choose an expression to evaluate. The value(s) of that expression appears in a Table window.

To plot the value of a property at a point, add a 1D Plot Group node under Results; then right-click that 1D Plot Group node and add a Point Graph node. Then select the "Cut Point 3D" data set that you want to use from the "Data set" list in the 1D Plot Group and choose an expression to plot in the Point Graph. The plot is probably most useful to plot values in a point over time or for a parametric sweep. For a single stationary solution the plot shows a single "dot" for the value of the expression in that cut point.

You can plot the values at several cut points in the same graph by adding additional Point Graph nodes under the same 1D Plot Group and select a different "Cut Point 3D" data set in each Point Graph node (instead of the default setting to use the data set "From parent").

Best regards,
Magnus Ringh, COMSOL
Hi, There are two options that are useful for "Cut Point 3D" data sets: To display the value of a property at a point, add a Point Evaluation node under Results>Derived Values. Then select the "Cut Point 3D" data set that you want to use from the "Data set" list and choose an expression to evaluate. The value(s) of that expression appears in a Table window. To plot the value of a property at a point, add a 1D Plot Group node under Results; then right-click that 1D Plot Group node and add a Point Graph node. Then select the "Cut Point 3D" data set that you want to use from the "Data set" list in the 1D Plot Group and choose an expression to plot in the Point Graph. The plot is probably most useful to plot values in a point over time or for a parametric sweep. For a single stationary solution the plot shows a single "dot" for the value of the expression in that cut point. You can plot the values at several cut points in the same graph by adding additional Point Graph nodes under the same 1D Plot Group and select a different "Cut Point 3D" data set in each Point Graph node (instead of the default setting to use the data set "From parent"). Best regards, Magnus Ringh, COMSOL

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Mar 20, 2013, 3:55 a.m. EDT
Hi Magnus,

thanks for the advice. However, I still have questions. The "Point Graph" node only gives me a function graph. What I'd like to have, is rainbow colored points that are displayed within the 3D geometry of a 3D plot.. The same way as a "Line" node is displayed as rainbow colored line within the 3D geometry of a 3D plot.

Is that somehow possible?

Greetings,
Joerg
Hi Magnus, thanks for the advice. However, I still have questions. The "Point Graph" node only gives me a function graph. What I'd like to have, is rainbow colored points that are displayed within the 3D geometry of a 3D plot.. The same way as a "Line" node is displayed as rainbow colored line within the 3D geometry of a 3D plot. Is that somehow possible? Greetings, Joerg

Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Mar 20, 2013, 6:32 a.m. EDT
Hi,

Thanks for this input!

One way of getting something like what you want to plot is to use a Scatter Volume plot (which you add from the More Plots submenu). In the Expression section then use the spatial coordinates (x, y, z), and in the Evaluation Points section you enter (manually; no connection to the Cut Point data sets) the coordinates of the points (change the "Entry method" to Coordinates). In the Color section you select the expression used to color the points. You may also need to tweak the settings under Radius to plot points (spheres) of a suitable size.

Best regards,
Magnus Ringh, COMSOL
Hi, Thanks for this input! One way of getting something like what you want to plot is to use a Scatter Volume plot (which you add from the More Plots submenu). In the Expression section then use the spatial coordinates (x, y, z), and in the Evaluation Points section you enter (manually; no connection to the Cut Point data sets) the coordinates of the points (change the "Entry method" to Coordinates). In the Color section you select the expression used to color the points. You may also need to tweak the settings under Radius to plot points (spheres) of a suitable size. Best regards, Magnus Ringh, COMSOL

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Mar 22, 2013, 9:36 a.m. EDT
Hi Magnus,

thanks für that answer. In the Scatter Volume Plot one can only enter a regular grid, right?
Let's say I only want to plot the values in the two points (1,2,3) and (6,7,8), I would enter in the coordinate fields of the "Evaluation Points" section the following:

x grid points: 1, 6
y grid points: 2, 7
z grid points: 3, 8

However, this doesn't plot two points, but eight points (taking the cartesian product of the coordinates). Is there a way to enter a user-defined list of points? Ultimately, I am looking for a plot that behaves like MATLAB's "scatter3"-function.

Greetings,
Joerg
Hi Magnus, thanks für that answer. In the Scatter Volume Plot one can only enter a regular grid, right? Let's say I only want to plot the values in the two points (1,2,3) and (6,7,8), I would enter in the coordinate fields of the "Evaluation Points" section the following: x grid points: 1, 6 y grid points: 2, 7 z grid points: 3, 8 However, this doesn't plot two points, but eight points (taking the cartesian product of the coordinates). Is there a way to enter a user-defined list of points? Ultimately, I am looking for a plot that behaves like MATLAB's "scatter3"-function. Greetings, Joerg

Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Mar 25, 2013, 3:38 a.m. EDT
Hi,

This is how the Scatter Volume plot works, and it is therefore not ideal for what you want to do. What you enter are really not two distinct evaluation points; instead, they are points on axes that define a grid. In general, for Scatter and Arrow plots, it is more useful to evaluate on a grid than to evaluate in a set of points.

Best regards,
Magnus Ringh, COMSOL
Hi, This is how the Scatter Volume plot works, and it is therefore not ideal for what you want to do. What you enter are really not two distinct evaluation points; instead, they are points on axes that define a grid. In general, for Scatter and Arrow plots, it is more useful to evaluate on a grid than to evaluate in a set of points. Best regards, Magnus Ringh, COMSOL

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Mar 25, 2013, 4:35 a.m. EDT
Hi,

thanks for the answer. I think some users might benefit from an additional scatter plot that behaves like MATLAB's scatter3 function in order to visualize arbitrary measurement points who have been imported from some other simulation software. So maybe that could be added to the feature request list for one of the next releases? I certainly would appreciate this feature.

Thank you once again, Magnus, for all the valuable explanations you've given me here.

Greetings,
Joerg
Hi, thanks for the answer. I think some users might benefit from an additional scatter plot that behaves like MATLAB's scatter3 function in order to visualize arbitrary measurement points who have been imported from some other simulation software. So maybe that could be added to the feature request list for one of the next releases? I certainly would appreciate this feature. Thank you once again, Magnus, for all the valuable explanations you've given me here. Greetings, Joerg

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.