Refine a mesh with immersed boundary. More...
Public Types | |
enum | ibCellCollection { UNDEFINED_COLLECTION = 0, IB_CELLS, IB_CELL_CELLS, IB_CELL_CELL_FACES } |
Cell collection method. More... | |
Public Member Functions | |
refineImmersedBoundaryMesh (fvMesh &mesh) | |
Construct from mesh. More... | |
~refineImmersedBoundaryMesh () | |
Destructor. More... | |
labelList | refinementCells (const ibCellCollection &collectionType) const |
Return list of cells for refinement based on specifie collection. More... | |
void | refineMesh (const labelList &refCells) const |
Static Public Attributes | |
static const NamedEnum< ibCellCollection, 4 > | ibCellCollectionNames_ |
Projection method names. More... | |
Private Member Functions | |
refineImmersedBoundaryMesh (const refineImmersedBoundaryMesh &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const refineImmersedBoundaryMesh &) |
Disallow default bitwise assignment. More... | |
void | addIbCells (labelHashSet &refCellSet) const |
Add ibCells for refinement. More... | |
void | addIbCellCells (labelHashSet &refCellSet) const |
Add ibCellCells for refinement. More... | |
void | addIbCellCellFaces (labelHashSet &refCellSet) const |
Add ibCellCellFaces for refinement. More... | |
label | axis (const vector &normal) const |
From refineMesh application. More... | |
label | twoDNess () const |
From refineMesh application. More... | |
Private Attributes | |
fvMesh & | mesh_ |
Reference to mesh. More... | |
Refine a mesh with immersed boundary.
Definition at line 48 of file refineImmersedBoundaryMesh.H.
enum ibCellCollection |
Cell collection method.
Enumerator | |
---|---|
UNDEFINED_COLLECTION | |
IB_CELLS | |
IB_CELL_CELLS | |
IB_CELL_CELL_FACES |
Definition at line 55 of file refineImmersedBoundaryMesh.H.
|
private |
Disallow default bitwise copy construct.
refineImmersedBoundaryMesh | ( | fvMesh & | mesh | ) |
Construct from mesh.
Definition at line 343 of file refineImmersedBoundaryMesh.C.
Destructor.
Definition at line 353 of file refineImmersedBoundaryMesh.C.
|
private |
Disallow default bitwise assignment.
|
private |
Add ibCells for refinement.
Definition at line 56 of file refineImmersedBoundaryMesh.C.
References Foam::constant::universal::c, Foam::endl(), forAll, HashTable::found(), immersedBoundaryFvPatch::ibCells(), Foam::Info, and HashSet< Key, Hash >::insert().
|
private |
Add ibCellCells for refinement.
Definition at line 92 of file refineImmersedBoundaryMesh.C.
References Foam::endl(), forAll, HashTable::found(), immersedBoundaryFvPatch::ibCellCells(), Foam::Info, and HashSet< Key, Hash >::insert().
|
private |
Add ibCellCellFaces for refinement.
Definition at line 129 of file refineImmersedBoundaryMesh.C.
References Foam::endl(), forAll, HashTable::found(), immersedBoundaryFvPatch::gammaExt(), immersedBoundaryFvPatch::ibInsideFaces(), Foam::Info, HashSet< Key, Hash >::insert(), and GeometricField::internalField().
|
private |
From refineMesh application.
Definition at line 179 of file refineImmersedBoundaryMesh.C.
References Foam::e, and Foam::mag().
|
private |
From refineMesh application.
Returns -1 or cartesian coordinate component (0=x, 1=y, 2=z) of normal.
in case of 2D mesh
Definition at line 204 of file refineImmersedBoundaryMesh.C.
Foam::labelList refinementCells | ( | const ibCellCollection & | collectionType | ) | const |
Return list of cells for refinement based on specifie collection.
type (see enumeration)
Definition at line 361 of file refineImmersedBoundaryMesh.C.
References Foam::abort(), Foam::FatalError, FatalErrorIn, and HashTable::toc().
void refineMesh | ( | const labelList & | refCells | ) | const |
Definition at line 405 of file refineImmersedBoundaryMesh.C.
References dictionary::add(), Foam::endl(), Foam::Info, Foam::nl, and List::size().
|
static |
Projection method names.
Definition at line 64 of file refineImmersedBoundaryMesh.H.
|
private |
Reference to mesh.
Definition at line 72 of file refineImmersedBoundaryMesh.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.