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

lagrangian data writing

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2018, 14:05
Default lagrangian data writing
  #1
Member
 
Joaquín Neira
Join Date: Oct 2017
Posts: 37
Rep Power: 4
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, 08:10
Thumbs up Posible solution direction
  #2
New Member
 
Bas Nieuwboer
Join Date: Mar 2013
Posts: 16
Rep Power: 9
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 32 February 7, 2018 08:26
Lagrangian Data extract from sprayFoam e.g. with swak4Foam mokard OpenFOAM Post-Processing 2 January 16, 2018 03:44
Run OpenFoam in 2 nodes of a cluster WhiteW OpenFOAM Running, Solving & CFD 16 December 20, 2016 00:51
How to turn off 3D data writing and save 2D slices? xuegy OpenFOAM Post-Processing 1 October 28, 2016 02:00
Writing Case and Data Files Using Journal/Scheme Files svp Fluent UDF and Scheme Programming 0 April 5, 2011 11:04


All times are GMT -4. The time now is 01:18.