LifeV
BCBase Class Reference

BCBase - Base class which holds the boundary condition information. More...

#include <BCBase.hpp>

+ Collaboration diagram for BCBase:

Private Attributes

std::string M_name
 name of the boundary condition More...
 
bcFlag_Type M_flag
 flag identifying a specific part of the mesh boundary More...
 
bcType_Type M_type
 the boundary condition type More...
 
bcMode_Type M_mode
 the boundary condition mode of application More...
 
bcComponentsVec_Type M_components
 
std::shared_ptr< BCFunctionBaseM_bcFunction
 the list of components involved in this BC More...
 
std::shared_ptr< BCFunctionUDepBaseM_bcFunctionFEVectorDependent
 Pointer to a user defined BC function (depending on a generic FE vector) More...
 
std::shared_ptr< BCVectorBaseM_bcVector
 Pointer to a user given BC vector. More...
 
bool M_isStored_BcVector
 
bool M_isStored_BcFunctionVectorDependent
 True if a FE BCVector has been provided. More...
 
std::set< std::shared_ptr< BCIdentifierBase >, BCIdentifierComparisonM_idSet
 set of pointers to identifiers allowing the user to get hold the DOF to which the BC applies More...
 
std::vector< std::shared_ptr< BCIdentifierBase > > M_idVector
 container for id's when the list is finalized More...
 
int M_offset
 boundary condition offset More...
 
bool M_finalized
 True, when M_idVector is finalized. More...
 

Friends

class BCHandler
 BCHandle is a friend class of BCBase. More...
 

Constructor & Destructor

 BCBase ()
 Empty constructor. More...
 
 BCBase (const bcName_Type &name, const bcFlag_Type &flag, const bcType_Type &type, const bcMode_Type &mode, BCFunctionBase &bcFunction, const bcComponentsVec_Type &components)
 Constructor for BCBase. More...
 
 BCBase (const bcName_Type &name, const bcFlag_Type &flag, const bcType_Type &type, const bcMode_Type &mode, BCFunctionBase &bcFunction)
 Constructor for BCBase without specifying components for Scalar, Tangential or Normal mode problems. More...
 
 BCBase (const bcName_Type &name, const bcFlag_Type &flag, const bcType_Type &type, const bcMode_Type &mode, BCFunctionBase &bcFunction, const UInt &numberOfComponents)
 Constructor for BCBase without specifying components for without list of components for Full mode problems. More...
 
 BCBase (const bcName_Type &name, const bcFlag_Type &flag, const bcType_Type &type, const bcMode_Type &mode, BCVectorBase &vector, const bcComponentsVec_Type &components)
 Constructor for BCBase to prescribe a boundary condition from a vector of dof values. More...
 
 BCBase (const bcName_Type &name, const bcFlag_Type &flag, const bcType_Type &type, const bcMode_Type &mode, BCVectorBase &bcVector)
 Constructor for BCBase to prescribe a boundary condition from a vector of dof values without specifying components for Scalar, Tangential or Normal mode problems. More...
 
 BCBase (const bcName_Type &name, const bcFlag_Type &flag, const bcType_Type &type, const bcMode_Type &mode, BCVectorBase &bcVector, const UInt &numberOfComponents)
 Constructor for BCBase to prescribe a boundary condition from a vector of dof values without specifying components for Full mode problems. More...
 
 BCBase (const bcName_Type &name, const bcFlag_Type &flag, const bcType_Type &type, const bcMode_Type &mode, BCFunctionUDepBase &bcFunctionFEVectorDependent, const bcComponentsVec_Type &components)
 Constructor for BCBase. The BC function depends on a generic FE vector (e.g. the solution at the previous time step) More...
 
 BCBase (const bcName_Type &name, const bcFlag_Type &flag, const bcType_Type &type, const bcMode_Type &mode, BCFunctionUDepBase &bcFunctionFEVectorDependent)
 Constructor for BCBase without specifying components for Scalar, Tangential or Normal mode problems. The BC function depends on a generic FE vector (e.g. the solution at the previous time step) More...
 
 BCBase (const bcName_Type &name, const bcFlag_Type &flag, const bcType_Type &type, const bcMode_Type &mode, BCFunctionUDepBase &bcFunctionFEVectorDependent, const UInt &numberOfComponents)
 Constructor for BCBase without specifying components for Full mode problems. The BC function depends on a generic FE vector (e.g. the solution at the previous time step) More...
 
 BCBase (const BCBase &bcBase)
 Copy constructor for BCBase. More...
 
 ~BCBase ()
 Destructor. More...
 

