Public Member Functions | Static Public Member Functions | Static Private Member Functions
fvMeshAdder Class Reference

Adds two fvMeshes without using any polyMesh morphing. Uses polyMeshAdder. More...

Inheritance diagram for fvMeshAdder:
Inheritance graph
[legend]
Collaboration diagram for fvMeshAdder:
Collaboration graph
[legend]

Public Member Functions

 ClassName ("fvMeshAdder")
 

Static Public Member Functions

static autoPtr< mapAddedPolyMeshadd (fvMesh &mesh0, const fvMesh &mesh1, const faceCoupleInfo &coupleInfo, const bool validBoundary=true)
 Inplace add mesh to fvMesh. Maps all stored fields. Returns map. More...
 
template<class Type >
static void MapVolFields (const mapAddedPolyMesh &, const fvMesh &mesh, const fvMesh &meshToAdd)
 Map all volFields of Type. More...
 
template<class Type >
static void MapSurfaceFields (const mapAddedPolyMesh &, const fvMesh &mesh, const fvMesh &meshToAdd)
 Map all surfaceFields of Type. More...
 
template<class Type >
static void MapDimFields (const mapAddedPolyMesh &, const fvMesh &mesh, const fvMesh &meshToAdd)
 Map all DimensionedFields of Type. More...
 
- Static Public Member Functions inherited from polyMeshAdder
static autoPtr< polyMeshadd (const IOobject &io, const polyMesh &mesh0, const polyMesh &mesh1, const faceCoupleInfo &coupleInfo, autoPtr< mapAddedPolyMesh > &mapPtr)
 Add two polyMeshes. Returns new polyMesh and map construct. More...
 
static autoPtr< mapAddedPolyMeshadd (polyMesh &mesh0, const polyMesh &mesh1, const faceCoupleInfo &coupleInfo, const bool validBoundary=true)
 Inplace add mesh to polyMesh. Returns map construct. More...
 
static Map< labelfindSharedPoints (const polyMesh &, const scalar mergeTol)
 Find topologically and geometrically shared points. More...
 
static void mergePoints (const polyMesh &, const Map< label > &pointToMaster, polyTopoChange &meshMod)
 Helper: Merge points. More...
 

Static Private Member Functions

static labelList calcPatchMap (const label oldStart, const label oldSize, const labelList &oldToNew, const polyPatch &newPatch, const label unmappedIndex)
 Calculate map from new patch faces to old patch faces. -1 where. More...
 
template<class Type >
static void MapVolField (const mapAddedPolyMesh &meshMap, GeometricField< Type, fvPatchField, volMesh > &fld, const GeometricField< Type, fvPatchField, volMesh > &fldToAdd)
 Update single volField. More...
 
template<class Type >
static void MapSurfaceField (const mapAddedPolyMesh &meshMap, GeometricField< Type, fvsPatchField, surfaceMesh > &fld, const GeometricField< Type, fvsPatchField, surfaceMesh > &fldToAdd)
 Update single surfaceField. More...
 
template<class Type >
static void MapDimField (const mapAddedPolyMesh &meshMap, DimensionedField< Type, volMesh > &fld, const DimensionedField< Type, volMesh > &fldToAdd)
 Update single dimensionedField. More...
 

Detailed Description

Adds two fvMeshes without using any polyMesh morphing. Uses polyMeshAdder.

Source files

Definition at line 64 of file fvMeshAdder.H.

Member Function Documentation

◆ calcPatchMap()

Foam::labelList calcPatchMap ( const label  oldStart,
const label  oldSize,
const labelList oldToNew,
const polyPatch newPatch,
const label  unmappedValue 
)
staticprivate

Calculate map from new patch faces to old patch faces. -1 where.

could not map.

Definition at line 44 of file fvMeshAdder.C.

References polyPatch::start().

Here is the call graph for this function:

◆ MapVolField()

void MapVolField ( const mapAddedPolyMesh meshMap,
GeometricField< Type, fvPatchField, volMesh > &  fld,
const GeometricField< Type, fvPatchField, volMesh > &  fldToAdd 
)
staticprivate

◆ MapSurfaceField()

void MapSurfaceField ( const mapAddedPolyMesh meshMap,
GeometricField< Type, fvsPatchField, surfaceMesh > &  fld,
const GeometricField< Type, fvsPatchField, surfaceMesh > &  fldToAdd 
)
staticprivate

◆ MapDimField()

void MapDimField ( const mapAddedPolyMesh meshMap,
DimensionedField< Type, volMesh > &  fld,
const DimensionedField< Type, volMesh > &  fldToAdd 
)
staticprivate

Update single dimensionedField.

Definition at line 645 of file fvMeshAdderTemplates.C.

References mapAddedPolyMesh::addedCellMap(), fld(), mesh, and mapAddedPolyMesh::oldCellMap().

Here is the call graph for this function:

◆ ClassName()

ClassName ( "fvMeshAdder"  )

◆ add()

Foam::autoPtr< Foam::mapAddedPolyMesh > add ( fvMesh mesh0,
const fvMesh mesh1,
const faceCoupleInfo coupleInfo,
const bool  validBoundary = true 
)
static

Inplace add mesh to fvMesh. Maps all stored fields. Returns map.

Definition at line 74 of file fvMeshAdder.C.

References Foam::add(), fvMesh::boundary(), polyMesh::boundaryMesh(), fvMesh::clearOut(), forAll, Foam::compressible::New(), patches, PtrList::set(), and PtrList::setSize().

Referenced by fvMeshDistribute::distribute(), and main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MapVolFields()

void MapVolFields ( const mapAddedPolyMesh meshMap,
const fvMesh mesh,
const fvMesh meshToAdd 
)
static

Map all volFields of Type.

Definition at line 250 of file fvMeshAdderTemplates.C.

References Foam::endl(), fields, fld(), HashTable::found(), mesh, OSstream::name(), Foam::Pout, and WarningInFunction.

Here is the call graph for this function:

◆ MapSurfaceFields()

void MapSurfaceFields ( const mapAddedPolyMesh meshMap,
const fvMesh mesh,
const fvMesh meshToAdd 
)
static

Map all surfaceFields of Type.

Definition at line 569 of file fvMeshAdderTemplates.C.

References Foam::endl(), fields, fld(), HashTable::found(), mesh, OSstream::name(), Foam::Pout, and WarningInFunction.

Here is the call graph for this function:

◆ MapDimFields()

void MapDimFields ( const mapAddedPolyMesh meshMap,
const fvMesh mesh,
const fvMesh meshToAdd 
)
static

Map all DimensionedFields of Type.

Definition at line 666 of file fvMeshAdderTemplates.C.

References Foam::endl(), fields, fld(), HashTable::found(), mesh, Foam::Pout, and WarningInFunction.

Here is the call graph for this function:

The documentation for this class was generated from the following files: