Adds two fvMeshes without using any polyMesh morphing. Uses polyMeshAdder. More...
Public Member Functions | |
ClassName ("fvMeshAdder") | |
Static Public Member Functions | |
static autoPtr< mapAddedPolyMesh > | add (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 autoPtr< polyMesh > | add (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< mapAddedPolyMesh > | add (polyMesh &mesh0, const polyMesh &mesh1, const faceCoupleInfo &coupleInfo, const bool validBoundary=true) |
Inplace add mesh to polyMesh. Returns map construct. More... | |
static Map< label > | findSharedPoints (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... | |
Adds two fvMeshes without using any polyMesh morphing. Uses polyMeshAdder.
Definition at line 64 of file fvMeshAdder.H.
ClassName | ( | "fvMeshAdder" | ) |
|
static |
Inplace add mesh to fvMesh. Maps all stored fields. Returns map.
Definition at line 71 of file fvMeshAdder.C.
References polyMeshAdder::add(), fvMesh::boundary(), polyMesh::boundaryMesh(), fvMesh::clearOut(), forAll, fvPatch::New(), patches, patchi, PtrList< T >::set(), PtrList< T >::setSize(), and UPtrList< T >::size().
Referenced by fvMeshDistribute::distribute().
|
static |
Map all volFields of Type.
Definition at line 250 of file fvMeshAdderTemplates.C.
References mapAddedPolyMesh::addedFaceMap(), mapAddedPolyMesh::addedPatchMap(), HashTable< T, Key, Hash >::begin(), fvMesh::boundary(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), polyMesh::boundaryMesh(), HashTableCore::end(), Foam::endl(), fields, fld(), forAll, HashTable< T, Key, Hash >::found(), fvMeshAdder::MapSurfaceFields(), DimensionedField< Type, GeoMesh >::mesh(), OSstream::name(), IOobject::name(), primitiveMesh::nInternalFaces(), mapAddedPolyMesh::oldFaceMap(), mapAddedPolyMesh::oldPatchMap(), mapAddedPolyMesh::oldPatchSizes(), mapAddedPolyMesh::oldPatchStarts(), patchi, Foam::Pout, GeometricField< Type, PatchField, GeoMesh >::primitiveFieldRef(), Field< Type >::rmap(), List< Type >::setSize(), UPtrList< T >::size(), List< T >::size(), List< Type >::size(), polyPatch::start(), and WarningInFunction.
|
static |
Map all surfaceFields of Type.
Definition at line 569 of file fvMeshAdderTemplates.C.
References mapAddedPolyMesh::addedCellMap(), HashTable< T, Key, Hash >::begin(), HashTableCore::end(), Foam::endl(), fields, fld(), HashTable< T, Key, Hash >::found(), fvMeshAdder::MapDimFields(), DimensionedField< Type, GeoMesh >::mesh(), OSstream::name(), fileName::name(), primitiveMesh::nCells(), mapAddedPolyMesh::oldCellMap(), Foam::Pout, Field< Type >::rmap(), List< Type >::setSize(), and WarningInFunction.
Referenced by fvMeshAdder::MapVolFields().
|
static |
Map all DimensionedFields of Type.
Definition at line 666 of file fvMeshAdderTemplates.C.
References HashTable< T, Key, Hash >::begin(), HashTableCore::end(), Foam::endl(), fields, fld(), HashTable< T, Key, Hash >::found(), OSstream::name(), fileName::name(), Foam::Pout, and WarningIn.
Referenced by fvMeshAdder::MapSurfaceFields().