Personal tools
You are here: Home User Section Tutorials OCC Exercise 7

Usage POST-PRO for visualization of meshes and results

Usage Paravis for visualization of meshes and results

This sample is known to work on the latest SALOME release.
The compatibility with previous versions of SALOME is not guaranteed, though the sample can work on old versions also.

Objective

This exercise illustrates the use of POST-PRO SALOME for visualization of mesh and scalar and vector result fields. Note that Gauss points, Animation, Tables and 2D plots functionality are not covered by this exercise.

Import med file

The sequence of actions is as follows:
  • Launch SALOME.
  • Create a new study.
  • Launch Paravis module.
  • Import file TimeStamps.med (menu File/Open ParaView File...)
  • Import file pointe.med (menu File/Open ParaView File... )

Visualization of meshes

  • Select dom/Family/On Edges in the object browser – popup:
    Create presentation
    Representation: Surface
    Representation: Shrink
    Representation: Points















  • Select dom/Family/On Cells in the object browser – popup:
    Create presentation
    Representation: Surfaceframe



















  • Select maa1/Family/On Cells in the object browser – popup:
    Create presentation
    Representation: Surface
    Representation: Shrink

















  • Select maa1/Groupes/groupe1 in the object browser – popup:
    Create presentation
    Representation: Surface
    Representation: Shrink
  





  

Scalar map

Scalar map is the basic type of visualization used in all other presentations. Scalar map can be built for the whole mesh or group. Each cell is colored according to field value in it. Scalar map can be created for one time stamp or the whole set of field time stamps. In the last case Scalar map can be seen for each time stamp using animation tools. Both scalar and vector fields can be visualized. For vector field modulus of vector or one of its components can be selected for visualization. Scalar bar shows correspondence between used color and value. Linear and logarithmic scaling can be applied to the field values coloring and scalar bar. User defines range of scalar bar (minimum and maximum values), position of origin, scalar bar sizes and orientation, number of colors and labels, font properties of title and labels.
  • Select dom/fields/pression/0.157446 in the object browser
  • popup: Scalar Map
    Check “Use field range” radio button
    Nb of colors: 64, Nb of labels: 5
    Orientation: Vertical
    Origin X:0.05, Y:0.05
    Dimensions Width: 0.1, Height:0.9
    Check “Save as default values” checkbox
    Validate
  • Representation: Surfaceframe


  • Select dom/fields/temperature in the object browser
  • popup: Scalar Map
    Validate default values
  • Representation: Surfaceframe
  • Open "Slider" tool bar Menu View->Windows->Slider
  • Start animation
  • Click pause button
  • Move slider to time 1.09421








  • Select maa1/fields/fieldcelldouble/0 in the object browser
  • popup: Scalar Map
    Select Scalar mode: Modulus
    Check “Use imposed range” radio button
    Max: 5
    Tab “Input”: Check “Use only groups” checkbox
    Select groupe1, Click "+"
    Validate
  • Representation: Surfaceframe




ISO Surfaces

ISO Surfaces are surfaces with equal field values. User defines number of surfaces, minimum and maximum values to be displayed with ability to adopt scalar bar range to these values. Both scalar and vector fields can be visualized.
Select dom/fields/vitesse in the object browser
  • popup: ISO Surfaces
    Nb of surfaces: 10
    Validate
    Representation: Points
    Start animation
    Click pause button
    Move slider to time 0.797247







Select maa1/fields/fieldcelldouble/0 in the object browser
  • popup: ISO Surfaces
    Nb of surfaces: 8
    Maximum value: 5.5
    Click “Update scalar bar range with these values” button
    Check “Show values” checkbox
    Nb per surface: 1
    Validate
Show maa1/Family/On Cells in wireframe mode



Cut Planes

Cut Planes presents distribution of field values along a definite number of planes cutting the given mesh. User defines number of planes and their position. It is possible to deform plane correspondingly to field value. Select dom/fields/vitesse/0.657864 in the object browser
  • popup: Cut planes
    Orientation: select “//Y-Z” radio button
    Rotation around Y (Z to X): 0
    Rotation around Z (X to Y): 45
    Number of planes: 10
    Check “Deformation” checkbox
    Select Vectors: vitesse
    Scale factor: 0.2
    Validate
Show dom/Family/On Edges in wireframe     mode






Select maa1/fields/fieldcelldouble/0 in the object browser
  • popup: Cut planes
    Orientation: select “//Y-Z” radio button
    Rotation around Y (Z to X): 30
    Rotation around Z (X to Y): 0
    Number of planes: 7
    Validate
Show maa1/Family/On Cells in wireframe mode



Cut Lines

