|
[Sponsors] |
age functionObject writes every timestep in processor directories, how to change? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Join Date: Oct 2011
Posts: 51
Rep Power: 14 ![]() |
Hi, here is my controlDict. I noticed that my age functionObject is written in every single timestep in the processordirectories. That's not needed. How do i write the age functionObject only in the last timestep?
Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2206 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #include "../masterfile" application MYsimpleFoam; startFrom startTime; startTime 0; stopAt endTime; endTime 4000; deltaT 1; writeControl timeStep; writeInterval 200; purgeWrite 0; writeFormat binary; writePrecision 6; writeCompression off; timeFormat general; timePrecision 6; runTimeModifiable true; functions { age { type scalarTransport; libs (solverFunctionObjects); // Optional entries // Name of scalar field to transport, default = 's' field age; // Name of flux field, default = 'phi' phi phi; // Name of density field for compressible cases, default = 'rho' rho rho; // Name of phase field to constrain scalar to, default = 'none' phase none; // Set the scalar to zero on start/re-start resetOnStartUp no; // Name of field to use when looking up schemes from fvSchemes // default = <field> schemesField U; // Diffusivity // Fixed value diffusivity D #eval{ $k_/$dichte_/$cp_ }; // Name of field to use as diffusivity, default = 'none' nut none; // Run-time selectable sources fvOptions { IncrementTime { type scalarSemiImplicitSource; active true; scalarSemiImplicitSourceCoeffs { selectionMode all; volumeMode specific; injectionRateSuSp { age (1 0); } } } } } } libs ( "libMYLIB.so" ); // ************************************************************************* // |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,169
Rep Power: 27 ![]() |
Hi Fanta,
You can use writeControl and writeInterval parameters inside your function object in order to manage when the data is written. https://www.openfoam.com/documentati...n-objects.html Regards, Yann |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Can't change timestep on a decomposed case with python scripts | Gambenius | ParaView | 1 | May 21, 2020 09:16 |
How to use "translation" in solidBodyMotionFunction in OpenFOAM | rupesh_w | OpenFOAM Running, Solving & CFD | 5 | August 16, 2016 04:27 |
Timestep and Pressure Correction Relationship in SIMPLE | rks171 | Main CFD Forum | 23 | May 4, 2012 01:04 |
change timestep after a certain iteration number | Sans | CFX | 5 | June 3, 2007 05:17 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 05:12 |