LifeV
|
OneDFSIBCHandler - Class featuring methods to handle boundary conditions. More...
#include <OneDFSIBCHandler.hpp>
Private Attributes | |
std::map< bcSide_Type, bcPtr_Type > | M_boundary |
std::map< bcSide_Type, std::map< bcLine_Type, bool > > | M_boundarySet |
std::vector< bcFunctionSolverDefinedPtr_Type > | M_defaultFunctions |
Type definitions | |
typedef OneDFSIBC | bc_Type |
typedef std::shared_ptr< bc_Type > | bcPtr_Type |
typedef bc_Type::bcFunction_Type | bcFunction_Type |
typedef bc_Type::bcFunctionPtr_Type | bcFunctionPtr_Type |
typedef bc_Type::bcFunctionSolverDefined_Type | bcFunctionSolverDefined_Type |
typedef bc_Type::bcFunctionSolverDefinedPtr_Type | bcFunctionSolverDefinedPtr_Type |
typedef bc_Type::fluxPtr_Type | fluxPtr_Type |
typedef bc_Type::sourcePtr_Type | sourcePtr_Type |
typedef bc_Type::solution_Type | solution_Type |
typedef bc_Type::solutionPtr_Type | solutionPtr_Type |
typedef bc_Type::vectorPtrContainer_Type | vectorPtrContainer_Type |
typedef bc_Type::vector_Type | vector_Type |
typedef bc_Type::matrix_Type | matrix_Type |
typedef bc_Type::bcLine_Type | bcLine_Type |
typedef bc_Type::bcSide_Type | bcSide_Type |
typedef bc_Type::bcType_Type | bcType_Type |
Constructors & Destructor | |
OneDFSIBCHandler () | |
Empty Constructor. More... | |
OneDFSIBCHandler (const OneDFSIBCHandler &bcHandler) | |
Copy constructor. More... | |
virtual | ~OneDFSIBCHandler () |
Destructor. More... | |
Methods | |
void | applyBC (const Real &time, const Real &timeStep, const solution_Type &solution, const fluxPtr_Type &fluxPtr, vectorPtrContainer_Type &rhs) |
Apply boundary conditions to the rhs of the Taylor-Galerkin problem. More... | |
void | applyViscoelasticBC (const fluxPtr_Type &fluxPtr, matrix_Type &matrix, vector_Type &rhs) |
Apply boundary conditions to the rhs of the viscoelastic problem. More... | |
Set Methods | |
void | setBC (const bcSide_Type &bcSide, const bcLine_Type &bcLine, const bcType_Type &bcType, const bcFunction_Type &bcFunction) |
Set a boundary condition. More... | |
void | setDefaultBC () |
Set the default boundary conditions. More... | |
void | setFluxSource (const fluxPtr_Type &fluxPtr, const sourcePtr_Type &sourcePtr) |
Set the flux and the source classes for the problem. More... | |
void | setSolution (const solutionPtr_Type &solutionPtr) |
Set the solution of the problem. More... | |
Get Methods | |
const bcPtr_Type & | bc (const bcSide_Type &bcSide) const |
Get a specific boundary condition. More... | |
const bool & | bcReady (const bcSide_Type &bcSide, const bcLine_Type &bcLine) const |
Return true if the boundary condition has been set. More... | |
Unimplemented Methods | |
OneDFSIBCHandler & | operator= (const OneDFSIBCHandler &bcHandler) |
OneDFSIBCHandler - Class featuring methods to handle boundary conditions.
We need to impose 2 boundary condition on each side of the 1D segment. These boundary conditions are stored in OneDFSIBC
objects.
Definition at line 63 of file OneDFSIBCHandler.hpp.
Definition at line 70 of file OneDFSIBCHandler.hpp.
typedef std::shared_ptr< bc_Type > bcPtr_Type |
Definition at line 71 of file OneDFSIBCHandler.hpp.
Definition at line 73 of file OneDFSIBCHandler.hpp.
Definition at line 74 of file OneDFSIBCHandler.hpp.
Definition at line 75 of file OneDFSIBCHandler.hpp.
Definition at line 76 of file OneDFSIBCHandler.hpp.
typedef bc_Type::fluxPtr_Type fluxPtr_Type |
Definition at line 78 of file OneDFSIBCHandler.hpp.
Definition at line 79 of file OneDFSIBCHandler.hpp.
typedef bc_Type::solution_Type solution_Type |
Definition at line 80 of file OneDFSIBCHandler.hpp.
Definition at line 81 of file OneDFSIBCHandler.hpp.
Definition at line 83 of file OneDFSIBCHandler.hpp.
typedef bc_Type::vector_Type vector_Type |
Definition at line 85 of file OneDFSIBCHandler.hpp.
typedef bc_Type::matrix_Type matrix_Type |
Definition at line 86 of file OneDFSIBCHandler.hpp.
typedef bc_Type::bcLine_Type bcLine_Type |
Definition at line 88 of file OneDFSIBCHandler.hpp.
typedef bc_Type::bcSide_Type bcSide_Type |
Definition at line 89 of file OneDFSIBCHandler.hpp.
typedef bc_Type::bcType_Type bcType_Type |
Definition at line 90 of file OneDFSIBCHandler.hpp.
|
explicit |
Empty Constructor.
Definition at line 51 of file OneDFSIBCHandler.cpp.
|
explicit |
Copy constructor.
bcHandler | OneDFSIBCHandler |
Definition at line 70 of file OneDFSIBCHandler.cpp.
|
inlinevirtual |
Destructor.
Definition at line 108 of file OneDFSIBCHandler.hpp.
void applyBC | ( | const Real & | time, |
const Real & | timeStep, | ||
const solution_Type & | solution, | ||
const fluxPtr_Type & | fluxPtr, | ||
vectorPtrContainer_Type & | rhs | ||
) |
Apply boundary conditions to the rhs of the Taylor-Galerkin problem.
time | the current time. |
timeStep | the time step. |
solution | the solution container. |
fluxPtr | pointer to the flux class. |
rhs | the rhs of the Taylor-Galerking problem. |
Definition at line 97 of file OneDFSIBCHandler.cpp.
void applyViscoelasticBC | ( | const fluxPtr_Type & | fluxPtr, |
matrix_Type & | matrix, | ||
vector_Type & | rhs | ||
) |
Apply boundary conditions to the rhs of the viscoelastic problem.
fluxPtr | pointer to the flux class. |
matrix | the matrix of the viscoelastic problem. |
rhs | the rhs of the viscoelastic problem. |
Definition at line 105 of file OneDFSIBCHandler.cpp.
void setBC | ( | const bcSide_Type & | bcSide, |
const bcLine_Type & | bcLine, | ||
const bcType_Type & | bcType, | ||
const bcFunction_Type & | bcFunction | ||
) |
Set a boundary condition.
bcSide | the side of the boundary condition (left or right). |
bcLine | the line of the boundary condition (first or second). |
bcType | the type of the boundary condition ( , , , , , ). |
bcFunction | the boundary condition function. |
Definition at line 115 of file OneDFSIBCHandler.cpp.
void setDefaultBC | ( | ) |
Set the default boundary conditions.
This is done only for the boundary conditions that have not been set yet.
Definition at line 129 of file OneDFSIBCHandler.cpp.
void setFluxSource | ( | const fluxPtr_Type & | fluxPtr, |
const sourcePtr_Type & | sourcePtr | ||
) |
Set the flux and the source classes for the problem.
fluxPtr | pointer to the flux term of the problem. |
source | pointer to the source term of the problem. |
Definition at line 205 of file OneDFSIBCHandler.cpp.
void setSolution | ( | const solutionPtr_Type & | solutionPtr | ) |
Set the solution of the problem.
solutionPtr | pointer to the solution of the problem. |
Definition at line 214 of file OneDFSIBCHandler.cpp.
|
inline |
Get a specific boundary condition.
bcSide | the side of the boundary condition (left or right). |
Definition at line 180 of file OneDFSIBCHandler.hpp.
|
inline |
Return true if the boundary condition has been set.
bcSide | the side of the boundary condition (left or right). |
bcLine | the line of the boundary condition (first or second). |
Definition at line 191 of file OneDFSIBCHandler.hpp.
|
private |
|
private |
Definition at line 207 of file OneDFSIBCHandler.hpp.
|
private |
Definition at line 208 of file OneDFSIBCHandler.hpp.
|
private |
Definition at line 210 of file OneDFSIBCHandler.hpp.