From 2bb760e91291f2f485f702aa593e475a5d6ce893 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Thu, 13 Apr 2023 13:28:27 +0100 Subject: [PATCH] etc/caseDicts/postProcessing/control/stopAtTimeStep: Configuration file for functionObjects::stopAtTimeStep Example: functions { #includeFunc stopAtTimeStep(minDeltaT=1e-8) . . . } --- .../postProcessing/control/stopAtTimeStep | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 etc/caseDicts/postProcessing/control/stopAtTimeStep diff --git a/etc/caseDicts/postProcessing/control/stopAtTimeStep b/etc/caseDicts/postProcessing/control/stopAtTimeStep new file mode 100644 index 0000000000..61e0a5f3e1 --- /dev/null +++ b/etc/caseDicts/postProcessing/control/stopAtTimeStep @@ -0,0 +1,20 @@ +/*--------------------------------*- 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 if the time-step drops below the specified value in seconds + and optionally write results before stopping. + +\*---------------------------------------------------------------------------*/ + +type stopAtTimeStep; +libs ("libutilityFunctionObjects.so"); + +minDeltaT ; +action writeNow; + +// ************************************************************************* //