33 namespace fvMeshMovers
49 Foam::fvMeshMovers::multiValveEngine::findLinerPatchSet()
const
60 return mesh().boundaryMesh().patchSet
73 movingPatchSet += valves_[valvei].patchSet_;
80 const polyPatch& pp = mesh().boundaryMesh()[
patchi];
86 && !slidingPatchSet_.found(pp.index())
87 && !movingPatchSet.found(pp.index())
90 staticPatchSet.insert(pp.index());
94 return staticPatchSet;
103 linerPatchSet_(findLinerPatchSet()),
104 slidingPatchSet_(findSlidingPatchSet()),
105 piston_(
"piston", *this,
dict().subDict(
"piston")),
106 valves_(*this,
dict().subOrEmptyDict(
"valves")),
107 staticPatchSet_(findStaticPatchSet()),
112 linerPatchSet(linerPatchSet_),
113 slidingPatchSet(slidingPatchSet_),
116 staticPatchSet(staticPatchSet_)
130 return mesh().time().userTimeValue();
136 return mesh().time().userDeltaTValue();
145 piston_.updatePoints(newPoints);
149 valves_[valvei].updatePoints(newPoints);
153 mesh().movePoints(newPoints);
167 slidingPatchSet_ = findSlidingPatchSet();
168 linerPatchSet_ = findLinerPatchSet();
169 staticPatchSet_ = findStaticPatchSet();
171 piston_.mapMesh(map);
175 valves_[valvei].mapMesh(map);
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
Abstract base class for fvMesh movers.
const dictionary & dict() const
Return the dynamicMeshDict/mover dict.
fvMesh & mesh()
Return the fvMesh.
A mesh mover using explicit node translation based on scaled distance functions per moving object....
scalar userTime() const
Return current user-time, CAD, s or ...
virtual void topoChange(const polyTopoChangeMap &)
Update corresponding to the given map.
virtual void distribute(const polyDistributionMap &)
Update corresponding to the given distribution map.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
static word cylinderHeadName
Name of the cylinder head pointZone.
virtual bool update()
Update the mesh for both mesh motion and topology change.
~multiValveEngine()
Destructor.
multiValveEngine(fvMesh &mesh)
Construct from fvMesh.
scalar userDeltaT() const
Return current user-time-step, CAD, s, ...
Mesh data needed to do the Finite Volume discretisation.
labelHashSet patchSet(const UList< wordRe > &patchNames, const bool warnNotFound=true, const bool usePatchGroups=true) const
Return the set of patch indices corresponding to the given names.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
static bool constraintType(const word &pt)
Return true if the given type is a constraint type.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A class for handling words, derived from string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
defineTypeNameAndDebug(none, 0)
addToRunTimeSelectionTable(fvMeshMover, none, fvMesh)
List< wordRe > wordReList
A List of wordRe (word or regular expression)
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.