|
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 |
|
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 |
|
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) |
|
| BCInterfaceFunctionParser () |
| Empty Constructor. More...
|
|
virtual | ~BCInterfaceFunctionParser () |
| Destructor. More...
|
|
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...
|
|
| BCInterfaceFunction () |
| Empty Constructor. More...
|
|
virtual | ~BCInterfaceFunction () |
| Destructor. More...
|
|
parserPtr_Type | M_parser |
|
template<typename BcHandlerType, typename PhysicalSolverType>
class LifeV::BCInterfaceFunctionParserFile< BcHandlerType, PhysicalSolverType >
BCInterfaceFunctionParserFile - LifeV boundary condition function file wrapper for BCInterface
.
- Author
- Cristiano Malossi
This class is an interface between the BCInterface
and the Parser
. It allows to construct LifeV functions type for boundary conditions, using a GetPot
file containing a function string and a table of discrete data (for example a discrete flow rate or pressure as a function of the time).
See BCInterfaceFunctionParser
class for more details.
DETAILS
The constructor of the class takes a string contains the GetPot
file name. The GetPot
file has the following structure:
-
function: contains the expression of the function (as described in the
BCInterfaceFunctionParser
class).
-
variables: contains the list of variables and coefficients present in the function. The first one is the variable and should be sorted in a growing order, while all the others are coefficients.
-
data: contains the discrete list of variable and related coefficients. It must have n columns, where n is the number of variables (and coefficients).
-
scale: Contains n optional coefficients (default = 1), which multiply each column in the data table.
-
loop: Useful for periodic simulation: at the end of the list, it restarts using the first value instead of extrapolating the last two.
NOTE
During the execution, if the value of the variable (usually the time) is not present in the 'data' table, the class linearly interpolates the value between the two closest values. Moreover, if the value of the variable is higher than anyone present in the 'data' table, the class linearly extrapolates the value using the last two values in the table.
EXAMPLE OF DATA FILE
function = '(0,0,q)'
loop = false
variables = 't q'
scale = '1 1'
data = '0.000000000 1.00
0.333333333 2.00
0.666666666 3.00
1.000000000 4.00'
Definition at line 87 of file BCInterfaceFunctionParserFile.hpp.