TUT: fileOperation: bit more testing. See #2952

This commit is contained in:
mattijs
2023-12-08 09:12:41 +00:00
parent 1844f87a0d
commit bc5aafa0d9
6 changed files with 145 additions and 7 deletions

View File

@ -75,7 +75,7 @@ runTimeModifiable true;
functions
{
fileUpdate
solverControls
{
type timeActivatedFileUpdate;
libs (utilityFunctionObjects);
@ -90,6 +90,22 @@ functions
);
}
fvSolution
{
type timeActivatedFileUpdate;
libs (utilityFunctionObjects);
writeControl timeStep;
writeInterval 1;
fileToUpdate "<system>/fvSolution";
timeVsFile
(
(-1 "<system>/fvSolution.0" )
( 0.02 "<system>/fvSolution.5" )
);
}
// Wait a bit to make runTimeModifiable work.
// - see also fileModificationSkew
// - could also directly use system FO