LifeV
|
BCInterface0D - LifeV interface to load boundary conditions for 0D problems completely from a GetPot
file.
More...
#include <BCInterface0D.hpp>
Private Attributes | |
dataPtr_Type | M_data |
Type definitions | |
typedef BCInterface< BcHandler, PhysicalSolverType > | bcInterface_Type |
typedef bcInterface_Type::bcHandler_Type | bcHandler_Type |
typedef bcInterface_Type::bcHandlerPtr_Type | bcHandlerPtr_Type |
typedef bcInterface_Type::physicalSolver_Type | physicalSolver_Type |
typedef bcInterface_Type::physicalSolverPtr_Type | physicalSolverPtr_Type |
typedef bcInterface_Type::factory_Type | factory_Type |
typedef bcInterface_Type::bcFunctionPtr_Type | bcFunctionPtr_Type |
typedef bcInterface_Type::vectorFunction_Type | vectorFunction_Type |
typedef bcInterface_Type::bcFunctionSolverDefinedPtr_Type | bcFunctionSolverDefinedPtr_Type |
typedef bcInterface_Type::vectorFunctionSolverDefined_Type | vectorFunctionSolverDefined_Type |
typedef BCInterfaceData0D | data_Type |
typedef std::shared_ptr< data_Type > | dataPtr_Type |
Constructors & Destructor | |
BCInterface0D () | |
Constructor. More... | |
virtual | ~BCInterface0D () |
Destructor. More... | |
Methods | |
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. More... | |
void | insertBC () |
Insert the current boundary condition in the BChandler. More... | |
Get Methods | |
data_Type & | dataContainer () |
Get the data container. More... | |
Unimplemented Methods | |
BCInterface0D (const BCInterface0D &interface0D) | |
BCInterface0D & | operator= (const BCInterface0D &interface0D) |
Private Methods | |
template<class BCBaseType > | |
void | addBcToHandler (BCBaseType &base) |
BCInterface0D - LifeV interface to load boundary conditions for 0D problems completely from a GetPot
file.
This class allows to impose boundary conditions for a 0D problem completely from a file.
EXAMPLE - DATA FILE
In the GetPot data file, BCInterface
reads a new section: [boundary_conditions]
.
Inside the new section there is a list of boundary conditions which correspond to other sub-section with the same name, for example: list = 'InFlow OutFlow'
Each boundary condition has a similar structure. The list of properties depends from the type of the boundary condition. For example:
[InFlow]
flag = 0
type0D = Current
function = 'sin(2*pi*t)'
[OutFlow]
flag = 1
type0D = Voltage
function = 0
where flag
, and type0D
are the classical parameters for a 0D boundary condition. The string function
represents the base module and can be replaced by other derived/alternative modules. The following functions are available (see the related classes for more information):
function
, which is implemented in BCInterfaceFunctionParser
; functionFile
, which is implemented in BCInterfaceFunctionParserFile
; functionSolver
, which is implemented in BCInterfaceFunctionParserSolver
; functionFileSolver
, which is implemented in BCInterfaceFunctionParserFileSolver
; functionUD
, which is implemented in BCInterfaceFunctionUserDefined
. All the parameters are case sensitive.
See BCInterface
base class for more details.
Definition at line 96 of file BCInterface0D.hpp.
typedef BCInterface< BcHandler, PhysicalSolverType > bcInterface_Type |
Definition at line 103 of file BCInterface0D.hpp.
Definition at line 105 of file BCInterface0D.hpp.
Definition at line 106 of file BCInterface0D.hpp.
Definition at line 108 of file BCInterface0D.hpp.
Definition at line 109 of file BCInterface0D.hpp.
Definition at line 111 of file BCInterface0D.hpp.
Definition at line 113 of file BCInterface0D.hpp.
Definition at line 114 of file BCInterface0D.hpp.
Definition at line 116 of file BCInterface0D.hpp.
Definition at line 117 of file BCInterface0D.hpp.
typedef BCInterfaceData0D data_Type |
Definition at line 119 of file BCInterface0D.hpp.
typedef std::shared_ptr< data_Type > dataPtr_Type |
Definition at line 120 of file BCInterface0D.hpp.
|
inlineexplicit |
Constructor.
Definition at line 129 of file BCInterface0D.hpp.
|
inlinevirtual |
Destructor.
Definition at line 132 of file BCInterface0D.hpp.
|
private |
|
inlinevirtual |
Read a specific boundary condition from a file and add it to the data container.
fileName | Name of the data file |
dataSection | section in the data file |
name | name of the boundary condition |
Implements BCInterface< BcHandler, PhysicalSolverType >.
Definition at line 146 of file BCInterface0D.hpp.
|
inlinevirtual |
Insert the current boundary condition in the BChandler.
Implements BCInterface< BcHandler, PhysicalSolverType >.
Definition at line 200 of file BCInterface0D.hpp.
|
inlinevirtual |
Get the data container.
Implements BCInterface< BcHandler, PhysicalSolverType >.
Definition at line 164 of file BCInterface0D.hpp.
|
private |
|
inlineprivate |
Definition at line 240 of file BCInterface0D.hpp.
|
private |
Definition at line 192 of file BCInterface0D.hpp.