LifeV
|
BCInterfaceFunctionParser - LifeV boundary condition function wrapper for BCInterface
.
More...
#include <BCInterfaceFunctionParser.hpp>
Public Member Functions | |
template<> | |
void | assignFunction (bcBase_Type &base) |
Assign the function to the base of the BCHandler . More... | |
template<> | |
void | setData (const std::shared_ptr< BCInterfaceData > &data) |
template<> | |
void | assignFunction (bcBase_Type &base) |
Assign the function to the base of the BCHandler . More... | |
template<> | |
void | setData (const std::shared_ptr< BCInterfaceData > &data) |
template<> | |
void | assignFunction (bcBase_Type &base) |
Assign the function to the base of the BCHandler . More... | |
template<> | |
void | setData (const std::shared_ptr< BCInterfaceData > &data) |
template<> | |
void | assignFunction (bcBase_Type &base) |
Assign the function to the base of the BCHandler . More... | |
template<> | |
void | setData (const std::shared_ptr< BCInterfaceData > &data) |
template<> | |
void | assignFunction (bcBase_Type &base) |
Assign the function to the base of the BCHandler . More... | |
template<> | |
void | setData (const std::shared_ptr< BCInterfaceData > &data) |
template<> | |
void | assignFunction (bcBase_Type &base) |
Assign the function to the base of the BCHandler . More... | |
template<> | |
void | setData (const std::shared_ptr< BCInterfaceData > &data) |
template<> | |
void | assignFunction (bcBase_Type &base) |
Assign the function to the base of the BCHandler . More... | |
template<> | |
void | assignFunction (bcBase_Type &base) |
Assign the function to the base of the BCHandler . More... | |
template<> | |
void | setData (const std::shared_ptr< BCInterfaceData > &data) |
template<> | |
void | setData (const std::shared_ptr< BCInterfaceData > &data) |
template<> | |
void | assignFunction (bcBase_Type &base) |
Assign the function to the base of the BCHandler . More... | |
template<> | |
void | assignFunction (bcBase_Type &base) |
Assign the function to the base of the BCHandler . More... | |
template<> | |
void | setData (const std::shared_ptr< BCInterfaceData > &data) |
template<> | |
void | setData (const std::shared_ptr< BCInterfaceData > &data) |
template<> | |
void | assignFunction (bcBase_Type &base) |
Assign the function to the base of the BCHandler . More... | |
template<> | |
void | setData (const std::shared_ptr< BCInterfaceData > &data) |
template<> | |
void | assignFunction (bcBase_Type &base) |
Assign the function to the base of the BCHandler . More... | |
template<> | |
void | setData (const std::shared_ptr< BCInterfaceData > &data) |
template<> | |
void | assignFunction (bcBase_Type &base) |
Assign the function to the base of the BCHandler . More... | |
template<> | |
void | setData (const std::shared_ptr< BCInterfaceData > &data) |
template<> | |
void | assignFunction (bcBase_Type &base) |
Assign the function to the base of the BCHandler . More... | |
template<> | |
void | setData (const std::shared_ptr< BCInterfaceData > &data) |
Public Member Functions inherited from BCInterfaceFunction< BcHandlerType, PhysicalSolverType > | |
BCInterfaceFunction () | |
Empty Constructor. More... | |
virtual | ~BCInterfaceFunction () |
Destructor. More... | |
Protected Attributes | |
parserPtr_Type | M_parser |
Private Attributes | |
std::map< ID, ID > | M_mapID |
Type definitions | |
typedef BcHandlerType | bcHandler_Type |
typedef PhysicalSolverType | physicalSolver_Type |
typedef BCInterfaceFunction< bcHandler_Type, physicalSolver_Type > | function_Type |
typedef function_Type::boundaryFunctionTime_Type | boundaryFunctionTime_Type |
typedef function_Type::boundaryFunctionTimeTimeStep_Type | boundaryFunctionTimeTimeStep_Type |
typedef function_Type::boundaryFunctionTimeSpaceID_Type | boundaryFunctionTimeSpaceID_Type |
typedef Parser | parser_Type |
typedef std::shared_ptr< parser_Type > | parserPtr_Type |
typedef function_Type::data_Type | data_Type |
typedef function_Type::dataPtr_Type | dataPtr_Type |
typedef function_Type::bcBase_Type | bcBase_Type |
Constructors & Destructor | |
BCInterfaceFunctionParser () | |
Empty Constructor. More... | |
virtual | ~BCInterfaceFunctionParser () |
Destructor. More... | |
Methods | |
void | assignFunction (bcBase_Type &base) |
Assign the function to the base of the BCHandler . More... | |
Real | functionTime (const Real &t) |
Function of time. More... | |
Real | functionTimeTimeStep (const Real &t, const Real &timeStep) |
Function of time and time step. More... | |
Real | functionTimeSpace (const Real &t, const Real &x, const Real &y, const Real &z, const ID &) |
Function of time and space. More... | |
Real | functionTimeSpaceID (const Real &t, const Real &x, const Real &y, const Real &z, const ID &id) |
Function of time and space with ID. More... | |
Set Methods | |
virtual void | setData (const dataPtr_Type &data) |
Set data for boundary conditions. More... | |
Protected Methods | |
virtual void | dataInterpolation () |
dataInterpolation More... | |
Unimplemented Methods | |
BCInterfaceFunctionParser (const BCInterfaceFunctionParser &function) | |
BCInterfaceFunctionParser & | operator= (const BCInterfaceFunctionParser &function) |
Private Methods | |
void | setupParser (const dataPtr_Type &data) |
Setup the parser using the data container. More... | |
boundaryFunctionTime_Type | functionSelectorTime () |
Get the selected function of time. More... | |
boundaryFunctionTimeTimeStep_Type | functionSelectorTimeTimeStep () |
Get the selected function of time and time step. More... | |
boundaryFunctionTimeSpaceID_Type | functionSelectorTimeSpaceID () |
Get the selected function of time space and ID. More... | |
Additional Inherited Members | |
Public Types inherited from BCInterfaceFunction< BcHandlerType, PhysicalSolverType > | |
typedef BcHandlerType | bcHandler_Type |
typedef PhysicalSolverType | physicalSolver_Type |
typedef bcHandler_Type::bcFunction_Type | bcBase_Type |
typedef BCInterfaceData | data_Type |
typedef std::shared_ptr< data_Type > | dataPtr_Type |
typedef std::function< Real(const Real &) > | boundaryFunctionTime_Type |
typedef std::function< Real(const Real &, const Real &) > | boundaryFunctionTimeTimeStep_Type |
typedef std::function< Real(const Real &, const Real &, const Real &, const Real &, const ID &) > | boundaryFunctionTimeSpaceID_Type |
BCInterfaceFunctionParser - LifeV boundary condition function wrapper for BCInterface
.
This class is an interface between the BCInterface
and the Parser
. It allows to construct LifeV function types for boundary conditions, using a function string loaded from a GetPot
file.
DETAILS
By default the string separator is set to semicolon ";".
The function string has to be in this form:
function = '[u, v, w]'
where , , and . They are separated by commas, as shown in the following example
function = '[x^2 + y^2, 0, 2*sin(2*pi*t)]'
It is possible to define constants separated by the string separator before the expression
function = 'a=5.67436; [x^2+y^2,0,a*sin(2*pi*t)^a]'
NOTE
In the boundary condition file, if you have three component with the same expression (the same function) you can both write:
function = '[0, 0, 0]'
or
function = 0
However the second way is more efficient during execution.
Definition at line 95 of file BCInterfaceFunctionParser.hpp.
typedef BcHandlerType bcHandler_Type |
Definition at line 102 of file BCInterfaceFunctionParser.hpp.
typedef PhysicalSolverType physicalSolver_Type |
Definition at line 103 of file BCInterfaceFunctionParser.hpp.
Definition at line 105 of file BCInterfaceFunctionParser.hpp.
Definition at line 106 of file BCInterfaceFunctionParser.hpp.
Definition at line 107 of file BCInterfaceFunctionParser.hpp.
Definition at line 108 of file BCInterfaceFunctionParser.hpp.
typedef Parser parser_Type |
Definition at line 109 of file BCInterfaceFunctionParser.hpp.
typedef std::shared_ptr< parser_Type > parserPtr_Type |
Definition at line 110 of file BCInterfaceFunctionParser.hpp.
typedef function_Type::data_Type data_Type |
Definition at line 112 of file BCInterfaceFunctionParser.hpp.
Definition at line 113 of file BCInterfaceFunctionParser.hpp.
Definition at line 115 of file BCInterfaceFunctionParser.hpp.
|
explicit |
Empty Constructor.
Definition at line 262 of file BCInterfaceFunctionParser.hpp.
|
inlinevirtual |
Destructor.
Definition at line 127 of file BCInterfaceFunctionParser.hpp.
|
private |
|
virtual |
Assign the function to the base of the BCHandler
.
base | base of the boundary condition |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
Function of time.
t | time |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
Definition at line 279 of file BCInterfaceFunctionParser.hpp.
Function of time and time step.
t | time |
timeStep | time step |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
Definition at line 300 of file BCInterfaceFunctionParser.hpp.
|
virtual |
Function of time and space.
t | time |
x | x coordinate |
y | y coordinate |
z | z coordinate |
id | id of the boundary condition (not used) |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
Definition at line 323 of file BCInterfaceFunctionParser.hpp.
|
virtual |
Function of time and space with ID.
t | time |
x | x coordinate |
y | y coordinate |
z | z coordinate |
id | id of the boundary condition |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
Definition at line 350 of file BCInterfaceFunctionParser.hpp.
|
virtual |
Set data for boundary conditions.
data | boundary condition data loaded from GetPot file |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
Reimplemented in BCInterfaceFunctionParserSolver< BcHandlerType, PhysicalSolverType >, BCInterfaceFunctionParserFile< BcHandlerType, PhysicalSolverType >, and BCInterfaceFunctionParserFileSolver< BcHandlerType, PhysicalSolverType >.
|
inlineprotectedvirtual |
dataInterpolation
Reimplemented in BCInterfaceFunctionParserFile< BcHandlerType, PhysicalSolverType >.
Definition at line 198 of file BCInterfaceFunctionParser.hpp.
|
private |
|
private |
Setup the parser using the data container.
data | boundary condition data loaded from GetPot file |
Definition at line 381 of file BCInterfaceFunctionParser.hpp.
|
private |
Get the selected function of time.
Definition at line 400 of file BCInterfaceFunctionParser.hpp.
|
private |
Get the selected function of time and time step.
Definition at line 407 of file BCInterfaceFunctionParser.hpp.
|
private |
Get the selected function of time space and ID.
Definition at line 414 of file BCInterfaceFunctionParser.hpp.
|
virtual |
Assign the function to the base of the BCHandler
.
base | base of the boundary condition |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
Definition at line 48 of file BCInterfaceFunctionParser0D.cpp.
void setData | ( | const std::shared_ptr< BCInterfaceData > & | data | ) |
Definition at line 58 of file BCInterfaceFunctionParser0D.cpp.
|
virtual |
Assign the function to the base of the BCHandler
.
base | base of the boundary condition |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
void setData | ( | const std::shared_ptr< BCInterfaceData > & | data | ) |
|
virtual |
Assign the function to the base of the BCHandler
.
base | base of the boundary condition |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
Definition at line 48 of file BCInterfaceFunctionParser1D.cpp.
void setData | ( | const std::shared_ptr< BCInterfaceData > & | data | ) |
Definition at line 58 of file BCInterfaceFunctionParser1D.cpp.
|
virtual |
Assign the function to the base of the BCHandler
.
base | base of the boundary condition |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
void setData | ( | const std::shared_ptr< BCInterfaceData > & | data | ) |
|
virtual |
Assign the function to the base of the BCHandler
.
base | base of the boundary condition |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
Definition at line 48 of file BCInterfaceFunctionParserEmpty3D.cpp.
void setData | ( | const std::shared_ptr< BCInterfaceData > & | data | ) |
Definition at line 58 of file BCInterfaceFunctionParserEmpty3D.cpp.
|
virtual |
Assign the function to the base of the BCHandler
.
base | base of the boundary condition |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
void setData | ( | const std::shared_ptr< BCInterfaceData > & | data | ) |
|
virtual |
Assign the function to the base of the BCHandler
.
base | base of the boundary condition |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
Definition at line 48 of file BCInterfaceFunctionParserFluid3D.cpp.
|
virtual |
Assign the function to the base of the BCHandler
.
base | base of the boundary condition |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
Definition at line 55 of file BCInterfaceFunctionParserFluid3D.cpp.
void setData | ( | const std::shared_ptr< BCInterfaceData > & | data | ) |
Definition at line 65 of file BCInterfaceFunctionParserFluid3D.cpp.
void setData | ( | const std::shared_ptr< BCInterfaceData > & | data | ) |
Definition at line 120 of file BCInterfaceFunctionParserFluid3D.cpp.
|
virtual |
Assign the function to the base of the BCHandler
.
base | base of the boundary condition |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
|
virtual |
Assign the function to the base of the BCHandler
.
base | base of the boundary condition |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
void setData | ( | const std::shared_ptr< BCInterfaceData > & | data | ) |
void setData | ( | const std::shared_ptr< BCInterfaceData > & | data | ) |
|
virtual |
Assign the function to the base of the BCHandler
.
base | base of the boundary condition |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
Definition at line 48 of file BCInterfaceFunctionParserFSI3D.cpp.
void setData | ( | const std::shared_ptr< BCInterfaceData > & | data | ) |
Definition at line 58 of file BCInterfaceFunctionParserFSI3D.cpp.
|
virtual |
Assign the function to the base of the BCHandler
.
base | base of the boundary condition |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
void setData | ( | const std::shared_ptr< BCInterfaceData > & | data | ) |
|
virtual |
Assign the function to the base of the BCHandler
.
base | base of the boundary condition |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
Definition at line 48 of file BCInterfaceFunctionParserSolid3D.cpp.
void setData | ( | const std::shared_ptr< BCInterfaceData > & | data | ) |
Definition at line 58 of file BCInterfaceFunctionParserSolid3D.cpp.
|
virtual |
Assign the function to the base of the BCHandler
.
base | base of the boundary condition |
Implements BCInterfaceFunction< BcHandlerType, PhysicalSolverType >.
void setData | ( | const std::shared_ptr< BCInterfaceData > & | data | ) |
|
protected |
Definition at line 202 of file BCInterfaceFunctionParser.hpp.
Definition at line 244 of file BCInterfaceFunctionParser.hpp.