OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

fvMesh Class Reference

Inheritance diagram for fvMesh:

Inheritance graph
[legend]
Collaboration diagram for fvMesh:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 85 of file fvMesh.H.


Public Types

typedef fvMesh Mesh
typedef fvBoundaryMesh BoundaryMesh

Public Member Functions

 ClassName ("fvMesh")
 fvMesh (const IOobject &io)
 Construct from IOobject.
 fvMesh (const IOobject &io, const pointField &points, const faceList &faces, const labelList &allOwner, const labelList &allNeighbour, const bool syncPar=true)
 Construct from components without boundary.
 fvMesh (const IOobject &io, const pointField &points, const faceList &faces, const cellList &cells, const bool syncPar=true)
 Construct from components with cells rather than owner.
virtual ~fvMesh ()
void addFvPatches (const List< polyPatch * > &, const bool validBoundary=true)
 Add boundary patches. Constructor helper.
virtual readUpdateState readUpdate ()
 Update the mesh based on the mesh files saved in time.
const Time & time () const
 Return the top-level database.
virtual const objectRegistry & db () const
 Return the object registry.
const word & name () const
 Return reference to name.
const fvBoundaryMesh & boundary () const
 Return reference to boundary mesh.
virtual const lduAddressing & lduAddr () const
 Return ldu addressing.
virtual lduInterfacePtrsList interfaces () const
 Return a list of pointers for each patch.
const unallocLabelList & owner () const
 Internal face owner.
const unallocLabelList & neighbour () const
 Internal face neighbour.
const DimensionedField< scalar,
volMesh > & 
V () const
 Return cell volumes.
const DimensionedField< scalar,
volMesh > & 
V0 () const
 Return old-time cell volumes.
const DimensionedField< scalar,
volMesh > & 
V00 () const
 Return old-old-time cell volumes.
const surfaceVectorField & Sf () const
 Return cell face area vectors.
const surfaceScalarField & magSf () const
 Return cell face area magnitudes.
const surfaceScalarField & phi () const
 Return cell face motion fluxes.
const volVectorField & C () const
 Return cell centres as volVectorField.
const surfaceVectorField & Cf () const
 Return face centres as surfaceVectorField.
void clearOut ()
 Clear all geometry and addressing.
virtual void updateMesh (const mapPolyMesh &mpm)
 Update mesh corresponding to the given map.
virtual tmp< scalarField > movePoints (const vectorField &)
 Move points, returns volumes swept by faces in motion.
virtual void mapFields (const mapPolyMesh &mpm)
 Map all fields in time using given map.
void removeFvBoundary ()
 Remove boundary patches. Warning: fvPatchFields hold ref to.
surfaceScalarField & setPhi ()
 Return cell face motion fluxes.
DimensionedField< scalar,
volMesh > & 
setV0 ()
 Return old-time cell volumes.
