LifeV
BCHandler Class Reference

BCHandler - class for handling boundary conditions. More...

#include <BCHandler.hpp>

+ Collaboration diagram for BCHandler:

Private Member Functions

BCBasefindBC (const std::string &name)
 Find the BC named name. More...
 
BCBasefindBC (const bcFlag_Type &aFlag)
 Find the BC named aFlag. More...
 
void M_sumOffsets ()
 Sum the M_offset to boundary conditions offsets. More...
 

Private Attributes

bool M_bcUpdateDone
 true only if the bcUpdate has been done More...
 
std::vector< BCBaseM_bcList
 vector list holding the stored BCs More...
 
UInt M_offset
 offset More...
 
std::set< bcFlag_TypeM_notFoundMarkers
 set of markers which are in the mesh but not in the list More...
 

Public Types

typedef std::vector< BCBase >::iterator bcBaseIterator_Type
 
typedef std::vector< BCBase >::const_iterator bcBaseConstIterator_Type
 
typedef BCFunctionBase bcFunction_Type
 

Constructor & Destructor

 BCHandler ()
 Empty Constructor. More...
 
 BCHandler (const BCHandler &bcHandler)
 Copy constructor. More...
 
 ~BCHandler ()
 Destructor. More...
 

Operators

BCHandleroperator= (const BCHandler &bcHandler)
 Assignment operator. More...
 
BCBaseoperator[] (const ID &)
 Extract a BC in the list. More...
 
const BCBaseoperator[] (const ID &) const
 Extract a BC in the list, const. More...
 

Methods

void addBC (const std::string &name, const bcFlag_Type &flag, const bcType_Type &type, const bcMode_Type &mode, BCFunctionBase &bcFunction, const bcComponentsVec_Type &components)
 Add new BC to the list for Component or Directional mode problems (user defined function case) More...
 
void addBC (const std::string &name, const bcFlag_Type &flag, const bcType_Type &type, const bcMode_Type &mode, BCFunctionBase &bcFunction)
 Add new BC to the list for Scalar, Tangential or Normal mode problems (user defined function case) More...
 
void addBC (const std::string &name, const bcFlag_Type &flag, const bcType_Type &type, const bcMode_Type &mode, BCFunctionBase &bcFunction, const UInt &numberOfComponents)
 Add new BC to the list for Full mode problems (user defined function case) More...
 
void addBC (const std::string &name, const bcFlag_Type &flag, const bcType_Type &type, const bcMode_Type &mode, BCVectorBase &bcVector, const bcComponentsVec_Type &components)
 Add new BC to the list for Component or Directional mode problems (data vector case) More...
 
void addBC (const std::string &name, const bcFlag_Type &flag, const bcType_Type &type, const bcMode_Type &mode, BCVectorBase &bcVector)
 Add new BC to the list for Scalar, Tangential or Normal mode problems (data vector case) More...
 
void addBC (const std::string &name, const bcFlag_Type &flag, const bcType_Type &type, const bcMode_Type &mode, BCVectorBase &bcVector, const UInt &nComp)
 Add new BC to the list for Full mode problems (data vector case) More...
 
void addBC (const std::string &name, const bcFlag_Type &flag, const bcType_Type &type, const bcMode_Type &mode, BCFunctionUDepBase &bcFunctionFEVectorDependent)
 Add new BC to the list for Scalar, Tangential or Normal mode problems (user defined function case, with function depending on U) More...
 
void addBC (const BCBase &bcBase)
 Add new BC to the list using a BCBase object. More...
 
void modifyBC (std::string const &name, BCFunctionBase const &bcFunction)
 Modify the boundary condition name, assigning the function bcFunction. More...
 
void modifyBC (std::string const &name, BCVectorBase const &bcVector)
 Modify the boundary condition assigning the FE vector in bcVector. More...
 
void modifyBC (std::string const &name, BCFunctionUDepBase const &bcFunctionFEVectorDependent)
 Modify the boundary condition name, assigning the function in bcFunctionFEVectorDependent. More...
 
void modifyBC (bcFlag_Type const &aFlag, BCFunctionBase const &bcFunction)
 Modify the boundary condition associated with flag aFlag, assigning the function in bcFunction. More...
 
void modifyBC (bcFlag_Type const &aFlag, BCVectorBase const &bcVector)
 Modify the boundary condition associated with flag aFlag, assigning the FE vector in bcVector. More...
 
