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

lagrangian data writing

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2018, 15:05
Default lagrangian data writing
  #1
Member
 
Joaquín Neira
Join Date: Oct 2017
Posts: 38
Rep Power: 9
cojua8 is on a distinguished road
Hello, I am working with kinematic clouds and I need the lagrangian data to be written after every time step, and field data at writeControl settings.

Is there any way to do this?
cojua8 is offline   Reply With Quote

Old   February 16, 2020, 09:10
Thumbs up Posible solution direction
  #2
Member
 
Bas Nieuwboer
Join Date: Mar 2013
Posts: 34
Rep Power: 13
bjnieuwboer is on a distinguished road
Hi cojua8,

I am struggling with the same problem. I don't think it is possible at the moment. At least not out of the box. I found 2 solution direction which both did not work for me:

-I started using a cloud function with particle tracks. However, this wrote only 2 particles out of 700 for me. The trackInterval also seems to be a factor times the write time. It does the opposite we would like: it write less timesteps.
The cloud function can be added to the kinematicProperties.

Code:
cloudFunctions
{
  particleTracks1
  {
            type            particleTracks;
            trackInterval   5;
            maxSamples      1000000;
            resetOnWrite    yes;
      }
}
-Secondly, in the cloud class there is a public method called writePositions(). In the solver one could call this method for every timestep by adding:

Code:
kinematicCloud.writePositions();
This write the positions to a obj file. However, it does only does this per processor and without including any details on the particle like origId and origProcId for identifying the individual particles. Secondly, I got the impression that this file is overwritten every time step.

I hope this gives you and others some directions for solving this problem.
bjnieuwboer is offline   Reply With Quote

Reply

Tags
lagrangian, timestep, write


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
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
Lagrangian Data extract from sprayFoam e.g. with swak4Foam mokard OpenFOAM Post-Processing 2 January 16, 2018 04:44
Run OpenFoam in 2 nodes of a cluster WhiteW OpenFOAM Running, Solving & CFD 16 December 20, 2016 01:51
How to turn off 3D data writing and save 2D slices? xuegy OpenFOAM Post-Processing 1 October 28, 2016 03:00
Writing Case and Data Files Using Journal/Scheme Files svp Fluent UDF and Scheme Programming 0 April 5, 2011 12:04


All times are GMT -4. The time now is 15:48.