71 class fvMeshLduAddressing;
73 class fvMeshTopoChanger;
74 class fvMeshDistributor;
77 class polyDistributionMap;
79 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
80 class GeometricBoundaryField;
83 class UCompactListList;
85 namespace fvMeshTopoChangers
157 mutable IOobject* polyFacesBfIOPtr_;
167 mutable labelList* polyBFaceOffsetPatchesPtr_;
170 mutable labelList* polyBFaceOffsetPatchFacesPtr_;
186 mutable label curTimeIndex_;
236 void clearGeomNotOldVol();
240 void updateGeomNotOldVol();
249 template<
class Type,
template<
class>
class GeoField>
250 void storeOldTimeFields();
253 template<
template<
class>
class GeoField>
254 void storeOldTimeFields();
259 void storeOldTimeFields();
262 template<
class Type,
template<
class>
class GeoField>
263 void nullOldestTimeFields();
266 template<
template<
class>
class GeoField>
267 void nullOldestTimeFields();
271 void nullOldestTimeFields();
277 wordList polyFacesPatchTypes()
const;
290 void makeMagSf()
const;
351 const word& defaultBoundaryPatchName,
352 const word& defaultBoundaryPatchType,
353 const bool syncPar =
true
365 const bool syncPar =
true
376 const bool syncPar =
true
405 const bool validBoundary =
true
548 template<
class GeoField>
553 template<
class GeoField>
616 NullObjectRef<surfaceScalarField>()
627 NullObjectRef<surfaceScalarField>(),
628 const bool sync =
true
638 const label insertPatchi,
641 const word& defaultPatchFieldType,
642 const bool validBoundary
650 const bool validBoundary
670 const bool write =
true
674 virtual bool write(
const bool write =
true)
const;
690 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...
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...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for handling file names.
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 fileName & polyFacesBfInstance() const
Get the current instance for the poly faces boundary field.
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.
readUpdateState
Enumeration defining the state of the mesh after a read update.
virtual ~fvMesh()
Destructor.
pTraits< Type >::labelType validComponents() const
Return a labelType of valid component indicators.
const GeometricBoundaryField< label, fvsPatchField, surfaceMesh > & ownerBf() const
Return face-owner addressing.
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 fvSolution.
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.
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.
void setPolyFacesBfInstance(const fileName &)
Set the instance for the poly faces boundary field.
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.
bool distributing() const
Does the mesh get redistributed?
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.
bool dynamic() const
Is this mesh dynamic?
fvMesh(const IOobject &io, const bool doPost=true)
Construct from IOobject. Optionally prevent post-construction, so.
const fvMeshTopoChanger & topoChanger() const
Return the topo-changer function class.
virtual void topoChange(const polyTopoChangeMap &map)
Update mesh corresponding to the given map.
const polyMesh & mesh() const
Return reference to polyMesh.
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.
void postConstruct(const bool changers, const stitchType stitch)
Complete construction of the mesh.
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.
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.