void modifyBC (bcFlag_Type const &aFlag, BCFunctionUDepBase const &bcFunctionFEVectorDependent)
 Modify the boundary condition associated with flag aFlag, assigning the function in bcFunctionFEVectorDependent. More...
 
void modifyBC (bcFlag_Type const &aFlag, bcType_Type const &bcType)
 Modify the boundary condition associated with flag aFlag, assigning the type in bcType. More...
 
template<typename Mesh >
void bcUpdate (Mesh &mesh, CurrentFEManifold &boundaryFE, const DOF &dof)
 Update all the boundary conditions. More...
 
void merge (BCHandler &bcHandler)
 Merges the boundary condition bcHandler (with its offset) with the stored one. More...
 
void showMe (bool verbose=false, std::ostream &out=std::cout) const
 Display the content of the variables. More...
 

Set Methods

void setOffset (const UInt &offset)
 Set offset in all boundary conditions. More...
 
void setOffset (const std::string &name, Int offset)
 Set offset in boundary conditions name. More...
 

Get Methods

BCBasefindBCWithFlag (const bcFlag_Type &aFlag)
 Extract a BC in the list according to its flag. More...
 
const BCBasefindBCWithFlag (const bcFlag_Type &aFlag) const
 Extract a BC in the list according to its flag (non const) More...
 
std::vector< bcName_TypefindAllBCWithType (const bcType_Type &aType) const
 Get a vector list of BC with specific type. The list contains the bcName_Type of the BC. More...
 
UInt numberOfBCWithType (const bcType_Type &aType) const
 Get the number of boundary conditions with type aType. More...
 
ID findBCIndexWithName (const bcName_Type &name) const
 
const BCBasefindBCWithName (const bcName_Type &name) const
 
UInt offset () const
 
bcBaseIterator_Type begin ()
 Iterator of the beginning of the boundary elements list. More...
 
bcBaseConstIterator_Type begin () const
 
bcBaseIterator_Type end ()
 Iterator of the end of the boundary elements list. More...
 
bcBaseConstIterator_Type end () const
 
UInt size () const
 Number of the stored boundary conditions. More...
 
bool empty () const
 Determine whether no boundary conditions are stored. More...
 
bool bcUpdateDone () const
 Determine whether bcUpdate has been done before. More...
 
bool hasOnlyEssential () const
 Determine whether all the stored boundary conditions have EssentialXXX type. More...
 

Detailed Description

BCHandler - class for handling boundary conditions.

Author
Miguel Fernandez

Container for BCBase classes

BCHandler is a container of BCBase objects. It instantiates the needed BCBase objects and provide them with the data needed. As an example, if a BCBase object is related with an Essential boundary condition, then the global DOFs IDs associated with that essential boundary conditions will be passed to the object.

Boundary conditions are added using the method addBC(name, flag, type, ...). type is a bcType_Type and describes the type of boundary condition (Essential, Natural, etc.). flag is used to determine on which elements the boundary condition should be prescribed.

In general flag refers to the boundary elements' marker. The only exception are the bcType_Type EssentialEdges and EssentialVertices. In these two cases the flag refers respectively to the Edges' markers and to the Vertices' markers. In general EssentialEdges and EssentialVertices types are not recommended and they should be used only by advanced users.

For this reasons boundary element markers are needed (and they better be specified in the mesh files).

The typical way to use the class is to create function handlers:

BCFunctionBase bcFuncEss( solOnBoundary ), bcFuncNat( ZeroFunction);

Then, instantiate a BCHandler object and add boundary conditions (this will create BCBase objects).

BCHandler bcHandler;
bcHandler.addBC( "inlet", 10, Essential, Full, bcFuncEss, 3 );
bcHandler.addBC( "outlet", 20, Natural, Full, bcFuncNat, 3 );
bcHandler.addBC( "wall", 30, Essential, Full, bcFuncEss, 3 );

Number 10, 20, 30 refers to the markers on the mesh boundary elements (facets: faces in 3D, edges in 2D). More information about boundary conditions will be found in BCBase.hpp

Then, update the boundary conditions, using the function bcUpdate

bcHandler.bcUpdate(mesh, boundaryFe, dof);

This method will looks for the markers in the mesh and will fill the boundary conditions container BCBase, with the appropriate data structures (global DOF id.. coordinates.. ecc)

Now all is set to prescribe boundary conditions using one of the functions in bcManager.hpp

Definition at line 100 of file BCHandler.hpp.

Member Typedef Documentation

◆ bcBaseIterator_Type

typedef std::vector<BCBase>::iterator bcBaseIterator_Type

