CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Writing and viewing Lagrangian data in openFoam and Paraview

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2024, 07:26
Default Writing and viewing Lagrangian data in openFoam and Paraview
  #1
Member
 
Divyaprakash
Join Date: Jun 2014
Posts: 74
Rep Power: 12
Divyaprakash is on a distinguished road
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;
How can I write them down at everytime step so that it could be read by paraFoam and be shown above the contour plots?
Divyaprakash is offline   Reply With Quote

Old   March 16, 2024, 07:33
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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.
olesen is offline   Reply With Quote

Reply

Tags
lagrangian, parafoam


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 11:28.