diff --git a/tutorials/XiFluid/kivaTest/system/controlDict b/tutorials/XiFluid/kivaTest/system/controlDict index 1ff1e8bf38..5e5cc63d80 100644 --- a/tutorials/XiFluid/kivaTest/system/controlDict +++ b/tutorials/XiFluid/kivaTest/system/controlDict @@ -58,32 +58,4 @@ userTime rpm 1500; } -functions -{ - setDeltaT - { - type coded; - - // Load the library containing the 'coded' functionObject - libs ("libutilityFunctionObjects.so"); - - codeInclude - #{ - #include "volFields.H" - #}; - - codeExecute - #{ - const Time& runTime = mesh().time(); - if (runTime.userTimeValue() >= -15.0) - { - const_cast(runTime).setDeltaT - ( - runTime.userTimeToTime(0.025) - ); - } - #}; - } -} - // ************************************************************************* // diff --git a/tutorials/XiFluid/kivaTest/system/functions b/tutorials/XiFluid/kivaTest/system/functions index 57e2bb27e5..285d837f0c 100644 --- a/tutorials/XiFluid/kivaTest/system/functions +++ b/tutorials/XiFluid/kivaTest/system/functions @@ -14,6 +14,31 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +setDeltaT +{ + type coded; + + // Load the library containing the 'coded' functionObject + libs ("libutilityFunctionObjects.so"); + + codeInclude + #{ + #include "volFields.H" + #}; + + codeExecute + #{ + const Time& runTime = mesh().time(); + if (runTime.userTimeValue() >= -15.0) + { + const_cast(runTime).setDeltaT + ( + runTime.userTimeToTime(0.025) + ); + } + #}; +} + #includeFunc multiValveEngineState // ************************************************************************* //