Definition at line 107 of file BCHandler.hpp.

◆ bcBaseConstIterator_Type

typedef std::vector<BCBase>::const_iterator bcBaseConstIterator_Type

Definition at line 108 of file BCHandler.hpp.

◆ bcFunction_Type

Definition at line 110 of file BCHandler.hpp.

Constructor & Destructor Documentation

◆ BCHandler() [1/2]

BCHandler ( )

Empty Constructor.

Definition at line 54 of file BCHandler.cpp.

◆ BCHandler() [2/2]

BCHandler ( const BCHandler bcHandler)

Copy constructor.

Warning
This is not a copy constructor, since bcUpdate is set to false, as a consequence of the fact that also BCBase "copy" constructor is not actually a copy constructor
Parameters
bcHandlerBCHandler

Definition at line 60 of file BCHandler.cpp.

+ Here is the caller graph for this function:

◆ ~BCHandler()

~BCHandler ( )

Destructor.

Definition at line 69 of file BCHandler.cpp.

Member Function Documentation

◆ operator=()

BCHandler & operator= ( const BCHandler bcHandler)

Assignment operator.

Parameters
bcHandlerBCHandler
Returns
Reference to a new BCHandler with the same content of BCHandler bcHandler

Definition at line 79 of file BCHandler.cpp.

◆ operator[]() [1/2]

BCBase & operator[] ( const ID i)

Extract a BC in the list.

Parameters
iPosition index
Returns
Reference to the BCBase object in M_bcList at position i

Definition at line 92 of file BCHandler.cpp.

+ Here is the caller graph for this function:

◆ operator[]() [2/2]

const BCBase & operator[] ( const ID i) const

Extract a BC in the list, const.

Parameters
iPosition index
Returns
Const reference to the BCBase object in M_bcList at position i

Definition at line 98 of file BCHandler.cpp.

+ Here is the caller graph for this function:

◆ addBC() [1/8]

void addBC ( const std::string &  name,
const bcFlag_Type flag,
const bcType_Type type,
const bcMode_Type mode,
BCFunctionBase bcFunction,
const bcComponentsVec_Type components 
)

Add new BC to the list for Component or Directional mode problems (user defined function case)

Parameters
nameThe name of the boundary condition
flagThe mesh flag identifying the part of the mesh where the boundary condition applies
typeThe boundary condition type: Natural, Robin, Flux, Resistance, Periodic, Essential, EssentialEdges, EssentialVertices
modethe boundary condition mode: Scalar, Full, Component, Normal, Tangential, Directional
bcFunctionThe container holding the user defined function involved in this boundary condition
componentsstoring the list of components involved in this boundary condition

Definition at line 108 of file BCHandler.cpp.

◆ addBC() [2/8]

void addBC ( const std::string &  name,
const bcFlag_Type flag,
const bcType_Type type,
const bcMode_Type mode,
BCFunctionBase bcFunction 
)

Add new BC to the list for Scalar, Tangential or Normal mode problems (user defined function case)

Parameters
nameThe name of the boundary condition
flagThe mesh flag identifying the part of the mesh where the boundary condition applies
typeThe boundary condition type: Natural, Robin, Flux, Resistance, Periodic, Essential, EssentialEdges, EssentialVertices
modethe boundary condition mode: Scalar, Full, Component, Normal, Tangential, Directional
bcFunctionThe container holding the user defined function involved in this boundary condition

Definition at line 121 of file BCHandler.cpp.

◆ addBC() [3/8]

void addBC ( const std::string &  name,
const bcFlag_Type flag,
const bcType_Type type,
const bcMode_Type mode,
BCFunctionBase bcFunction,
const UInt numberOfComponents 
)

Add new BC to the list for Full mode problems (user defined function case)

Parameters
nameThe name of the boundary condition
flagThe mesh flag identifying the part of the mesh where the boundary condition applies
typeThe boundary condition type: Natural, Robin, Flux, Resistance, Periodic, Essential, EssentialEdges, EssentialVertices
modeThe boundary condition mode: Scalar, Full, Component, Normal, Tangential, Directional
bcFunctionThe container holding the user defined function involved in this boundary condition
numberOfComponentsThe number of components involved in this boundary condition

Definition at line 132 of file BCHandler.cpp.

◆ addBC() [4/8]

void addBC ( const std::string &  name,
const bcFlag_Type flag,
const bcType_Type type,
const bcMode_Type mode,
BCVectorBase bcVector,
const bcComponentsVec_Type components 
)