virtual bool writeObjects (IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
 Write the underlying polyMesh and other data.
virtual bool write () const
 Write mesh using IO settings from time.
bool operator!= (const fvMesh &) const
bool operator== (const fvMesh &) const

Member Typedef Documentation

typedef fvMesh Mesh

Reimplemented from polyMesh.

Definition at line 168 of file fvMesh.H.

Reimplemented from polyMesh.

Definition at line 169 of file fvMesh.H.


Constructor & Destructor Documentation

fvMesh ( const IOobject &  io  )  [explicit]

Construct from IOobject.

fvMesh ( const IOobject &  io,
const pointField &  points,
const faceList &  faces,
const labelList &  allOwner,
const labelList &  allNeighbour,
const bool  syncPar = true 
)

Construct from components without boundary.

Boundary is added using addFvPatches() member function

fvMesh ( const IOobject &  io,
const pointField &  points,
const faceList &  faces,
const cellList &  cells,
const bool  syncPar = true 
)

Construct from components with cells rather than owner.

and neighbourwithout boundary. Boundary is added using addPatches() member function

virtual ~fvMesh (  )  [virtual]


Member Function Documentation

ClassName ( "fvMesh"   ) 

void addFvPatches ( const List< polyPatch * > &  ,
const bool  validBoundary = true 
)

Add boundary patches. Constructor helper.

virtual readUpdateState readUpdate (  )  [virtual]

Update the mesh based on the mesh files saved in time.

directories

Reimplemented from polyMesh.

const Time& time (  )  const [inline]

Return the top-level database.

Reimplemented from objectRegistry.

Definition at line 236 of file fvMesh.H.

References name().

Here is the call graph for this function:

virtual const objectRegistry& db (  )  const [inline, virtual]

Return the object registry.

Reimplemented from lduMesh.

Definition at line 242 of file fvMesh.H.

const word& name (  )  const [inline]

Return reference to name.

Note: name() is currently ambiguous due to derivation from surfaceInterpolation

Reimplemented from IOdictionary.

Definition at line 252 of file fvMesh.H.

References fvMesh::lduAddr(), and lduAddressing::lowerAddr().

Here is the call graph for this function:

const fvBoundaryMesh& boundary (  )  const

Return reference to boundary mesh.

Referenced by fvBoundaryMeshMapper::fvBoundaryMeshMapper(), and fvMeshLduAddressing::fvMeshLduAddressing().

Here is the caller graph for this function:

virtual const lduAddressing& lduAddr (  )  const [virtual]

Return ldu addressing.

Implements lduMesh.

Referenced by fvMesh::name().

Here is the caller graph for this function:

virtual lduInterfacePtrsList interfaces (  )  const [inline, virtual]

Return a list of pointers for each patch.

with only those pointing to interfaces being set

Implements lduMesh.

Definition at line 267 of file fvMesh.H.

const unallocLabelList& owner (  )  const [inline]

Internal face owner.

Definition at line 273 of file fvMesh.H.

const unallocLabelList& neighbour (  )  const [inline]

Internal face neighbour.

Definition at line 279 of file fvMesh.H.

const DimensionedField<scalar, volMesh>& V (  )  const

Return cell volumes.

const DimensionedField<scalar, volMesh>& V0 (  )  const

Return old-time cell volumes.

const DimensionedField<scalar, volMesh>& V00 (  )  const

Return old-old-time cell volumes.

const surfaceVectorField& Sf (  )  const

Return cell face area vectors.

const surfaceScalarField& magSf (  )  const

Return cell face area magnitudes.

const surfaceScalarField& phi (  )  const

Return cell face motion fluxes.

const volVectorField& C (  )  const

Return cell centres as volVectorField.

const surfaceVectorField& Cf (  )  const

Return face centres as surfaceVectorField.

void clearOut (  ) 

Clear all geometry and addressing.

Reimplemented from polyMesh.

virtual void updateMesh ( const mapPolyMesh &  mpm  )  [virtual]

Update mesh corresponding to the given map.

Reimplemented from polyMesh.

virtual tmp<scalarField> movePoints ( const vectorField &   )  [virtual]

Move points, returns volumes swept by faces in motion.

virtual void mapFields ( const mapPolyMesh &  mpm  )  [virtual]

Map all fields in time using given map.

void removeFvBoundary (  ) 

Remove boundary patches. Warning: fvPatchFields hold ref to.

these fvPatches.

surfaceScalarField& setPhi (  ) 

Return cell face motion fluxes.

DimensionedField<scalar, volMesh>& setV0 (  ) 

Return old-time cell volumes.

virtual bool writeObjects ( IOstream::streamFormat  fmt,
IOstream::versionNumber  ver,
IOstream::compressionType  cmp 
) const [virtual]

Write the underlying polyMesh and other data.

virtual bool write (  )  const [virtual]

Write mesh using IO settings from time.

Reimplemented from regIOobject.

bool operator!= ( const fvMesh &   )  const

bool operator== ( const fvMesh &   )  const


The documentation for this class was generated from the following file: Copyright © 2000-2007 OpenCFD Ltd