multiValveEngineState: Execute at start with the clearance initialised to 0

Alternative resolution of bug-report https://bugs.openfoam.org/view.php?id=4054
This commit is contained in:
Henry Weller
2024-02-28 12:02:00 +00:00
parent da16a1b0a9
commit 8ebff8616f
2 changed files with 1 additions and 8 deletions

View File

@ -125,13 +125,6 @@ public:
return wordList::null();
}
//- Do not execute at the start of the run
// as the clearance is not available at that point
virtual bool executeAtStart() const
{
return false;
}
//- Execute, currently does nothing
virtual bool execute();

View File

@ -100,7 +100,7 @@ Foam::fvMeshMovers::multiValveEngine::pistonObject::pistonObject
:
movingObject(name, engine, dict),
bore_(bore()),
clearance_(great)
clearance_(0)
{}