LifeV
OneDFSIFunctionSolverDefined Class Reference

OneDFSIModelBCFunctionDefault - Base class for deriving specific 1D boundary functions. More...

#include <OneDFSIFunctionSolverDefined.hpp>

+ Inheritance diagram for OneDFSIFunctionSolverDefined:
+ Collaboration diagram for OneDFSIFunctionSolverDefined:

Protected Attributes

fluxPtr_Type M_fluxPtr
 
sourcePtr_Type M_sourcePtr
 
solutionPtr_Type M_solutionPtr
 
UInt M_bcNode
 
bcSide_Type M_bcSide
 
bcType_Type M_bcType
 

Type definitions and Enumerators

typedef OneDFSIFunction bcFunction_Type
 
typedef std::shared_ptr< bcFunction_TypebcFunctionPtr_Type
 
typedef OneDFSIFlux flux_Type
 
typedef std::shared_ptr< flux_TypefluxPtr_Type
 
typedef OneDFSISource source_Type
 
typedef std::shared_ptr< source_TypesourcePtr_Type
 
typedef OneDFSIData data_Type
 
typedef data_Type::mesh_Type mesh_Type
 
typedef data_Type::container2D_Type container2D_Type
 
typedef SolverAmesos linearSolver_Type
 
typedef linearSolver_Type::vector_type vector_Type
 
typedef std::shared_ptr< vector_TypevectorPtr_Type
 
typedef std::array< vectorPtr_Type, 2 > vectorPtrContainer_Type
 
typedef linearSolver_Type::matrix_type matrix_Type
 
typedef std::map< std::string, vectorPtr_Typesolution_Type
 
typedef std::shared_ptr< solution_TypesolutionPtr_Type
 
typedef OneDFSI::bcLine_Type bcLine_Type
 
typedef OneDFSI::bcSide_Type bcSide_Type
 
typedef OneDFSI::bcType_Type bcType_Type
 

Constructors & Destructor

 OneDFSIFunctionSolverDefined (const bcSide_Type &bcSide, const bcType_Type &bcType)
 Constructor. More...
 
 OneDFSIFunctionSolverDefined (const OneDFSIFunctionSolverDefined &bcFunctionDefault)
 Copy constructor. More...
 
virtual ~OneDFSIFunctionSolverDefined ()
 Destructor. More...
 

Methods

virtual Real operator() (const Real &time, const Real &timeStep)
 Operator() More...
 

Set Methods

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...
 

Protected Methods

virtual void setupNode ()
 Automatically identify the boundary node. More...
 

Detailed Description

OneDFSIModelBCFunctionDefault - Base class for deriving specific 1D boundary functions.

Author
Lucia Mirabella, Tiziano Passerini, Cristiano Malossi
See also
Equations and networks of 1-D models [7]
Geometrical multiscale coupling of 1-D models [12] [13]

This class provide a general interface for implementing some specific boundary conditions for the 1D segment.

Definition at line 65 of file OneDFSIFunctionSolverDefined.hpp.

Member Typedef Documentation

◆ bcFunction_Type

◆ bcFunctionPtr_Type

typedef std::shared_ptr<bcFunction_Type> bcFunctionPtr_Type

Definition at line 73 of file OneDFSIFunctionSolverDefined.hpp.

◆ flux_Type

Definition at line 75 of file OneDFSIFunctionSolverDefined.hpp.

◆ fluxPtr_Type

typedef std::shared_ptr< flux_Type > fluxPtr_Type

Definition at line 76 of file OneDFSIFunctionSolverDefined.hpp.

◆ source_Type

Definition at line 78 of file OneDFSIFunctionSolverDefined.hpp.

◆ sourcePtr_Type

typedef std::shared_ptr< source_Type > sourcePtr_Type

Definition at line 79 of file OneDFSIFunctionSolverDefined.hpp.

◆ data_Type

Definition at line 81 of file OneDFSIFunctionSolverDefined.hpp.

◆ mesh_Type

◆ container2D_Type

◆ linearSolver_Type

◆ vector_Type

◆ vectorPtr_Type

typedef std::shared_ptr< vector_Type > vectorPtr_Type

Definition at line 88 of file OneDFSIFunctionSolverDefined.hpp.

◆ vectorPtrContainer_Type

