Go to the documentation of this file.
52 #include "primitiveMesh.H"
71 class fvMeshLduAddressing;
192 const word& defaultBoundaryPatchName,
193 const word& defaultBoundaryPatchType,
194 const bool syncPar =
true
206 const bool syncPar =
true
217 const bool syncPar =
true
233 const bool validBoundary =
true
370 virtual bool write()
const;
381 typename pTraits<sphericalTensor>::labelType
382 fvMesh::validComponents<sphericalTensor>()
const;
The class contains the addressing required by the lduMatrix: upper, lower and losort.
void storeOldVol(const scalarField &)
Preserve old volume(s)
virtual const pointField & points() const
Return raw points.
virtual ~fvMesh()
Destructor.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const surfaceVectorField & Cf() const
Return face centres as surfaceVectorField.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from string.
fvBoundaryMesh BoundaryMesh
void clearAddressing()
Clear topological data.
A class for managing temporary objects.
void updateGeomNotOldVol()
Clear geometry like clearGeomNotOldVol but recreate any.
void operator=(const fvMesh &)
Disallow assignment.
virtual const objectRegistry & thisDb() const
Return the object registry - resolve conflict polyMesh/lduMesh.
void addFvPatches(const List< polyPatch * > &, const bool validBoundary=true)
Add boundary patches. Constructor helper.
tmp< surfaceVectorField > delta() const
Return face deltas as surfaceVectorField.
Selector class for finite volume differencing schemes. fvMesh is derived from fvShemes so that all fi...
compressionType
Enumeration for the format of data in the stream.
tmp< DimensionedField< scalar, volMesh > > Vsc0() const
Return sub-cycl old-time cell volumes.
void * VPtr_
Cell volumes old time level.
const Time & time() const
Return time.
virtual void mapFields(const mapPolyMesh &mpm)
Map all fields in time using given map.
void clearGeomNotOldVol()
Clear geometry but not the old-time cell volumes.
const cellList & cells() const
void clearGeom()
Clear geometry.
void removeFvBoundary()
Remove boundary patches. Warning: fvPatchFields hold ref to.
label comm() const
Return communicator used for parallel communication.
virtual const labelUList & upperAddr() const =0
Return upper addressing.
A simple container for copying or transferring objects of type <T>.
Mesh consisting of general polyhedral cells.
Foam::fvMeshLduAddressing.
surfaceScalarField * magSfPtr_
Mag face area vectors.
const surfaceScalarField & magSf() const
Return cell face area magnitudes.
slicedSurfaceVectorField * SfPtr_
Face area vectors.
Registry of regIOobjects.
virtual readUpdateState readUpdate()
Update the mesh based on the mesh files saved in time.
virtual bool write() const
Write mesh using IO settings from time.
virtual label comm() const
Return communicator used for parallel communication.
slicedSurfaceVectorField * CfPtr_
Face centres.
DimensionedField< scalar, volMesh > * V0Ptr_
Cell volumes old time level.
pTraits< Type >::labelType validComponents() const
Return a labelType of valid component indicators.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
DimensionedField< scalar, volMesh > & setV0()
Return old-time cell volumes.
virtual const lduAddressing & lduAddr() const
Return ldu addressing.
bool operator!=(const fvMesh &) const
Macro definitions for declaring ClassName(), NamespaceName(), etc.
Selector class for finite volume solution solution. fvMesh is derived from fvSolution so that all fie...
virtual void updateMesh(const mapPolyMesh &mpm)
Update mesh corresponding to the given map.
lduInterfacePtrsList interfaces() const
Return a list of pointers for each patch.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
const objectRegistry & thisDb() const
Return the object registry.
const word & name() const
Return name.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
const DimensionedField< scalar, volMesh > & V0() const
Return old-time cell volumes.
fvMesh(const fvMesh &)
Disallow construct as copy.
const labelUList & neighbour() const
Internal face neighbour.
bool movePoints()
Do what is neccessary if the mesh has moved.
const surfaceVectorField & Sf() const
Return cell face area vectors.
Mesh data needed to do the Finite Volume discretisation.
const labelUList & owner() const
Internal face owner.
readUpdateState
Enumeration defining the state of the mesh after a read update.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
bool operator==(const fvMesh &) const
slicedVolVectorField * CPtr_
Cell centres.
virtual const faceList & faces() const
Return raw faces.
const volVectorField & C() const
Return cell centres as volVectorField.
fvMeshLduAddressing * lduPtr_
virtual const labelUList & lowerAddr() const =0
Return lower addressing.
fvBoundaryMesh boundary_
Boundary mesh.
Traits class for primitives.
virtual bool writeObjects(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
Write the underlying polyMesh and other data.
DimensionedField< scalar, volMesh > * V00Ptr_
Cell volumes old-old time level.
virtual lduInterfacePtrsList interfaces() const
Return a list of pointers for each patch.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Cell to surface interpolation scheme. Included in fvMesh.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Specialization of GeometricField which holds slices of given complete fields in a form that they act ...
const Time & time() const
Return the top-level database.
const surfaceScalarField & phi() const
Return cell face motion fluxes.
surfaceScalarField & setPhi()
Return cell face motion fluxes.
label curTimeIndex_
Current time index for cell volumes.
const DimensionedField< scalar, volMesh > & V00() const
Return old-old-time cell volumes.
Generic GeometricField class.
tmp< DimensionedField< scalar, volMesh > > Vsc() const
Return sub-cycle cell volumes.
Database for solution data, solver performance and other reduced data.
Abstract base class for meshes which provide LDU addressing for the construction of lduMatrix and LDU...
UPtrList< const lduInterface > lduInterfacePtrsList
List of coupled interface fields to be used in coupling.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
void clearOut()
Clear all geometry and addressing.
const word & name() const
Return reference to name.
surfaceScalarField * phiPtr_
Face motion fluxes.
streamFormat
Enumeration for the format of data in the stream.