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 | MapPointFields (const mapAddedPolyMesh &, const pointMesh &mesh, const labelListList &oldMeshPoints, const objectRegistry &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< 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... | |
Adds two fvMeshes without using any polyMesh morphing. Uses polyMeshAdder.
Definition at line 65 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(), forAll, objectRegistry::foundObject(), MeshObject< polyMesh, PatchMeshObject, pointMesh >::New(), fvPatch::New(), patches, patchi, PtrList< T >::set(), PtrList< T >::setSize(), List< T >::setSize(), and UPtrList< T >::size().
Referenced by fvMeshDistribute::distribute().
|
static |
Map all volFields of Type.
Definition at line 253 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 574 of file fvMeshAdderTemplates.C.
References mapAddedPolyMesh::addedPatchMap(), mapAddedPolyMesh::addedPointMap(), HashTable< T, Key, Hash >::begin(), pointMesh::boundary(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), HashTableCore::end(), Foam::endl(), fields, HashTable< T, Key, Hash >::find(), fld(), forAll, HashTable< T, Key, Hash >::found(), fvMeshAdder::MapPointFields(), DimensionedField< Type, GeoMesh >::mesh(), pointPatch::meshPoints(), OSstream::name(), fileName::name(), newPointi, mapAddedPolyMesh::oldPatchMap(), mapAddedPolyMesh::oldPointMap(), patchi, Foam::Pout, GeometricField< Type, PatchField, GeoMesh >::primitiveFieldRef(), Field< Type >::rmap(), List< Type >::setSize(), pointMesh::size(), UPtrList< T >::size(), List< Type >::size(), List< T >::size(), pointPatch::size(), and WarningInFunction.
Referenced by fvMeshAdder::MapVolFields().
|
static |
Map all surfaceFields of Type.
Definition at line 899 of file fvMeshAdderTemplates.C.
References mapAddedPolyMesh::addedCellMap(), HashTable< T, Key, Hash >::begin(), HashTableCore::end(), Foam::endl(), fields, fld(), HashTable< T, Key, Hash >::found(), objectRegistry::lookupClass(), fvMeshAdder::MapDimFields(), mesh, DimensionedField< Type, GeoMesh >::mesh(), OSstream::name(), fileName::name(), primitiveMesh::nCells(), mapAddedPolyMesh::oldCellMap(), Foam::Pout, Field< Type >::rmap(), List< Type >::setSize(), pointMesh::thisDb(), and WarningInFunction.
Referenced by fvMeshAdder::MapSurfaceFields().
|
static |
Map all DimensionedFields of Type.
Definition at line 990 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::MapPointFields().