Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
Plot 3d result only in specific area
Posted 28.05.2013, 06:35 GMT-4 Results & Visualization Version 4.4 8 Replies
Please login with a confirmed email address before reporting spam
Is it possible to plot a 3d surface data only in specific designated area? I have a 3d temperature data that has a rectangular shape and I want to plot only the upper-right area of that data. The reason is because I want to make a chart for that area using Matlab. Therefore I need the other area to be 0.
Regards.
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
My temperature data is located in the domain of 0<x<0.593 m, -0.25<y<0.25m, and 0.055<z<0.105. I try to fill the filter expression: (x<=0.2) && (y<=0) && (z=0.08), but a "Syntax error in expression" error came out. Did I do something wrong?
Please login with a confirmed email address before reporting spam
My temperature data is located in the domain of 0<x<0.593 m, -0.25<y<0.25m, and 0.055<z<0.105. I try to fill the filter expression: (x<=0.2) && (y<=0) && (z=0.08), but a "Syntax error in expression" error came out. Did I do something wrong?
Multiphysics' comparison operator is ==, not =, so you have to replace "z=0.08" with "z==0.08". In your case, the expression (0<x) && (x<0.593) && (-0.25<y) && (0.25<y) && (0.055<z) && (z<0.105) should do the trick.
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
There are a couple of things that you can do to hide surfaces or to plot only on some surfaces:
- Under the View node (typically Component>Definitions>View), add a Hide Geometric Entities node, where you can specify which entities to hide, such as boundaries (surfaces) in a 3D model. The boundaries that you add to the Geometric Entity Selection in the Hide Geometric Entities node's settings window are then hidden for that view when you plot 3D results, for example.
- Under the Results>Data Sets node, for the data set (such as a Solution data set) that you plot, add a Selection subnode, where the default selection is the entire geometry, but you can choose to include only some domains or boundaries (depending on the type of plot). The plots using that data set then only include the selected geometric entities.
Best regards,
Magnus Ringh, COMSOL
Please login with a confirmed email address before reporting spam
Here are a couple more resources for what you were asking about, Matt. These pages give a good rundown of how to plot a solution on only the surfaces you want selected, how to hide different parts of a component, etc:
How to include different surfaces in results plots: www.comsol.com/blogs/include-geometry-surfaces-solution-plots/
Short videos that give an overview of advanced visualization techniques (they are from 4.3b, but the information still applies): www.comsol.com/blogs/advanced-visualization-techniques-in-postprocessing/
Several shortcuts and tricks using the Graphics window (the last section discusses the view and selection features that Magnus mentioned): www.comsol.com/blogs/the-graphics-window-effective-beautiful-postprocessing/
Regards,
Lexi Carver, COMSOL
Please login with a confirmed email address before reporting spam
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.