typedef std::array< vectorPtr_Type, 2 > vectorPtrContainer_Type

Definition at line 89 of file OneDFSIFunctionSolverDefined.hpp.

◆ matrix_Type

◆ solution_Type

typedef std::map< std::string, vectorPtr_Type > solution_Type

Definition at line 93 of file OneDFSIFunctionSolverDefined.hpp.

◆ solutionPtr_Type

typedef std::shared_ptr< solution_Type > solutionPtr_Type

Definition at line 94 of file OneDFSIFunctionSolverDefined.hpp.

◆ bcLine_Type

◆ bcSide_Type

◆ bcType_Type

Constructor & Destructor Documentation

◆ OneDFSIFunctionSolverDefined() [1/2]

OneDFSIFunctionSolverDefined ( const bcSide_Type bcSide,
const bcType_Type bcType 
)
explicit

Constructor.

Parameters
bcLinethe line of the boundary condition (first or second).
bcTypethe type of the boundary condition ( $Q$, $A$, $P$, $S$, $W_1$, $W_2$).

Definition at line 51 of file OneDFSIFunctionSolverDefined.cpp.

+ Here is the caller graph for this function:

◆ OneDFSIFunctionSolverDefined() [2/2]

OneDFSIFunctionSolverDefined ( const OneDFSIFunctionSolverDefined bcFunctionDefault)
explicit

Copy constructor.

Parameters
bcFunctionDefaultOneDFSIFunctionSolverDefined

Definition at line 61 of file OneDFSIFunctionSolverDefined.cpp.

+ Here is the caller graph for this function:

◆ ~OneDFSIFunctionSolverDefined()

virtual ~OneDFSIFunctionSolverDefined ( )
inlinevirtual

Destructor.

Definition at line 120 of file OneDFSIFunctionSolverDefined.hpp.

Member Function Documentation

◆ operator()()

Real operator() ( const Real time,
const Real timeStep 
)
virtual

Operator()

Evaluate the function.

Parameters
timethe current time.
timeStepthe time step.
Returns
the value of the function.

Reimplemented in OneDFSIFunctionSolverDefinedWindkessel3, OneDFSIFunctionSolverDefinedAbsorbing, OneDFSIFunctionSolverDefinedCompatibility, and OneDFSIFunctionSolverDefinedRiemann.

Definition at line 73 of file OneDFSIFunctionSolverDefined.cpp.

◆ setFluxSource()

void setFluxSource ( const fluxPtr_Type fluxPtr,
const sourcePtr_Type sourcePtr 
)

Set the flux and the source classes for the problem.

Parameters
fluxPtrpointer to the flux term of the problem.
sourcePtrpointer to the source term of the problem.

Definition at line 85 of file OneDFSIFunctionSolverDefined.cpp.

◆ setSolution()

void setSolution ( const solutionPtr_Type solutionPtr)
inline

Set the solution of the problem.

Parameters
solutionPtrpointer to the solution of the problem.

Definition at line 155 of file OneDFSIFunctionSolverDefined.hpp.

◆ setupNode()

void setupNode ( )
protectedvirtual

Automatically identify the boundary node.

Reimplemented in OneDFSIFunctionSolverDefinedCompatibility.

Definition at line 97 of file OneDFSIFunctionSolverDefined.cpp.

+ Here is the caller graph for this function:

Field Documentation

◆ M_fluxPtr

fluxPtr_Type M_fluxPtr
protected

Definition at line 172 of file OneDFSIFunctionSolverDefined.hpp.

◆ M_sourcePtr

sourcePtr_Type M_sourcePtr
protected

Definition at line 173 of file OneDFSIFunctionSolverDefined.hpp.

◆ M_solutionPtr

solutionPtr_Type M_solutionPtr
protected

Definition at line 174 of file OneDFSIFunctionSolverDefined.hpp.

◆ M_bcNode

UInt M_bcNode
protected

Definition at line 176 of file OneDFSIFunctionSolverDefined.hpp.

◆ M_bcSide

bcSide_Type M_bcSide
protected

Definition at line 177 of file OneDFSIFunctionSolverDefined.hpp.

◆ M_bcType

bcType_Type M_bcType
protected

Definition at line 178 of file OneDFSIFunctionSolverDefined.hpp.


The documentation for this class was generated from the following files: