33 namespace fvMeshMovers
49 Foam::fvMeshMovers::multiValveEngine::findLinerPatchSet()
const
67 movingPatchSet += valves_[valvei].patchSet_;
80 && !slidingPatchSet_.found(pp.index())
81 && !movingPatchSet.found(pp.index())
84 staticPatchSet.insert(pp.index());
88 return staticPatchSet;
101 linerPatches_(
dict.lookup(
"linerPatches")),
102 linerPatchSet_(findLinerPatchSet()),
103 slidingPatches_(
dict.lookup(
"slidingPatches")),
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_)
145 piston_.updatePoints(newPoints);
149 valves_[valvei].updatePoints(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.
scalar userTimeValue() const
Return current user time value.
scalar userDeltaTValue() const
Return user time step value.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base class for fvMesh movers.
fvMesh & mesh()
Return the fvMesh.
A mesh mover using explicit node translation based on scaled distance functions per moving object....
multiValveEngine(fvMesh &mesh, const dictionary &dict)
Construct from fvMesh.
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.
scalar userDeltaT() const
Return current user-time-step, CAD, s, ...
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
virtual tmp< scalarField > movePoints(const pointField &)
Move points, returns volumes swept by faces in motion.
labelHashSet patchSet(const UList< wordRe > &patchNames, const bool warnNotFound=true, const bool usePatchGroups=true) const
Return the patch set 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.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
defineTypeNameAndDebug(none, 0)
addToRunTimeSelectionTable(fvMeshMover, none, fvMesh)
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.