Methods

ID component (const ID i) const
 Returns the index of the component of the solution associated to the iComponent-th component prescribed in the boundary condition at hand. More...
 
bool isRobinCoeffAVector () const
 Returns true if robin coefficient (in BC Vector ) is a VectorEpetra, false if it is scalar (default alphaCoef=1) More...
 
bool isBetaCoeffAVector () const
 Returns true if beta coefficient (in BC Vector ) is a VectorEpetra (betaVec) (default betaCoef=1) More...
 
Real robinCoeffVector (const ID &iDof, const ID &iComponent) const
 Returns the value of the robin coefficient vector (in BC Vector) More...
 
Real betaCoeffVector (const ID &iDof, const ID &iComponent) const
 Returns the value of the beta coefficient vector (in BC Vector) More...
 
const BCFunctionBasepointerToFunctor () const
 Returns a pointer to the BCFunctionBase object. More...
 
const BCFunctionUDepBasepointerToFunctorUDep () const
 Returns a pointer to the BCFunctionUDepBase object. More...
 
const BCVectorBasepointerToBCVector () const
 Returns a pointer to the BCVector object. More...
 
void addBCIdentifier (BCIdentifierBase *identifierToAddPtr)
 Adds a new identifier to the list. More...
 
UInt list_size () const
 Returns the size of the identifiers list. More...
 
std::ostream & showMe (bool verbose=false, std::ostream &outStream=std::cout) const
 Method that writes info in output. More...
 

Operators

bool operator< (const BCBase &bcBase1, const BCBase &bcBase2)
 Overloading "less-than" operator between BCBase objects. More...
 
bool operator== (const BCBase &bcBase, const bcFlag_Type flag)
 Overloading "is-equal" operator for BCBase objects. More...
 
BCBaseoperator= (const BCBase &bcBase)
 The assignment operator for BCBase. More...
 
const BCIdentifierBaseoperator[] (const ID &i) const
 Returns a pointer to the (i)-th element of the list of identifiers. More...
 
Real operator() (const Real &t, const Real &x, const Real &y, const Real &z, const ID &iComponent) const
 Overloading function operator by calling the BCFunctionBase user specified function. More...
 
Real operator() (const Real &t, const Real &x, const Real &y, const Real &z, const ID &iComponent, const Real &u) const
 Overloading function operator by calling the BCFunctionUDepBase user specified function. More...
 
Real operator() (const ID &iDof, const ID &iComponent) const
 Overloading function operator by querying the BCVector in DOF iDof and component iComponent. More...
 

Set Methods

void setBCVector (const BCVectorBase &bcVector)
 set BCVectorBase boundary condition More...
 
void setBCFunction (const BCFunctionBase &bcFunction)
 set BCFunctionBase boundary condition More...
 
void setBCFunction (const BCFunctionUDepBase &bcFunctionFEVectorDependent)
 set BCFunctionUDepBase boundary condition More...
 
void setOffset (int bcOffset)
 Set the BC offset. More...
 
void setType (const bcType_Type &bcType)
 Set the BC type. More...
 

Get Methods

std::string name () const
 Returns the boundary condition name. More...
 
bcFlag_Type flag () const
 Returns the flag associated to the boundary condition name. More...
 
bcType_Type type () const
 Returns the boundary condition type. More...
 
