LifeV
|
BCFunctionUDepBase - class that holds the function used for prescribing boundary conditions. More...
#include <BCFunction.hpp>
Private Attributes | |
function_Type | M_userDefinedVersorsFunction |
user defined function returning versors along which the essential boundary condition will be prescribed More... | |
Public Types | |
typedef BCFunctionBase::function_Type | function_Type |
Constructors & Destructor | |
BCFunctionDirectional () | |
Default constructor. More... | |
BCFunctionDirectional (const function_Type &userDefinedFunctional, const function_Type &userDefinedVersorsFunction) | |
Constructing from user defined functions. More... | |
BCFunctionDirectional (const BCFunctionDirectional &bcFunctionDirectional) | |
Copy Constructor. More... | |
virtual | ~BCFunctionDirectional () |
Operators | |
BCFunctionDirectional & | operator= (const BCFunctionDirectional &bcFunctionDirectional) |
Assignment operator. More... | |
Methods | |
Real | vectFct (const Real &t, const Real &x, const Real &y, const Real &z, const ID &component) const |
Evaluate the versors' function. More... | |
Set Methods | |
void | setFunctions_Directional (const function_Type &userDefinedFunctional, const function_Type &userDefinedVersorsFunction) |
Set the functions. More... | |
Get Methods | |
const function_Type & | Functions_Directional () const |
Get the versors' function. More... | |
Additional Inherited Members | |
Public Types inherited from BCFunctionBase | |
typedef std::function< Real(const Real &, const Real &, const Real &, const Real &, const ID &) > | function_Type |
typedef std::shared_ptr< BCFunctionBase > | BCFunctionBasePtr_Type |
Public Member Functions inherited from BCFunctionBase | |
BCFunctionBase () | |
Empty Constructor. More... | |
BCFunctionBase (function_Type userDefinedFunction) | |
Constructor for a user defined function. More... | |
BCFunctionBase (const BCFunctionBase &bcFunctionBase) | |
Copy Constructor. More... | |
virtual | ~BCFunctionBase () |
Destructor. More... | |
virtual BCFunctionBase & | operator= (const BCFunctionBase &bcFunctionBase) |
Assignment Operator. More... | |
Real | operator() (const Real &t, const Real &x, const Real &y, const Real &z, const ID &component) const |
Overloading function operator by calling M_userDefinedFunction. More... | |
void | setFunction (function_Type userDefinedFunction) |
Set the user defined function. More... | |
const function_Type & | Function () const |
Get the function. More... | |
virtual BCFunctionBasePtr_Type | clone () const |
Clone the current object. More... | |
Protected Attributes inherited from BCFunctionBase | |
function_Type | M_userDefinedFunction |
user defined function More... | |
BCFunctionUDepBase - class that holds the function used for prescribing boundary conditions.
This class holds the function used for prescribing Essential boundary conditions along a direction.
The data functions given by the user must have the following signature
Real f(const Real& t, const Real& x, const Real& y, const Real& z, const ID& component)
We want to prescribe < u, d > = f on part of the boundary. Here < u, d > is the projection of the solution u along the versor d, which is a given function
Functions f and d are set using the correct constructor or using setFunction_Directional(f,d)
.
To get the function d use Function_Directional()
, to evaluate it use the method vectFct
(...).
To get the function f use getFunction()
, to evaluate it use the operator()
.
Class (STL functor) that holds the user defined fonctions for a directional Dirichlet bc
The data funcitions given by the user must have the following declaration Real g(const Real& time, const Real& x, const Real& y, const Real& z, const ID& icomp)
Definition at line 683 of file BCFunction.hpp.
Definition at line 692 of file BCFunction.hpp.
|
inline |
Default constructor.
The user must supply a function by calling setFunction_Directional(..)
Definition at line 703 of file BCFunction.hpp.
BCFunctionDirectional | ( | const function_Type & | userDefinedFunctional, |
const function_Type & | userDefinedVersorsFunction | ||
) |
Constructing from user defined functions.
userDefinedFunctional | The user defined function |
userDefinedVersorsFunction | user defined function for returning versors along which the essential boundary condition will be prescribed |
Definition at line 271 of file BCFunction.cpp.
BCFunctionDirectional | ( | const BCFunctionDirectional & | bcFunctionDirectional | ) |
Copy Constructor.
bcFunctionDirectional | The BCFunctionDirectional |
Definition at line 264 of file BCFunction.cpp.
|
inlinevirtual |
Definition at line 719 of file BCFunction.hpp.
BCFunctionDirectional & operator= | ( | const BCFunctionDirectional & | bcFunctionDirectional | ) |
Assignment operator.
bdFunctionDirectional | The BCFunctionDirectional object |
Definition at line 284 of file BCFunction.cpp.
|
inline |
Evaluate the versors' function.
t | Time |
x | Coordinate |
y | Coordinate |
z | Coordinate |
component | The component of the vectors function |
Definition at line 751 of file BCFunction.hpp.
void setFunctions_Directional | ( | const function_Type & | userDefinedFunctional, |
const function_Type & | userDefinedVersorsFunction | ||
) |
Set the functions.
userDefinedFunctional | User defined function |
userDefinedVersorsFunction | User defined function for returning versors along which the essential boundary condition will be prescribed |
Definition at line 299 of file BCFunction.cpp.
|
inline |
Get the versors' function.
Definition at line 783 of file BCFunction.hpp.
|
private |
user defined function returning versors along which the essential boundary condition will be prescribed
Definition at line 793 of file BCFunction.hpp.