72 class fvMeshLduAddressing;
74 class fvMeshTopoChanger;
75 class fvMeshDistributor;
78 class polyDistributionMap;
80 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
81 class GeometricBoundaryField;
84 class UCompactListList;
86 namespace fvMeshTopoChangers
154 mutable labelList* polyBFaceOffsetPatchesPtr_;
157 mutable labelList* polyBFaceOffsetPatchFacesPtr_;
169 mutable label curTimeIndex_;
219 void clearGeomNotOldVol();
223 void updateGeomNotOldVol();
235 template<
class Type,
template<
class>
class GeoField>
236 void storeOldTimeFields();
239 template<
template<
class>
class GeoField>
240 void storeOldTimeFields();
245 void storeOldTimeFields();
248 template<
class Type,
template<
class>
class GeoField>
252 template<
template<
class>
class GeoField>
263 wordList polyFacesPatchTypes()
const;
276 void makeMagSf()
const;
329 const bool changers =
true,
342 const word& defaultBoundaryPatchName,
343 const word& defaultBoundaryPatchType,
344 const bool syncPar =
true
356 const bool syncPar =
true
367 const bool syncPar =
true
389 const bool validBoundary =
true
522 template<
class GeoField>
527 template<
class GeoField>
581 NullObjectRef<surfaceScalarField>()
592 NullObjectRef<surfaceScalarField>(),
593 const bool sync =
true
603 const label insertPatchi,
606 const word& defaultPatchFieldType,
607 const bool validBoundary
615 const bool validBoundary
635 const bool write =
true
639 virtual bool write(
const bool write =
true)
const;
655 fvMesh::validComponents<sphericalTensor>()
const;
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricBoundaryField class.
Generic GeometricField class.
A HashTable with keys but without contents.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
readOption
Enumeration defining the read options.
const word & name() const
Return name.
streamFormat
Enumeration for the format of data in the stream.
compressionType
Enumeration for the format of data in the stream.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Specialisation of DimensionedField which holds a slice of a given complete field in such a form that ...
Specialisation of GeometricField which holds slices of given complete fields in a form that they act ...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Database for solution and other reduced data.
A list of keyword definitions, which are a keyword followed by any number of values (e....
lduInterfacePtrsList interfaces() const
Return a list of pointers for each patch.
Abstract base class for fvMesh movers.
Foam::fvMeshLduAddressing.
Abstract base class for fvMesh movers.
Mesh manipulator that uses the intersection provided by the cyclic non-conformal poly patches to crea...
Abstract base class for fvMesh topology changers.
Sequence of mesh topology changes applied in order.
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
const volVectorField & C() const
Return cell centres.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
const labelUList & owner() const
Internal face owner.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
const DimensionedField< scalar, volMesh > & V00() const
Return old-old-time cell volumes.
void operator=(const fvMesh &)=delete
Disallow default bitwise assignment.
stitchType
Extent to which to stitch on read and readUpdate. By default, a.
const surfaceScalarField & phi() const
Return cell face motion fluxes.
virtual const objectRegistry & thisDb() const
Return the object registry - resolve conflict polyMesh/lduMesh.
virtual const lduAddressing & lduAddr() const
Return ldu addressing.
virtual void addPatch(const label insertPatchi, const polyPatch &patch, const dictionary &patchFieldDict, const word &defaultPatchFieldType, const bool validBoundary)
Add/insert single patch. If validBoundary the new situation.
const UCompactListList< label > & polyBFacePatches() const
Return poly-bFace-patch addressing.
const fvMeshDistributor & distributor() const
Return the distributor function class.
const fvSchemes & schemes() const
Return the fvSchemes.
virtual ~fvMesh()
Destructor.
pTraits< Type >::labelType validComponents() const
Return a labelType of valid component indicators.
static const HashSet< word > geometryFields
Set of names of registered geometric fields.
void unconform(const GeometricBoundaryField< label, fvsPatchField, surfaceMesh > &polyFacesBf, const surfaceVectorField &Sf, const surfaceVectorField &Cf, const surfaceScalarField &phi=NullObjectRef< surfaceScalarField >(), const bool sync=true)
Unconform the fvMesh from the polyMesh.
const fvMeshStitcher & stitcher() const
Return the stitcher function class.
const fvSolution & solution() const
Return the fvSchemes.
void addFvPatches(const List< polyPatch * > &, const bool validBoundary=true)
Add boundary patches. Constructor helper.
const surfaceVectorField & Cf() const
Return face centres.
void swap(fvMesh &)
Swap mesh.
const GeometricBoundaryField< label, fvsPatchField, surfaceMesh > & polyFacesBf() const
Return face-poly-face addressing.
bool operator==(const fvMesh &) const
virtual label comm() const
Return communicator used for parallel communication.
const UCompactListList< label > & polyBFacePatchFaces() const
Return poly-bFace-patch-face addressing.
bool operator!=(const fvMesh &) const
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp, const bool write=true) const
Write the underlying polyMesh and other data.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
void mapFields(const polyTopoChangeMap &map)
Map all fields in time using given map.
const DimensionedField< scalar, volMesh > & V0() const
Return old-time cell volumes.
virtual bool write(const bool write=true) const
Write mesh using IO settings from time.
IOobject polyFacesBfIO(IOobject::readOption r) const
Get the poly faces IO object.
virtual lduInterfacePtrsList interfaces() const
Return a list of pointers for each patch.
const surfaceVectorField & Sf() const
Return cell face area vectors.
bool update()
Update the mesh for topology change, mesh to mesh mapping.
UPtrList< GeoField > fields(const bool strict=false) const
Return the list of fields of type GeoField.
const labelUList & neighbour() const
Internal face neighbour.
const surfaceScalarField & magSf() const
Return cell face area magnitudes.
virtual void distribute(const polyDistributionMap &map)
Redistribute or update using the given distribution map.
UPtrList< GeoField > curFields() const
Return the list of current fields of type GeoField.
void removeFvBoundary()
Remove boundary patches. Warning: fvPatchFields hold ref to.
tmp< DimensionedField< scalar, volMesh > > Vsc0() const
Return sub-cycle old-time cell volumes.
fvBoundaryMesh BoundaryMesh
const word & name() const
Return reference to name.
virtual void reorderPatches(const labelUList &newToOld, const bool validBoundary)
Reorder and trim existing patches. If validBoundary the new.
fvMesh(const IOobject &io, const bool changers=true, const stitchType stitch=stitchType::geometric)
Construct from IOobject.
bool dynamic() const
Is this mesh dynamic?
const fvMeshTopoChanger & topoChanger() const
Return the topo-changer function class.
virtual void topoChange(const polyTopoChangeMap &map)
Update mesh corresponding to the given map.
tmp< surfaceVectorField > delta() const
Return face deltas as surfaceVectorField.
bool topoChanging() const
Does the mesh topology change?
tmp< DimensionedField< scalar, volMesh > > Vsc() const
Return sub-cycle cell volumes.
void clearOut()
Clear all geometry and addressing.
bool move()
Move the mesh.
virtual void setPoints(const pointField &)
Reset the points.
const fvMeshMover & mover() const
Return the mover function class.
const polyMesh & operator()() const
Return reference to polyMesh.
void conform(const surfaceScalarField &phi=NullObjectRef< surfaceScalarField >())
Conform the fvMesh to the polyMesh.
bool conformal() const
Return whether the fvMesh is conformal with the polyMesh.
Selector class for finite volume differencing schemes. fvMesh is derived from fvSchemes so that all f...
Selector class for finite volume solution solution. fvMesh is derived from fvSolution so that all fie...
The class contains the addressing required by the lduMatrix: upper, lower and losort.
virtual const labelUList & upperAddr() const =0
Return upper addressing.
virtual const labelUList & lowerAddr() const =0
Return lower addressing.
Abstract base class for meshes which provide LDU addressing for the construction of lduMatrix and LDU...
Registry of regIOobjects.
const Time & time() const
Return time.
Traits class for primitives.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Mesh consisting of general polyhedral cells.
virtual const faceList & faces() const
Return raw faces.
readUpdateState
Enumeration defining the state of the mesh after a read update.
const objectRegistry & thisDb() const
Return the object registry.
label comm() const
Return communicator used for parallel communication.
readUpdateState readUpdate()
Update the mesh based on the mesh files saved in.
virtual const pointField & points() const
Return raw points.
A patch is a list of labels that address the faces in the global face list.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
void clearAddressing()
Clear topological data.
const cellList & cells() const
Cell to surface interpolation scheme. Included in fvMesh.
bool movePoints()
Do what is necessary if the mesh has moved.
A class for managing temporary objects.
A class for handling words, derived from string.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
#define nullOldestTimeFields(Type, nullArg)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.