bcMode_Type mode () const
 Returns the boundary condition mode. More...
 
UInt numberOfComponents () const
 Returns the number of components involved in this boundary condition. More...
 
const int & offset () const
 Returns the offset associated to this boundary condition. More...
 
Real robinCoeff () const
 Returns the value of the robin coefficient (in BC Vector) More...
 
Real resistanceCoeff () const
 Returns the value of the resistance coefficient (in BC Vector) More...
 
Real betaCoeff () const
 Returns the value of the beta coefficient (in BC Vector) More...
 
bool isDataAVector () const
 Returns True if a FE BCVector has been provided to the class, False otherwise. More...
 
bool finalized () const
 Returns whether the list is finalized and the vector of ID's is then accessible. More...
 
bool isUDep () const
 Returns True if the BCBase is based on a BCFunctionUDepBase function, False otherwise. More...
 
void copyIdSetIntoIdVector ()
 

Detailed Description

BCBase - Base class which holds the boundary condition information.

Author
M.A. Fernandez
M.Prosi
See also

For each boundary condition the user must give

  1. a name,

  2. a mesh flag,

  3. a type,

  4. a mode,

  5. a data BCFunction,

  6. three (or two in 2D) bools describing the components involved in this boundary condition.

Finally the list of pointers to identifiers will be updated in the DOF class (BCHandler::bcUpdate method).

Warning
The idea is to not use inheritance from this class

Definition at line 149 of file BCBase.hpp.

Constructor & Destructor Documentation

◆ BCBase() [1/11]

BCBase ( )

Empty constructor.

Definition at line 73 of file BCBase.cpp.

◆ BCBase() [2/11]

BCBase ( const bcName_Type name,
const bcFlag_Type flag,
const bcType_Type type,
const bcMode_Type mode,
BCFunctionBase bcFunction,
const bcComponentsVec_Type components 
)

Constructor for BCBase.

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, Essential, Robin, Flux, Resistance
modethe boundary condition mode: Scalar, Full, Component, Normal, Tangential, Directional
bcFunctionthe function holding the user defined function defining the boundary condition
componentsvector of IDs storing the list of components involved in this boundary condition

Definition at line 77 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ BCBase() [3/11]

BCBase ( const bcName_Type name,
const bcFlag_Type flag,
const bcType_Type type,
const bcMode_Type mode,
BCFunctionBase bcFunction 
)

Constructor for BCBase without specifying components for Scalar, Tangential or Normal mode problems.

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, Essential, Robin, Flux, Resistance
modethe boundary condition mode: Scalar, Normal, Tangential
bcFunctionthe BCFunctionBase holding the function defining the boundary condition involved in this boundary condition

Definition at line 100 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ BCBase() [4/11]

BCBase ( const bcName_Type name,
const bcFlag_Type flag,
const bcType_Type type,
const bcMode_Type mode,
BCFunctionBase bcFunction,
const UInt numberOfComponents 
)

Constructor for BCBase without specifying components for without list of components for Full mode problems.

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, Essential, Robin, Flux, Resistance
modethe boundary condition mode: Full
bcFunctionBCFunctionBase holding the function defining the boundary condition
numberOfComponentsnumber of components involved in this boundary condition

Definition at line 162 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ BCBase() [5/11]

BCBase ( const bcName_Type name,
const bcFlag_Type flag,
const bcType_Type type,
const bcMode_Type mode,
BCVectorBase vector,
const bcComponentsVec_Type components 
)

Constructor for BCBase to prescribe a boundary condition from a vector of dof values.

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, Essential, Robin, Flux, Resistance
modethe boundary condition mode: Scalar, Full, Component, Normal, Tangential, Directional
vectorthe vector containing the dof values to be prescribed as boundary data
componentsvector of IDs storing the list of components involved in this boundary condition

Definition at line 195 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ BCBase() [6/11]

BCBase ( const bcName_Type name,
const bcFlag_Type flag,
const bcType_Type type,
const bcMode_Type mode,
BCVectorBase bcVector 
)

