|
[Sponsors] |
Is it able to control the writing timestep for Lagrangian fields? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 7, 2020, 01:01 |
Is it able to control the writing timestep for Lagrangian fields?
|
#1 |
New Member
Matthew
Join Date: Aug 2017
Posts: 28
Rep Power: 9 |
I know it can use functions with "libutilityFunctionObjects.so" in controlDict to control the writeInterval to some specific fields. For example the following code is for only writting the T.air' and 'U.air' fields every 1e-5 seconds.
Code:
functions { writeFields { type writeObjects; libs ( "libutilityFunctionObjects.so" ); objects ( T.air U.air ); writeControl runTime; writeInterval 1e-5; } } |
|
May 25, 2020, 18:47 |
|
#2 |
Member
Jairo A. Gutiérrez S
Join Date: Nov 2014
Posts: 60
Rep Power: 12 |
Did you find any solution? I am stuck in the same.
|
|
May 25, 2020, 19:13 |
|
#3 |
Member
Jairo A. Gutiérrez S
Join Date: Nov 2014
Posts: 60
Rep Power: 12 |
Well, I think I rushed to the forum without spending a good time trying to fix it. Here is the solution:
When you use a Lagrangian field inside the "objects", it cannot find it in the database as they are stored inside the kinematicCloud object. Hence if you do the following: objects ( kinematicCloud // list of fields/variables to be written ); It will save all the objects inside kinematicCloud (all the Lagrangian objects). To save specific Lagrangian objects, such as Nparticle, I guess you need to access the information inside kinematicCloud |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with an old Simulation | FrankW | CFX | 3 | February 8, 2016 05:28 |
Is there a way to get rid of fields at timestep output? | Peter_600 | OpenFOAM | 1 | December 17, 2009 03:39 |
PostChannel | maka | OpenFOAM Post-Processing | 5 | July 22, 2009 10:15 |
Writing solver for U p and T fields | kar | OpenFOAM Running, Solving & CFD | 0 | January 21, 2008 14:36 |
Timestep control via CEL? | Claudia | CFX | 7 | September 14, 2007 06:00 |