ENH: writeObjects: add flag to report registered objects

Co-authored-by: Kutalmis Bercin <kutalmis.bercin@esi-group.com>
This commit is contained in:
Tobias Holzmann
2024-10-21 13:45:31 +01:00
committed by Andrew Heather
parent 5d0058bc85
commit c77cc498d7
4 changed files with 107 additions and 33 deletions

View File

@ -0,0 +1,36 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2406 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
writeObjects1
{
// Mandatory entries
type writeObjects;
libs (utilityFunctionObjects);
// Optional entries
writeOption log;
// Conditional entries
// field U;
// fields ( ".*" );
objects ( ".*" );
// Inherited entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval -1;
writeControl onEnd;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -94,6 +94,7 @@ functions
#include "FOs/FOwallShearStress"
#include "FOs/FOwriteCellCentres"
#include "FOs/FOwriteCellVolumes"
#include "FOs/FOwriteObjects"
#include "FOs/FOyPlus"
#include "FOs/FOzeroGradient"
#include "FOs/FOnorm"