Constructor for BCBase to prescribe a boundary condition from a vector of dof values without specifying components for Scalar, Tangential or Normal mode problems.

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, Essential, Robin, Flux, Resistance
modethe boundary condition mode: Scalar, Full, Component, Normal, Tangential, Directional
bcVectorthe vector containing the dof values to be prescribed as boundary data

Definition at line 221 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ BCBase() [7/11]

BCBase ( const bcName_Type name,
const bcFlag_Type flag,
const bcType_Type type,
const bcMode_Type mode,
BCVectorBase bcVector,
const UInt numberOfComponents 
)

Constructor for BCBase to prescribe a boundary condition from a vector of dof values without specifying components for Full mode problems.

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, Essential, Robin, Flux, Resistance
modethe boundary condition mode: Scalar, Full, Component, Normal, Tangential, Directional
bcVectorthe vector containing the dof values to be prescribed as boundary data
numberOfComponentsnumber of components involved in this boundary condition

Definition at line 275 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ BCBase() [8/11]

BCBase ( const bcName_Type name,
const bcFlag_Type flag,
const bcType_Type type,
const bcMode_Type mode,
BCFunctionUDepBase bcFunctionFEVectorDependent,
const bcComponentsVec_Type components 
)

Constructor for BCBase. The BC function depends on a generic FE vector (e.g. the solution at the previous time step)

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, Essential, Robin, Flux, Resistance
modethe boundary condition mode: Scalar, Full, Component, Normal, Tangential, Directional
bcFunctionFEVectorDependentthe BCFunctionUDepBase holding the function (depending on a generic finite element vector ) defining the boundary condition
componentsvector of IDs storing the list of components involved in this boundary condition

Definition at line 308 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ BCBase() [9/11]

BCBase ( const bcName_Type name,
const bcFlag_Type flag,
const bcType_Type type,
const bcMode_Type mode,
BCFunctionUDepBase bcFunctionFEVectorDependent 
)

Constructor for BCBase without specifying components for Scalar, Tangential or Normal mode problems. The BC function depends on a generic FE vector (e.g. the solution at the previous time step)

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, Essential, Robin, Flux, Resistance
modethe boundary condition mode: Scalar, Normal, Tangential
bcFunctionFEVectorDependentthe BCFunctionUDepBase holding the function (depending on a generic finite element vector ) defining the boundary condition

Definition at line 333 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ BCBase() [10/11]

BCBase ( const bcName_Type name,
const bcFlag_Type flag,
const bcType_Type type,
const bcMode_Type mode,
BCFunctionUDepBase bcFunctionFEVectorDependent,
const UInt numberOfComponents 
)

Constructor for BCBase without specifying components for Full mode problems. The BC function depends on a generic FE vector (e.g. the solution at the previous time step)

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, Essential, Robin, Flux, Resistance
modethe boundary condition mode: Full
bcFunctionFEVectorDependentthe BCFunctionUDepBase holding the function (depending on a generic finite element vector ) defining the boundary condition
numberOfComponentsnumber of components involved in this boundary condition

Definition at line 384 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ BCBase() [11/11]

BCBase ( const BCBase bcBase)

Copy constructor for BCBase.

Parameters
bcBasea BCBase object
Warning
This is not a copy constructor since the lists are built empty

Definition at line 417 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ ~BCBase()

~BCBase ( )

Destructor.

Definition at line 458 of file BCBase.cpp.

Member Function Documentation

◆ component()

ID component ( const ID  i) const

Returns the index of the component of the solution associated to the iComponent-th component prescribed in the boundary condition at hand.

Example: the solution has 4 components and we prescribe a boundary condition on component 0 and 3. Then, component(1) returns 3, since 3 is the index of the 2nd BC prescribed.

Parameters
iComponentthe "local" component
Returns
the index of the component of the solution associated to the iComponent-th component prescribed in the boundary condition at hand

