37 #include <lifev/bc_interface/1D/function/BCInterfaceFunctionSolverDefined1D.hpp> 50 #ifdef HAVE_LIFEV_DEBUG 51 debugStream ( 5025 ) <<
"BCInterfaceFunctionSolverDefined::BCInterfaceFunctionSolverDefined()" <<
"\n";
66 base.setFunction ( std::bind ( &OneDFSIFunctionSolverDefinedRiemann::operator(),
67 dynamic_cast<OneDFSIFunctionSolverDefinedRiemann*> ( & ( *M_function ) ), std::placeholders::_1, std::placeholders::_2 ) );
73 base.setFunction ( std::bind ( &OneDFSIFunctionSolverDefinedCompatibility::operator(),
74 dynamic_cast<OneDFSIFunctionSolverDefinedCompatibility*> ( & ( *M_function ) ), std::placeholders::_1, std::placeholders::_2 ) );
80 base.setFunction ( std::bind ( &OneDFSIFunctionSolverDefinedAbsorbing::operator(),
81 dynamic_cast<OneDFSIFunctionSolverDefinedAbsorbing*> ( & ( *M_function ) ), std::placeholders::_1, std::placeholders::_2 ) );
87 base.setFunction ( std::bind ( &OneDFSIFunctionSolverDefinedResistance::operator(),
88 dynamic_cast<OneDFSIFunctionSolverDefinedResistance*> ( & ( *M_function ) ), std::placeholders::_1, std::placeholders::_2 ) );
101 #ifdef HAVE_LIFEV_DEBUG 102 debugStream ( 5025 ) <<
"BCInterfaceFunctionSolverDefined::setData( data )" <<
"\n";
106 std::map< std::string, solverDefinedFunctions > mapFunction;
107 mapFunction[
"Riemann"] = Riemann;
108 mapFunction[
"Compatibility"] = Compatibility;
109 mapFunction[
"Absorbing"] = Absorbing;
110 mapFunction[
"Resistance"] = Resistance;
112 M_defaultFunction = mapFunction[data->baseString()];
118 M_function.reset (
new OneDFSIFunctionSolverDefinedRiemann ( data->side(), data->quantity() ) );
124 M_function.reset (
new OneDFSIFunctionSolverDefinedCompatibility ( data->side(), data->quantity() ) );
130 M_function.reset (
new OneDFSIFunctionSolverDefinedAbsorbing ( data->side(), data->quantity() ) );
136 M_function.reset (
new OneDFSIFunctionSolverDefinedResistance ( data->side(), data->quantity(), data->resistance() [0] ) );
std::shared_ptr< data_Type > dataPtr_Type
void setData(const dataPtr_Type &data)
Set data.
void assignFunction(OneDFSIFunction &base)
Assign the function to the base.
bcFunctionSolverDefinedPtr_Type M_function
void updateInverseJacobian(const UInt &iQuadPt)
OneDFSIFunction - Base class for 1D BC Functions.
OneDFSIBCHandler - Class featuring methods to handle boundary conditions.
BCInterfaceFunctionSolverDefined()
Constructor.
OneDFSISolver - Solver class for the 1D model.
solverDefinedFunctions M_defaultFunction