40 #define BCFUNCTION_H 1
42 #include <lifev/core/LifeV.hpp> 137 const Real& z,
const ID& component )
const 139 return M_userDefinedFunction ( t, x, y, z, component );
257 BCFunctionRobin (
const function_Type& rightHandSideFunction,
const function_Type& massTermFunction );
309 const Real& z,
const ID& component )
const 311 return M_robinBoundaryMassCoeffFunction (t, x, y, z, component);
326 void setFunctions_Robin (
const function_Type& rightHandSideFunction,
const function_Type& massCoeffFunction );
438 const Real& z,
const ID& component,
const Real& feVectorEvaluatedInThisPoint )
const 440 return M_userDefinedFunction ( t, x, y, z, component, feVectorEvaluatedInThisPoint );
552 BCFunctionUDepRobin (
const function_Type& rightHandSideFunction,
const function_Type& massTermFunction );
609 const Real& z,
const ID& component,
const Real& feVectorEvaluatedInThisPoint )
const 611 return M_robinBoundaryMassCoeffFunction (t, x, y, z, component, feVectorEvaluatedInThisPoint);
627 void setFunctions_Robin (
const function_Type& rightHandSideFunction,
const function_Type& massCoeffFunction );
711 BCFunctionDirectional (
const function_Type& userDefinedFunctional,
const function_Type& userDefinedVersorsFunction );
752 const Real& z,
const ID& component )
const 754 return M_userDefinedVersorsFunction (t, x, y, z, component);
770 void setFunctions_Directional (
const function_Type& userDefinedFunctional,
const function_Type& userDefinedVersorsFunction );
Real coef(const Real &t, const Real &x, const Real &y, const Real &z, const ID &component, const Real &feVectorEvaluatedInThisPoint) const
evaluate the user defined function M_robinBoundaryMassCoeffFunction
virtual ~BCFunctionUDepRobin()
Destructor.
virtual ~BCFunctionDirectional()
BCFunctionRobin(const function_Type &rightHandSideFunction, const function_Type &massTermFunction)
Constructing from user defined functions.
BCFunctionUDepBase - class that holds the function used for prescribing boundary conditions.
virtual ~BCFunctionRobin()
Destructor.
BCFunctionUDepBase(const BCFunctionUDepBase &bcFunctionUDepBase)
Copy Constructor.
BCFunctionUDepRobin()
Empty constructor.
std::shared_ptr< BCFunctionBase > BCFunctionBasePtr_Type
const function_Type & Function() const
Get the function.
BCFunctionDirectional(const BCFunctionDirectional &bcFunctionDirectional)
Copy Constructor.
BCFunctionBase(function_Type userDefinedFunction)
Constructor for a user defined function.
BCFunctionUDepBase::BCFunctionUDepBasePtr_Type clone() const
Clone the current object.
Real vectFct(const Real &t, const Real &x, const Real &y, const Real &z, const ID &component) const
Evaluate the versors' function.
virtual ~BCFunctionUDepBase()
Destructor.
virtual BCFunctionUDepBase & operator=(const BCFunctionUDepBase &bcFunctionUDepBase)
Assignment Operator.
BCFunctionRobin(const BCFunctionRobin &bcFunctionUDepRobin)
Copy Constructor.
std::function< Real(const Real &, const Real &, const Real &, const Real &, const ID &, const Real &) > function_Type
void setFunctions_Robin(const function_Type &rightHandSideFunction, const function_Type &massCoeffFunction)
Set the functions.
void updateInverseJacobian(const UInt &iQuadPt)
function_Type M_robinBoundaryMassCoeffFunction
user defined function for the boundary mass coefficient in Robin conditions
BCFunctionRobin()
Default constructor.
const function_Type & Functions_Directional() const
Get the versors' function.
BCFunctionRobin - class that holds the function used for prescribing Robin boundary conditions...
BCFunctionBase()
Empty Constructor.
BCFunctionBase - class that holds the function used for prescribing boundary conditions.
const function_Type & Functions_Robin() const
Get the user defined function M_robinBoundaryMassCoeffFunction.
Real coef(const Real &t, const Real &x, const Real &y, const Real &z, const ID &component) const
evaluate the user defined function M_robinBoundaryMassCoeffFunction
const function_Type & Function() const
Get the function.
BCFunctionUDepRobin(const BCFunctionUDepRobin &bcFunctionUDepRobin)
Copy Constructor.
virtual BCFunctionUDepBasePtr_Type clone() const
Clone the current object.
BCFunctionRobin & operator=(const BCFunctionRobin &bcFunctionUDepRobin)
Assignment operator.
void setFunction(const function_Type &userDefinedFunction)
Set the user defined function.
void setFunctions_Directional(const function_Type &userDefinedFunctional, const function_Type &userDefinedVersorsFunction)
Set the functions.
virtual BCFunctionBase & operator=(const BCFunctionBase &bcFunctionBase)
Assignment Operator.
BCFunctionBase(const BCFunctionBase &bcFunctionBase)
Copy Constructor.
virtual BCFunctionBasePtr_Type clone() const
Clone the current object.
void setFunction(function_Type userDefinedFunction)
Set the user defined function.
BCFunctionBase::BCFunctionBasePtr_Type clone() const
Clone the current object.
BCFunctionDirectional(const function_Type &userDefinedFunctional, const function_Type &userDefinedVersorsFunction)
Constructing from user defined functions.
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.
function_Type M_userDefinedFunction
user defined function
double Real
Generic real data.
std::shared_ptr< BCFunctionUDepBase > BCFunctionUDepBasePtr_Type
void setFunctions_Robin(const function_Type &rightHandSideFunction, const function_Type &massCoeffFunction)
Set the functions.
BCFunctionUDepRobin - class that holds the function used for prescribing Robin boundary conditions...
BCFunctionUDepBase - class that holds the function used for prescribing boundary conditions.
function_Type M_robinBoundaryMassCoeffFunction
user defined function for the boundary mass coefficient in Robin conditions
Real operator()(const Real &t, const Real &x, const Real &y, const Real &z, const ID &component, const Real &feVectorEvaluatedInThisPoint) const
Overloading function operator by calling M_userDefinedFunction.
std::function< Real(const Real &, const Real &, const Real &, const Real &, const ID &) > function_Type
const function_Type & Functions_Robin() const
Get the user defined function M_robinBoundaryMassCoeffFunction.
BCFunctionUDepBase()
Empty Constructor.
BCFunctionDirectional & operator=(const BCFunctionDirectional &bcFunctionDirectional)
Assignment operator.
function_Type M_userDefinedFunction
user defined function
function_Type M_userDefinedVersorsFunction
user defined function returning versors along which the essential boundary condition will be prescrib...
BCFunctionDirectional()
Default constructor.
BCFunctionUDepRobin & operator=(const BCFunctionUDepRobin &bcFunctionUDepRobin)
Assignment operator.
BCFunctionUDepRobin(const function_Type &rightHandSideFunction, const function_Type &massTermFunction)
Constructing from user defined functions.
BCFunctionUDepBase(const function_Type &userDefinedFunction)
Constructor for a user defined function.
virtual ~BCFunctionBase()
Destructor.