Definition at line 466 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ isRobinCoeffAVector()

bool isRobinCoeffAVector ( ) const

Returns true if robin coefficient (in BC Vector ) is a VectorEpetra, false if it is scalar (default alphaCoef=1)

Returns
true if robin coefficient (in BC Vector ) is a VectorEpetra, false if it is scalar

Definition at line 472 of file BCBase.cpp.

◆ isBetaCoeffAVector()

bool isBetaCoeffAVector ( ) const

Returns true if beta coefficient (in BC Vector ) is a VectorEpetra (betaVec) (default betaCoef=1)

Returns
true if beta coefficient (in BC Vector ) is a VectorEpetra (betaVec)

Definition at line 485 of file BCBase.cpp.

◆ robinCoeffVector()

Real robinCoeffVector ( const ID iDof,
const ID iComponent 
) const

Returns the value of the robin coefficient vector (in BC Vector)

corresponding to DOF iDof and component iComponent

Parameters
iDofDOF we are looking for in RobinVec
iComponentcomponent we are looking for in RobinVec
Returns
value of the robin coefficient vector (in BC Vector) corresponding to iDof and iComponent

Definition at line 500 of file BCBase.cpp.

◆ betaCoeffVector()

Real betaCoeffVector ( const ID iDof,
const ID iComponent 
) const

Returns the value of the beta coefficient vector (in BC Vector)

corresponding to DOF iDof and component iComponent

Parameters
iDofDOF we are looking for in BetaVec
iComponentcomponent we are looking for in BetaVec
Returns
value of the Beta coefficient vector (in BC Vector) corresponding to iDof and iComponent

Definition at line 513 of file BCBase.cpp.

◆ pointerToFunctor()

const BCFunctionBase * pointerToFunctor ( ) const

Returns a pointer to the BCFunctionBase object.

Returns
pointer to the BCFunctionBase object

Definition at line 528 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ pointerToFunctorUDep()

const BCFunctionUDepBase * pointerToFunctorUDep ( ) const

Returns a pointer to the BCFunctionUDepBase object.

Returns
pointer to the BCFunctionUDepBase object

Definition at line 533 of file BCBase.cpp.

◆ pointerToBCVector()

const BCVectorBase * pointerToBCVector ( ) const

Returns a pointer to the BCVector object.

Returns
pointer to the BCVector object

Definition at line 538 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ addBCIdentifier()

void addBCIdentifier ( BCIdentifierBase identifierToAddPtr)

Adds a new identifier to the list.

Parameters
identifierToAddPtrpointer to the BCIdentifierBase object to be added

Definition at line 544 of file BCBase.cpp.

◆ list_size()

UInt list_size ( ) const

Returns the size of the identifiers list.

Returns
the size of the identifiers list

Definition at line 551 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ showMe()

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

Method that writes info in output.

Parameters
verboseto specify the level of verbosity (false by default)
outStreamto specify the output stream (std::cout by default)

Definition at line 557 of file BCBase.cpp.

◆ operator=()

BCBase & operator= ( const BCBase bcBase)

The assignment operator for BCBase.

Parameters
bcBasea BCBase object
Returns
Reference to a new BCBase with the same content of bcBase

Definition at line 606 of file BCBase.cpp.

◆ operator[]()

const BCIdentifierBase * operator[] ( const ID i) const

Returns a pointer to the (i)-th element of the list of identifiers.

The list of identifiers has to be finalized before calling this operator.

Parameters
iindex of the element in the list of identifier that we want to be returned (starting from 0)

Definition at line 638 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ operator()() [1/3]

Real operator() ( const Real t,
const Real x,
const Real y,
const Real z,
const ID iComponent 
) const

Overloading function operator by calling the BCFunctionBase user specified function.

Parameters
ttime
xcoordinate
ycoordinate
zcoordinate
iComponentcomponent of the vector function
Returns
iComponent of the user defined function evaluated in (t,x,y,z)

Definition at line 645 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ operator()() [2/3]

