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... | |
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... | |
Adds two fvMeshes without using any polyMesh morphing. Uses polyMeshAdder.
Definition at line 64 of file fvMeshAdder.H.
|
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().
|
staticprivate |
Update single volField.
Definition at line 35 of file fvMeshAdderTemplates.C.
References mapAddedPolyMesh::addedCellMap(), mapAddedPolyMesh::addedFaceMap(), mapAddedPolyMesh::addedPatchMap(), GeometricField::boundaryField(), fld(), forAll, GeometricField::internalField(), mesh, mapAddedPolyMesh::oldCellMap(), mapAddedPolyMesh::oldFaceMap(), mapAddedPolyMesh::oldPatchMap(), mapAddedPolyMesh::oldPatchSizes(), mapAddedPolyMesh::oldPatchStarts(), Field::rmap(), List::size(), and polyPatch::start().
|
staticprivate |
Update single surfaceField.
Definition at line 334 of file fvMeshAdderTemplates.C.
References mapAddedPolyMesh::addedFaceMap(), mapAddedPolyMesh::addedPatchMap(), GeometricField::boundaryField(), fld(), forAll, mesh, mapAddedPolyMesh::oldFaceMap(), mapAddedPolyMesh::oldPatchMap(), mapAddedPolyMesh::oldPatchSizes(), mapAddedPolyMesh::oldPatchStarts(), Field::rmap(), List::size(), and polyPatch::start().
|
staticprivate |
Update single dimensionedField.
Definition at line 645 of file fvMeshAdderTemplates.C.
References mapAddedPolyMesh::addedCellMap(), fld(), mesh, and mapAddedPolyMesh::oldCellMap().
ClassName | ( | "fvMeshAdder" | ) |
|
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().
|
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.
|
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.
|
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.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.