Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
refineImmersedBoundaryMesh Class Reference

Refine a mesh with immersed boundary. More...

Collaboration diagram for refineImmersedBoundaryMesh:
Collaboration graph
[legend]

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

fvMeshmesh_
 Reference to mesh. More...
 

Detailed Description

Refine a mesh with immersed boundary.

Source files

Definition at line 48 of file refineImmersedBoundaryMesh.H.

Member Enumeration Documentation

◆ ibCellCollection

Cell collection method.

Enumerator
UNDEFINED_COLLECTION 
IB_CELLS 
IB_CELL_CELLS 
IB_CELL_CELL_FACES 

Definition at line 55 of file refineImmersedBoundaryMesh.H.

Constructor & Destructor Documentation

◆ refineImmersedBoundaryMesh() [1/2]

Disallow default bitwise copy construct.

◆ refineImmersedBoundaryMesh() [2/2]

Construct from mesh.

Definition at line 343 of file refineImmersedBoundaryMesh.C.

◆ ~refineImmersedBoundaryMesh()

Destructor.

Definition at line 353 of file refineImmersedBoundaryMesh.C.

Member Function Documentation

◆ operator=()

void operator= ( const refineImmersedBoundaryMesh )
private

Disallow default bitwise assignment.

◆ addIbCells()

void addIbCells ( labelHashSet refCellSet) const
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().

Here is the call graph for this function:

◆ addIbCellCells()

void addIbCellCells ( labelHashSet refCellSet) const
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().

Here is the call graph for this function:

◆ addIbCellCellFaces()

void addIbCellCellFaces ( labelHashSet refCellSet) const
private

◆ axis()

Foam::label axis ( const vector normal) const
private

From refineMesh application.

Definition at line 179 of file refineImmersedBoundaryMesh.C.

References Foam::e, and Foam::mag().

Here is the call graph for this function:

◆ twoDNess()

Foam::label twoDNess ( ) const
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.

◆ refinementCells()

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().

Here is the call graph for this function:

◆ refineMesh()

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().

Here is the call graph for this function:

Field Documentation

◆ ibCellCollectionNames_

const Foam::NamedEnum< Foam::refineImmersedBoundaryMesh::ibCellCollection, 4 > ibCellCollectionNames_
static

Projection method names.

Definition at line 64 of file refineImmersedBoundaryMesh.H.

◆ mesh_

fvMesh& mesh_
private

Reference to mesh.

Definition at line 72 of file refineImmersedBoundaryMesh.H.


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