Real operator() ( const Real t,
const Real x,
const Real y,
const Real z,
const ID iComponent,
const Real u 
) const

Overloading function operator by calling the BCFunctionUDepBase user specified function.

Parameters
ttime
xcoordinate
ycoordinate
zcoordinate
iComponentcomponent of the vector function
uvalue of the FE vector in t, x, y, z, component iComp
Returns
i-component of the user defined function evaluated in (t,x,y,z,u)

Definition at line 651 of file BCBase.cpp.

◆ operator()() [3/3]

Real operator() ( const ID iDof,
const ID iComponent 
) const

Overloading function operator by querying the BCVector in DOF iDof and component iComponent.

Parameters
iDofglobal dof index
iComponentcomponent index

Definition at line 660 of file BCBase.cpp.

◆ setBCVector()

void setBCVector ( const BCVectorBase bcVector)

set BCVectorBase boundary condition

Parameters
bcVectorto be set in BCBase class

Definition at line 679 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ setBCFunction() [1/2]

void setBCFunction ( const BCFunctionBase bcFunction)

set BCFunctionBase boundary condition

Parameters
bcFunctionto be set in BCBase class

Definition at line 687 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ setBCFunction() [2/2]

void setBCFunction ( const BCFunctionUDepBase bcFunctionFEVectorDependent)

set BCFunctionUDepBase boundary condition

Parameters
bcFunctionFEVectorDependentto be set in BCBase class

Definition at line 695 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ setOffset()

void setOffset ( int  bcOffset)
inline

Set the BC offset.

Parameters
bcOffsetto be set in BCBase class

Definition at line 526 of file BCBase.hpp.

+ Here is the caller graph for this function:

◆ setType()

void setType ( const bcType_Type bcType)
inline

Set the BC type.

Parameters
bcOffsetto be set in BCBase class

Definition at line 535 of file BCBase.hpp.

+ Here is the caller graph for this function:

◆ name()

std::string name ( ) const

Returns the boundary condition name.

Returns
boundary condition name

Definition at line 707 of file BCBase.cpp.

◆ flag()

bcFlag_Type flag ( ) const

Returns the flag associated to the boundary condition name.

Returns
boundary condition flag

Definition at line 712 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ type()

bcType_Type type ( ) const

Returns the boundary condition type.

Returns
boundary condition type

Definition at line 717 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ mode()

bcMode_Type mode ( ) const

Returns the boundary condition mode.

Returns
boundary condition mode

Definition at line 722 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ numberOfComponents()

UInt numberOfComponents ( ) const

Returns the number of components involved in this boundary condition.

Returns
number of components prescribed by this boundary condition

Definition at line 727 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ offset()

const int& offset ( ) const
inline

Returns the offset associated to this boundary condition.

Returns
offset associated to this boundary condition

Definition at line 579 of file BCBase.hpp.

+ Here is the caller graph for this function:

◆ robinCoeff()

Real robinCoeff ( ) const

Returns the value of the robin coefficient (in BC Vector)

Returns
value of the robin coefficient (in BC Vector)

Definition at line 732 of file BCBase.cpp.

◆ resistanceCoeff()

Real resistanceCoeff ( ) const

Returns the value of the resistance coefficient (in BC Vector)

Returns
value of the resistance coefficient (in BC Vector)

Definition at line 746 of file BCBase.cpp.

◆ betaCoeff()

Real betaCoeff ( ) const

Returns the value of the beta coefficient (in BC Vector)

Returns
value of the beta coefficient (in BC Vector)

Definition at line 760 of file BCBase.cpp.

◆ isDataAVector()

bool isDataAVector ( ) const

Returns True if a FE BCVector has been provided to the class, False otherwise.

Returns
True if FE BCVector has been provided to the class, False otherwise

Definition at line 774 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ finalized()

bool finalized ( ) const

Returns whether the list is finalized and the vector of ID's is then accessible.

Returns
M_finalized private member

