|
[Sponsors] |
Writing and viewing Lagrangian data in openFoam and Paraview |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 16, 2024, 07:26 |
Writing and viewing Lagrangian data in openFoam and Paraview
|
#1 |
Member
Divyaprakash
Join Date: Jun 2014
Posts: 71
Rep Power: 12 |
I have a set of points that represent a structure whose deformations are solved for at every time step. I am storing those points as follows.
Code:
std::vector<double> pposx, pposy, pposz; |
|
March 16, 2024, 07:33 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Note that "paraFoam" is a shell script, not a program. If you wish to visualize x/y/z values in paraview, you'll need to see what type of import possibilities are available. Either use your values to generate a CSV file and import that, or generate a VTK file yourself. The legacy VTK format is dead easy, but you might do okay with OBJ format too. Take a look at the coordSetWriters in OpenFOAM for inspiration.
|
|
Tags |
lagrangian, parafoam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] viewing mesh in paraview | tenichols19 | OpenFOAM Meshing & Mesh Conversion | 0 | October 2, 2019 08:55 |