CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   dsmcFoam : writing options : How to keep only field data ? Not Lagrangian (https://www.cfd-online.com/Forums/openfoam-solving/119738-dsmcfoam-writing-options-how-keep-only-field-data-not-lagrangian.html)

elfuertes June 24, 2013 04:48

dsmcFoam : writing options : How to keep only field data ? Not Lagrangian
 
Hi !

I am running dsmc simulation of a gas flow with dsmcFoam, and I would like to be able to have a better control over the outputs of the simulations.

I want to write the macroscopic fields, and averaged fields at each writeTime
(RhoN, RhoNMean, UMean, ...) and keep them for post-processing.
BUT I do not need all the data included in the lagrangian folder (the properties of each simulated particle, 90% of the memory storage :eek:) I just need this data for the last time step to be able to continue the simulation.

The purgeWrite option does not suit me, as it erases ALL the data (macroscopic + lagrangian)

Is there a way to do what I want ?
Thanks for your help !

Sylvain

jiaoxiaolei August 18, 2013 04:41

in Allrun.C,you can find the code

elfuertes August 19, 2013 05:05

Thanks, I see the following line in the Allrun file for some dsmc tutorials:
Code:


runApplication reconstructPar -noLagrangian

But it only applies to the reconstructPar utility. I would like to erase the lagrangian folders "on the go".


All times are GMT -4. The time now is 21:14.