Cut lines are generated by section of mesh by base plane and simultaneously a set of parallel planes and colored according to field values. A data table can be created from Cut Lines presentation. This table consists from the field scalar values located on each cut line. The data table can be used for construction of a 2d plot of curves.
  • Select dom/fields/vitesse/0.657864 in the object browser
  • popup: Cut lines
    Orientation: select “//Z-X” radio button
    Rotation around X (Y to Z): 0
    Rotation around Y (Z to X): 0
    Uncheck “Generate Data Table” and “Generate curves” checkboxes
    Tab “Cut planes”
    Orientation: select “//Y-Z” radio button
    Rotation around Y (Z to X): 0
    Rotation around Z (X to Y): 45
    Number of planes: 10
    Validate
  • Show Cut planes and dom/Family/On Edges


  • Select maa1/fields/fieldcelldouble/0 in the object browser
  • popup: Cut lines
    Orientation: select “//Z-X” radio button
    Rotation around Z (X to Y): 0
    Rotation around X (Y to Z): 0
    Check “Generate Data Table” and “Generate curves” checkboxes
    Tab “Cut planes”
    Orientation: select “//Y-Z” radio button
    Rotation around Y (Z to X): 30
    Rotation around Z (X to Y): 0
    Number of planes: 7
    Validate
  • Show Cut planes and maa1/Family/On Cells.
  • Decrease opacity of Cut planes up to 20%.











  • Select maa1/fields/fieldcelldouble/0/CutLines/Table in the object browser
  • popup: Show Table


OCC7_screen12

OCC7_screen12


OCC7_screen12

  • Activate Plot2D scene to check curves visualization

OCC7_screen12

Deformed shape

Deformed shape visualizes vector values by shifting mesh
  • Select dom/fields/vitesse /0.657864 in the object browser
  • popup: Deformed shape
    Scale factor: 0.1
    Check “Magnitude coloring” check box
    Validate
  • Representation: Points











  • Select maa1/fields/fieldcelldouble/0 in the object browser
  • popup: Deformed shape
    Scale factor: 0.3
    Check “Magnitude coloring” check box
    Validate
  • Representation: wireframe
Show maa1/Family/On Cells in wireframe mode



Vectors

Vector values can be shown as vectors with different presentation (pointer type and position, line width, colored and not).
  • Select dom/fields/vitesse /0.657864 in the object browser
  • popup: Vectors
    Scale factor: 0.1
    Line width: 2
    Check “Magnitude coloring” and “Use glyphs” check boxes
    Glyph type: Arrows
    Glyph position: Tail
    Validate









  • Select maa1/fields/fieldcelldouble/0 in the object browser
  • popup: Vectors
    Scale factor: 0.4
    Line width: 2
    Check “Magnitude coloring” and “Use glyphs” check boxes
    Glyph type: Cones (6)
    Glyph position: Head
    Validate
  • Show maa1/Family/On Cells in wireframe mode



Stream Lines

Stream Lines presentation transforms vectors having most similar direction into lines thus that vectors are tangent to line. A streamline can be thought of as the path that a massless particle takes in a vector field. User selects controls to set the relative number of starting points, the size of the output line segments composing the streamline, the accuracy of streamline construction and line smoothness, the maximum length of the stream line, direction of streamlines.
  • Select dom/fields/vitesse /0.657864 in the object browser
  • popup: Stream Lines
    Source type: None
    Used points: 0.3
    Integration Step: 0.01
    Propagation Time: 10
    Direction: Both
    Check “Magnitude coloring” check box
    Validate

Plot 3D

Plot 3D visualizes field values for cells lying on cutting plane as a smooth surface or a set of contours using relief and coloring. User selects orientation of cut plane, rotations of the plane in 3D space around the axes of the selected orientation (in degrees), position of plane (relative or absolute), presentation type (Surface, Contour) and input number of contours (active when Contour presentation type is selected).
  • Select maa1/fields/fieldcelldouble/0 in the object browser
  • popup: Plot 3D
    Orientation: select “//Z-X” radio button
    Rotation around Z (X to Y): 30
    Rotation around X (Y to Z): 0
    Position: Check “Relative” check box
    Value: 0.7
    Scale factor: 0.35
    Presentation type: Check “Surface” check box
    Validate
  • Show maa1/Family/On Cells in wireframe mode






  • Select maa1/fields/fieldcelldouble/0/Plot 3D in the
  • object browser - popup: Edit
    Presentation type: Check “Contour” check box
    Number of contours:20
    Validate



Scalar Map on Deformed Shape

Scalar Map on Deformed Shape is a mix of 2 presentations. Scalar Map for one field is built on a Deformed Shape for another field (only vector field can be used).
  • Select maa1/fields/fieldcelldouble/0 in the object browser
  • popup: Deformed Shape and Scalar Map
    Scale factor: 0.3
    Scalar field: fieldcelldouble
    Current time stamp: 0
    Tab “Scalar bar”: Check “Use imposed range” radio button
    Max: 5
    Tab “Input”: Check “Use only groups” checkbox
    Select groupe1
    Validate
    Compare result with scalar map (see 7.4 Scalar map). Other field can be used.




  • Select maa1/fields/fieldcelldouble/0/ScalarDefShape in the object
    browser - popup: Edit
    Scalar field: fieldnodeint
    Tab “Scalar bar”: Check “Use field range” radio button
    Tab “Input”: Uncheck “Use only groups” checkbox
    Validate
  • Representation: Surfaceframe







Document Actions