multiValveEngineState: New functionObject to print and log the piston and valve motion
for the multiValveEngine fvMeshMover. This replaced the hard-coded messages printed by the multiValveEngine class, providing automatic logging of the piston and valve speed and position and easy user extension or replacement to provide additional case-specific diagnostics without having to hack the core multiValveEngine code. A functionObject configuration file is provided so that the simple line can be added to the system/functions file to enable this functionObject.
This commit is contained in:
19
tutorials/XiFluid/kivaTest/system/functions
Normal file
19
tutorials/XiFluid/kivaTest/system/functions
Normal file
@ -0,0 +1,19 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object functions;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#includeFunc multiValveEngineState
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -14,6 +14,7 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#includeFunc multiValveEngineState
|
||||
#includeFunc checkMesh(executeControl=adjustableRunTime, executeInterval=5)
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user