Add new BC to the list for Component or Directional mode problems (data vector case)

Parameters
nameThe name of the boundary condition
flagThe mesh flag identifying the part of the mesh where the boundary condition applies
typeThe boundary condition type: Natural, Robin, Flux, Resistance, Periodic, Essential, EssentialEdges, EssentialVertices
modethe boundary condition mode: Scalar, Full, Component, Normal, Tangential, Directional
bcVectorThe container holding the finite element vector involved in this boundary condition
componentsstoring the list of components involved in this boundary condition

Definition at line 144 of file BCHandler.cpp.

◆ addBC() [5/8]

void addBC ( const std::string &  name,
const bcFlag_Type flag,
const bcType_Type type,
const bcMode_Type mode,
BCVectorBase bcVector 
)

Add new BC to the list for Scalar, Tangential or Normal mode problems (data vector case)

Parameters
nameThe name of the boundary condition
flagThe mesh flag identifying the part of the mesh where the boundary condition applies
typeThe boundary condition type: Natural, Robin, Flux, Resistance, Periodic, Essential, EssentialEdges, EssentialVertices
modethe boundary condition mode: Scalar, Full, Component, Normal, Tangential, Directional
bcVectorThe container holding the finite element vector involved in this boundary condition

Definition at line 156 of file BCHandler.cpp.

◆ addBC() [6/8]

void addBC ( const std::string &  name,
const bcFlag_Type flag,
const bcType_Type type,
const bcMode_Type mode,
BCVectorBase bcVector,
const UInt nComp 
)

Add new BC to the list for Full mode problems (data vector case)

Parameters
nameThe name of the boundary condition
flagThe mesh flag identifying the part of the mesh where the boundary condition applies
typeThe boundary condition type: Natural, Robin, Flux, Resistance, Periodic, Essential, EssentialEdges, EssentialVertices
modethe boundary condition mode: Scalar, Full, Component, Normal, Tangential, Directional
bcVectorThe container holding the finite element vector involved in this boundary condition
numberOfComponentsThe number of components involved in this boundary condition

Definition at line 167 of file BCHandler.cpp.

◆ addBC() [7/8]

void addBC ( const std::string &  name,
const bcFlag_Type flag,
const bcType_Type type,
const bcMode_Type mode,
BCFunctionUDepBase bcFunctionFEVectorDependent 
)

Add new BC to the list for Scalar, Tangential or Normal mode problems (user defined function case, with function depending on U)

Parameters
nameThe name of the boundary condition
flagThe mesh flag identifying the part of the mesh bcBaseIterator the boundary condition applies
typeThe boundary condition type: Natural, Robin, Flux, Resistance, Periodic, Essential, EssentialEdges, EssentialVertices
modethe boundary condition mode: Scalar, Full, Component, Normal, Tangential, Directional
bcFunctionFEVectorDependentThe container holding the user defined function, depending on a FE vector, involved in this boundary condition

Definition at line 179 of file BCHandler.cpp.

◆ addBC() [8/8]

void addBC ( const BCBase bcBase)

Add new BC to the list using a BCBase object.

Parameters
bcBasea BCBase object

Definition at line 190 of file BCHandler.cpp.

◆ modifyBC() [1/7]

void modifyBC ( std::string const &  name,
BCFunctionBase const &  bcFunction 
)

Modify the boundary condition name, assigning the function bcFunction.

Parameters
nameThe name of the boundary condition to be modified
bcFunctionThe container holding the user defined function which will replace the existing one

Definition at line 197 of file BCHandler.cpp.

◆ modifyBC() [2/7]

void modifyBC ( std::string const &  name,
BCVectorBase const &  bcVector 
)

Modify the boundary condition assigning the FE vector in bcVector.

Parameters
nameThe name of the boundary condition to be modified
bcVectorThe container holding the user FE vector which will replace the existing one

Definition at line 205 of file BCHandler.cpp.

◆ modifyBC() [3/7]

void modifyBC ( std::string const &  name,
BCFunctionUDepBase const &  bcFunctionFEVectorDependent 
)

Modify the boundary condition name, assigning the function in bcFunctionFEVectorDependent.

Parameters
nameThe name of the boundary condition to be modified
bcFunctionFEVectorDependentThe container holding the user defined function, depending on an FE vector, which will replace the existing one

Definition at line 213 of file BCHandler.cpp.

◆ modifyBC() [4/7]

void modifyBC ( bcFlag_Type const &  aFlag,
BCFunctionBase const &  bcFunction 
)

Modify the boundary condition associated with flag aFlag, assigning the function in bcFunction.

Parameters
aFlagThe flag associated with the boundary condition to be modified
bcFunctionThe container holding the user defined function which will replace the existing one

Definition at line 221 of file BCHandler.cpp.

◆ modifyBC() [5/7]

void modifyBC ( bcFlag_Type const &  aFlag,
BCVectorBase const &  bcVector 
)

Modify the boundary condition associated with flag aFlag, assigning the FE vector in bcVector.

Parameters
aFlagThe flag associated with the boundary condition to be modified
bcVectorThe container holding the user FE vector which will replace the existing one

Definition at line 231 of file BCHandler.cpp.

◆ modifyBC() [6/7]

void modifyBC ( bcFlag_Type const &  aFlag,
BCFunctionUDepBase const &  bcFunctionFEVectorDependent 
)

Modify the boundary condition associated with flag aFlag, assigning the function in bcFunctionFEVectorDependent.

Parameters
aFlagThe flag associated with the boundary condition to be modified
bcFunctionFEVectorDependentThe container holding the user defined function, depending on an FE vector, which will replace the existing one

Definition at line 239 of file BCHandler.cpp.

◆ modifyBC() [7/7]

void modifyBC ( bcFlag_Type const &  aFlag,
bcType_Type const &  bcType 
)

Modify the boundary condition associated with flag aFlag, assigning the type in bcType.

Parameters
aFlagThe flag associated with the boundary condition to be modified
bcVectorThe type of b.c. which will replace the existing one

Definition at line 247 of file BCHandler.cpp.

◆ bcUpdate()

void bcUpdate ( Mesh &  mesh,
CurrentFEManifold boundaryFE,
const DOF dof 
)

Update all the boundary conditions.

This method update the BC classes checking the markers on the boundary. Except for EssentialEdges and EssentialVertices type of boundary conditions, the flags associated with the boundary conditions will be searched among the markers of the boundary element (facets).

Then, all the DOFs belonging to a matching boundary element will be associated with the appropriate boundary conditions. It is possible then the same DOF is shared by different boundary conditions. In the case of essential boundary conditions, the largest condition will be prescribed on the shared DOF (largest in the ordering given by the operator< in BCBase.hpp) In particular, if two Essential boundary conditions share the same DOF, it will be prescribed the condition with the largest flag. This behavior is due to the fact that the largest boundary condition is the last to be prescribed.

Finally M_bcUpdateDone is set to true, and it is possible to prescribed boundary conditions using functions in BCManage.hpp.

Parameters
meshThe mesh
boundaryFECurrent finite element on the boundary
dofContainer of the local to global map of DOF id

Definition at line 560 of file BCHandler.hpp.

◆ merge()

void merge ( BCHandler bcHandler)

Merges the boundary condition bcHandler (with its offset) with the stored one.

Parameters
bchBCHandler

Definition at line 255 of file BCHandler.cpp.

◆ showMe()

void showMe ( bool  verbose = false,
std::ostream &  out = std::cout 
) const

Display the content of the variables.

Parameters
verboseThe verbosity (default: true)
outThe ostream output (default: std::cout)

Definition at line 265 of file BCHandler.cpp.

◆ setOffset() [1/2]

void setOffset ( const UInt offset)

Set offset in all boundary conditions.

Parameters
offsetThe boundary condition offset

Definition at line 282 of file BCHandler.cpp.

+ Here is the caller graph for this function:

◆ setOffset() [2/2]

void setOffset ( const std::string &  name,
Int  offset 
)

Set offset in boundary conditions name.

Parameters
nameThe name of the boundary condition
offsetThe boundary condition offset

Definition at line 288 of file BCHandler.cpp.

◆ findBCWithFlag() [1/2]

BCBase & findBCWithFlag ( const bcFlag_Type aFlag)

Extract a BC in the list according to its flag.

Parameters
aFlagThe flag associated with the boundary condition
Returns
constant Reference to the boundary condition associated with flag aFlag

Definition at line 304 of file BCHandler.cpp.

+ Here is the caller graph for this function:

◆ findBCWithFlag() [2/2]

const BCBase & findBCWithFlag ( const bcFlag_Type aFlag) const

Extract a BC in the list according to its flag (non const)

Parameters
aFlagThe flag associated with the boundary condition
Returns
constant Reference to the boundary condition associated with flag aFlag

Definition at line 318 of file BCHandler.cpp.

◆ findAllBCWithType()

std::vector< bcName_Type > findAllBCWithType ( const bcType_Type aType) const

Get a vector list of BC with specific type. The list contains the bcName_Type of the BC.

Parameters
aTypeThe BC type to be inserted in the list

Definition at line 332 of file BCHandler.cpp.

◆ numberOfBCWithType()

UInt numberOfBCWithType ( const bcType_Type aType) const

Get the number of boundary conditions with type aType.

Parameters
aTypeThe BC type to be counted
Returns
Number of boundary conditions with type aType

Definition at line 346 of file BCHandler.cpp.

◆ findBCIndexWithName()

UInt findBCIndexWithName ( const bcName_Type name) const
Parameters
nameThe name of the boundary condition
Returns
The index of the boundary condition

Definition at line 366 of file BCHandler.cpp.

◆ findBCWithName()

const BCBase * findBCWithName ( const bcName_Type name) const
Parameters
nameThe name of the boundary condition
Returns
The index of the boundary condition

Definition at line 360 of file BCHandler.cpp.

◆ offset()

UInt offset ( ) const
inline
Returns
The offset of the boundary conditions

Definition at line 444 of file BCHandler.hpp.

+ Here is the caller graph for this function:

◆ begin() [1/2]

bcBaseIterator_Type begin ( )
inline

Iterator of the beginning of the boundary elements list.

Returns
The Iterator of the beginning of M_bcList

Definition at line 454 of file BCHandler.hpp.

◆ begin() [2/2]

bcBaseConstIterator_Type begin ( ) const
inline

Definition at line 458 of file BCHandler.hpp.

+ Here is the caller graph for this function:

◆ end() [1/2]

bcBaseIterator_Type end ( )
inline

Iterator of the end of the boundary elements list.

Returns
The Iterator of the end of M_bcList

Definition at line 468 of file BCHandler.hpp.

◆ end() [2/2]

bcBaseConstIterator_Type end ( ) const
inline

Definition at line 472 of file BCHandler.hpp.

+ Here is the caller graph for this function:

◆ size()

UInt size ( ) const
inline

Number of the stored boundary conditions.

Returns
the number of boundary conditions stored

Definition at line 482 of file BCHandler.hpp.

+ Here is the caller graph for this function:

◆ empty()

bool empty ( ) const
inline

Determine whether no boundary conditions are stored.

Returns
true only if no boundary conditions are stored

Definition at line 492 of file BCHandler.hpp.

◆ bcUpdateDone()

bool bcUpdateDone ( ) const
inline

Determine whether bcUpdate has been done before.

Returns
true only if bcUpdate has been done before

Definition at line 502 of file BCHandler.hpp.

+ Here is the caller graph for this function:

◆ hasOnlyEssential()

bool hasOnlyEssential ( ) const

Determine whether all the stored boundary conditions have EssentialXXX type.

It throws a logic_error exception if state is not consistent with hint.

Returns
true only if the stored boundary conditions are of EssentialXXX type

Definition at line 394 of file BCHandler.cpp.

+ Here is the caller graph for this function:

◆ findBC() [1/2]

BCBase * findBC ( const std::string &  name)
private

Find the BC named name.

It throws an invalid_argument exception if name is not found.

Returns
A pointer to BCBase

handle invalid name case: ie we didnot find the name in the M_bcList

Definition at line 443 of file BCHandler.cpp.

+ Here is the caller graph for this function:

◆ findBC() [2/2]

BCBase * findBC ( const bcFlag_Type aFlag)
private

Find the BC named aFlag.

It throws an invalid_argument exception if aFlag is not found.

Returns
A pointer to BCBase

Definition at line 470 of file BCHandler.cpp.

+ Here is the caller graph for this function:

◆ M_sumOffsets()

void M_sumOffsets ( )
private

Sum the M_offset to boundary conditions offsets.

Definition at line 486 of file BCHandler.cpp.

+ Here is the caller graph for this function:

Field Documentation

◆ M_bcUpdateDone

bool M_bcUpdateDone
private

true only if the bcUpdate has been done

Definition at line 541 of file BCHandler.hpp.

◆ M_bcList

std::vector<BCBase> M_bcList
private

vector list holding the stored BCs

Definition at line 544 of file BCHandler.hpp.

◆ M_offset

UInt M_offset
private

offset

Definition at line 547 of file BCHandler.hpp.

◆ M_notFoundMarkers

std::set<bcFlag_Type> M_notFoundMarkers
private

set of markers which are in the mesh but not in the list

Definition at line 550 of file BCHandler.hpp.


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