This function stops the run when all parcel clouds are empty.
Example of function object specification:
stop
{
type stopAtEmptyClouds;
libs ("liblagrangianFunctionObjects.so");
executeControl timeStep; // <-- Likely only to be needed if injection
startTime 0.500001; // starts after time zero. In which case the
// startTime should be slightly after the
// injection start time.
action nextWrite;
}
A packaged function object is also included, which permits the following
syntax to be used, either with #includeFunc in the system/controlDict,
or with the -func option to foamPostProcess:
stopAtEmptyClouds(startTime=0.500001)
21 lines
781 B
C++
21 lines
781 B
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
-------------------------------------------------------------------------------
|
|
Description
|
|
Stops the run when all clouds are empty (i.e., have no particles)
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
type stopAtEmptyClouds;
|
|
libs ("liblagrangianFunctionObjects.so");
|
|
|
|
action nextWrite;
|
|
|
|
executeControl timeStep;
|
|
|
|
// ************************************************************************* //
|