ParaView
This page needs conversion to Media Wiki style
Brief Introduction to ParaView
<a href="http://www.paraview.org">ParaView</a> is advanced software with many options and ample documentation on the <a href="http://www.paraview.org">web or in books</a>. This section just gives steps to get one plot from NairnMPM output:
- Run NairnMPM calculations using the <a href="../xmlformat/custom.html#VTKArchive">VTKArchive custom task</a>.
- Run ParaView, choose the open command and select the block of VTK legacy files. The files will be found in the archived results folder with the naming stlye "MPM_#.vtk" where "MPM" is the root name you used for the calculations archived files and "#" is the step number. ParaView will let you select these as a block and open the entire block at once. It will load them in the correct order.
- ParaView does not actually read files when they are opened. To read them, click the "Apply" button in the object inspect. When it is done reading, a wire frame of the space should appear in the plot area.
- To get a plot, click the "Contour" icon. In the object inspector, set it to countour by mass. In the isosurfaces section, set the contour value to some number less than the maximum mass.
- Finally, use the "Color by" menu (in tool bar or in object inspector) to choose archived component to apply color the the mass surface
ParaView has many more options for plotting and reading results from NairnMPM
run using the <a href="../xmlformat/custom.html#VTKArchive">VTKArchive custom task</a>. The above just get one plot.
<a name="paraex"></a>Particle Plots in ParaView
To get started using <a href="http://www.paraview.org">ParaView</a> for particle plots, try the following example simulation and analysis:
- Run the
TwoSpheres.fmcmd
example innairn-mpm-fea/NairnMPM/input
and save the results. - Use
ExtractMPM
on a file from theResults
folder with the following command line:ExtractMPM -V -q sxx -q velx -q dispx -n Example -o TwoSpheres spheres.264
- Download, install, and run <a href="htpp://www.paraview.org">ParaView</a>. Use it to open the
TwoSpheres.vtk
file created by the above extraction. Then:- Click "Apply" in the object inspector.
- Click or use menu command to add Glyphs.
- Select Glyph Type "Sphere."
- Enter Radius = 1.25 (1/4 of the 5 mm cell size).
- Scroll down, click to "Edit Scale" and edit it to be 1.
- Click "Apply" to get the particle plot
You should have gotten a plot of two spheres in contact. You can explore all the <a href="http://www.paraview.org">ParaView</a> options for ways to visualize the results. You can color by any of the properties extracted to the file. If you extract multiple files and load them all into <a href="http://www.paraview.org">ParaView</a>, you can animate the results. When extracting results from multiple files in a single simulation, you should use the -s
option to include step number in the file name. This method insures that <a href="http://www.paraview.org">ParaView</a> will read the files in the correct order.