Definition at line 779 of file BCBase.cpp.

◆ isUDep()

bool isUDep ( ) const

Returns True if the BCBase is based on a BCFunctionUDepBase function, False otherwise.

Returns
True if the BCBase is based on a BCFunctionUDepBase function, False otherwiseCopy content of M_idSet into M_idVector, clear M_idSet

Definition at line 784 of file BCBase.cpp.

+ Here is the caller graph for this function:

◆ copyIdSetIntoIdVector()

void copyIdSetIntoIdVector ( )

Definition at line 795 of file BCBase.cpp.

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ BCHandler

friend class BCHandler
friend

BCHandle is a friend class of BCBase.

Definition at line 154 of file BCBase.hpp.

◆ operator<

bool operator< ( const BCBase bcBase1,
const BCBase bcBase2 
)
friend

Overloading "less-than" operator between BCBase objects.

The "smaller" (or weaker) boundary conditions is the one to be applied first

Parameters
bcBase1first BCBase to compare
bcBase2second BCBase to compare
Returns
True if bcBase1 is smaller, False if bcBase1 is bigger

Definition at line 473 of file BCBase.hpp.

◆ operator==

bool operator== ( const BCBase bcBase,
const bcFlag_Type  flag 
)
friend

Overloading "is-equal" operator for BCBase objects.

Check if the flag of bcBase is equal to flag argument

Parameters
bcBaseBCBase to check
flagbcFlag_Type to be compared with bcBase flag
Returns
True if bcBase's flag is equal to flag

Definition at line 493 of file BCBase.hpp.

Field Documentation

◆ M_name

std::string M_name
private

name of the boundary condition

Definition at line 625 of file BCBase.hpp.

◆ M_flag

bcFlag_Type M_flag
private

flag identifying a specific part of the mesh boundary

Definition at line 627 of file BCBase.hpp.

◆ M_type

bcType_Type M_type
private

the boundary condition type

Definition at line 629 of file BCBase.hpp.

◆ M_mode

bcMode_Type M_mode
private

the boundary condition mode of application

Definition at line 631 of file BCBase.hpp.

◆ M_components

bcComponentsVec_Type M_components
private

Definition at line 633 of file BCBase.hpp.

◆ M_bcFunction

std::shared_ptr<BCFunctionBase> M_bcFunction
private

the list of components involved in this BC

Pointer to a user defined BC function

Definition at line 635 of file BCBase.hpp.

◆ M_bcFunctionFEVectorDependent

std::shared_ptr<BCFunctionUDepBase> M_bcFunctionFEVectorDependent
private

Pointer to a user defined BC function (depending on a generic FE vector)

Definition at line 637 of file BCBase.hpp.

◆ M_bcVector

std::shared_ptr<BCVectorBase > M_bcVector
private

Pointer to a user given BC vector.

Definition at line 639 of file BCBase.hpp.

◆ M_isStored_BcVector

bool M_isStored_BcVector
private

Definition at line 641 of file BCBase.hpp.

◆ M_isStored_BcFunctionVectorDependent

bool M_isStored_BcFunctionVectorDependent
private

True if a FE BCVector has been provided.

True if the BCBase is based on a BCFunctionUDepBase function, False otherwise

Definition at line 643 of file BCBase.hpp.

◆ M_idSet

std::set<std::shared_ptr<BCIdentifierBase>, BCIdentifierComparison> M_idSet
private

set of pointers to identifiers allowing the user to get hold the DOF to which the BC applies

Definition at line 645 of file BCBase.hpp.

◆ M_idVector

std::vector<std::shared_ptr<BCIdentifierBase> > M_idVector
private

container for id's when the list is finalized

Definition at line 647 of file BCBase.hpp.

◆ M_offset

int M_offset
private

boundary condition offset

Definition at line 649 of file BCBase.hpp.

◆ M_finalized

bool M_finalized
private

True, when M_idVector is finalized.

Definition at line 651 of file BCBase.hpp.


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