37 #ifndef BCInterface0D_H 38 #define BCInterface0D_H 1
41 #include <lifev/bc_interface/core/bc/BCInterface.hpp> 42 #include <lifev/bc_interface/0D/bc/BCInterfaceData0D.hpp> 45 #include <lifev/bc_interface/0D/function/BCInterfaceFunctionParser0D.hpp> 46 #include <lifev/bc_interface/0D/function/BCInterfaceFunctionParserSolver0D.hpp> 47 #include <lifev/bc_interface/0D/function/BCInterfaceFunctionUserDefined0D.hpp> 95 template<
class BcHandler,
class PhysicalSolverType >
146 void readBC (
const std::string& fileName,
const std::string& dataSection,
const std::string& name )
148 M_data->readBC ( fileName, dataSection, name );
186 template<
class BCBaseType >
198 template<
class BcHandler,
class PhysicalSolverType >
203 #ifdef HAVE_LIFEV_DEBUG 204 debugStream ( 5020 ) <<
"BCInterface0D::insertBC\n";
209 switch ( M_data->base().second )
211 case BCIFunctionParser:
212 case BCIFunctionParserFile:
213 case BCIFunctionParserSolver:
214 case BCIFunctionParserFileSolver:
215 case BCIFunctionUserDefined:
217 factory_Type factory;
218 this->M_vectorFunction.push_back ( factory.createFunctionParser ( M_data ) );
219 this->M_vectorFunction.back()->assignFunction ( base );
221 addBcToHandler ( base );
228 std::cout <<
" !!! Error: " << M_data->base().first <<
" is not valid in BCInterface0D !!!" << std::endl;
242 if ( !
this->M_handler.get() )
244 this->createHandler();
247 this->M_handler->setBC ( M_data->flag(), M_data->type(), base );
bcInterface_Type::bcHandler_Type bcHandler_Type
BCInterface0D()
Constructor.
BCInterfaceData0D - The BCInterface1D data container.
bcInterface_Type::bcHandlerPtr_Type bcHandlerPtr_Type
void addBcToHandler(BCBaseType &base)
virtual ~BCInterface0D()
Destructor.
bcInterface_Type::physicalSolver_Type physicalSolver_Type
std::shared_ptr< data_Type > dataPtr_Type
void updateInverseJacobian(const UInt &iQuadPt)
bcInterface_Type::vectorFunction_Type vectorFunction_Type
bcInterface_Type::vectorFunctionSolverDefined_Type vectorFunctionSolverDefined_Type
void readBC(const std::string &fileName, const std::string &dataSection, const std::string &name)
Read a specific boundary condition from a file and add it to the data container.
BCInterface0D(const BCInterface0D &interface0D)
BCInterface< BcHandler, PhysicalSolverType > bcInterface_Type
data_Type & dataContainer()
Get the data container.
bcInterface_Type::factory_Type factory_Type
BCInterfaceData0D data_Type
BCInterface0D & operator=(const BCInterface0D &interface0D)
BCInterface0D - LifeV interface to load boundary conditions for 0D problems completely from a GetPot ...
bcInterface_Type::bcFunctionSolverDefinedPtr_Type bcFunctionSolverDefinedPtr_Type
void insertBC()
Insert the current boundary condition in the BChandler.
ZeroDimensionalFunction - A boundary conditions function for zero-dimensional models.
BCInterface - LifeV interface to load boundary conditions completely from a GetPot file...
bcInterface_Type::physicalSolverPtr_Type physicalSolverPtr_Type
bcInterface_Type::bcFunctionPtr_Type bcFunctionPtr_Type