LifeV
OneDFSISource Class Referenceabstract

OneDFSISource - Base class for the source term $\mathbf S$ of the 1D hyperbolic problem. More...

#include <OneDFSISource.hpp>

+ Inheritance diagram for OneDFSISource:
+ Collaboration diagram for OneDFSISource:

Protected Attributes

physicsPtr_Type M_physicsPtr
 

Type definitions and Enumerators

typedef FactorySingleton< Factory< OneDFSISource, OneDFSI::sourceTerm_Type > > factorySource_Type
 
typedef OneDFSIPhysics physics_Type
 
typedef std::shared_ptr< physics_TypephysicsPtr_Type
 
typedef OneDFSIData::container2D_Type container2D_Type
 

Constructors & Destructor

 OneDFSISource ()
 Empty constructor. More...
 
 OneDFSISource (const physicsPtr_Type physicsPtr)
 Constructor. More...
 
virtual ~OneDFSISource ()
 Do nothing destructor. More...
 

Virtual methods

virtual Real source (const Real &A, const Real &Q, const ID &row, const UInt &iNode) const =0
 Evaluate the source term. More...
 
virtual Real dSdU (const Real &A, const Real &Q, const ID &row, const ID &column, const UInt &iNode) const =0
 Evaluate the derivative of the source term. More...
 
virtual Real interpolatedNonConservativeSource (const Real &A, const Real &Q, const ID &row, const container2D_Type &bcNodes, const Real &cfl) const =0
 Evaluate the non-conservative form of the source term at the foot of the outgoing characteristic. More...
 

Set Methods

void setPhysics (const physicsPtr_Type &physicsPtr)
 Set the physics of the problem. More...
 

Get Methods

physicsPtr_Type physics () const
 Get the physics of the problem. More...
 

Unimplemented Methods

 OneDFSISource (const OneDFSISource &source)
 
OneDFSISourceoperator= (const OneDFSISource &source)
 

Detailed Description

OneDFSISource - Base class for the source term $\mathbf S$ of the 1D hyperbolic problem.

Author
Vincent Martin, Cristiano Malossi
See also
Equations and networks of 1-D models [7]
Geometrical multiscale coupling of 1-D models [12] [13] [3]

The conservative form of the generic hyperbolic problem is

\[ \frac{\partial \mathbf U}{\partial t} + \frac{\partial \mathbf F(\mathbf U)}{\partial z} + \mathbf S(\mathbf U) = 0, \]

where $\mathbf U$ are the conservative variables, $\mathbf F$ the corresponding fluxes, and $\mathbf S$ represents the source terms.

This class implements all the interfaces required for the computation of $\mathbf S$ and its derivatives.

Definition at line 63 of file OneDFSISource.hpp.

Member Typedef Documentation

◆ factorySource_Type

◆ physics_Type

Definition at line 72 of file OneDFSISource.hpp.

◆ physicsPtr_Type

typedef std::shared_ptr< physics_Type > physicsPtr_Type

Definition at line 73 of file OneDFSISource.hpp.

◆ container2D_Type

Constructor & Destructor Documentation

◆ OneDFSISource() [1/3]

OneDFSISource ( )
inlineexplicit

Empty constructor.

Definition at line 84 of file OneDFSISource.hpp.

+ Here is the caller graph for this function:

◆ OneDFSISource() [2/3]

OneDFSISource ( const physicsPtr_Type  physicsPtr)
inlineexplicit

Constructor.

Parameters
physicsPtrpointer to the physics of the problem

Definition at line 90 of file OneDFSISource.hpp.

+ Here is the caller graph for this function:

◆ ~OneDFSISource()

virtual ~OneDFSISource ( )
inlinevirtual

Do nothing destructor.

Definition at line 93 of file OneDFSISource.hpp.

◆ OneDFSISource() [3/3]

OneDFSISource ( const OneDFSISource source)
explicitprivate

Member Function Documentation

◆ source()

virtual Real source ( const Real A,
const Real Q,
const ID row,
const UInt iNode 
) const
pure virtual

Evaluate the source term.

Parameters
Aarea
Qflow rate
rowrow of the source term
iNodenode of the mesh

Implemented in OneDFSISourceNonLinear, and OneDFSISourceLinear.

◆ dSdU()

virtual Real dSdU ( const Real A,
const Real Q,
const ID row,
const ID column,
const UInt iNode 
) const
pure virtual

Evaluate the derivative of the source term.

Parameters
Aarea
Qflow rate
rowrow of the derivative of the source term
columncolumn of the derivative of the source term
iNodenode of the mesh

Implemented in OneDFSISourceNonLinear, and OneDFSISourceLinear.

◆ interpolatedNonConservativeSource()

virtual Real interpolatedNonConservativeSource ( const Real A,
const Real Q,
const ID row,
const container2D_Type bcNodes,
const Real cfl 
) const
pure virtual

Evaluate the non-conservative form of the source term at the foot of the outgoing characteristic.

This method is used for imposing the compatibility equations at the boundaries. It interpolates the value between to nodes.

Parameters
Aarea
Qflow rate
rowrow of the source term
bcNodeslist of boundary nodes
cflcfl used to identify the foot of the characteristic

Implemented in OneDFSISourceNonLinear, and OneDFSISourceLinear.

◆ setPhysics()

void setPhysics ( const physicsPtr_Type physicsPtr)
inline

Set the physics of the problem.

Parameters
physicsPtrpointer to physics of the problem

Definition at line 144 of file OneDFSISource.hpp.

◆ physics()

physicsPtr_Type physics ( ) const
inline

Get the physics of the problem.

Returns
physics of the problem

Definition at line 159 of file OneDFSISource.hpp.

◆ operator=()

OneDFSISource& operator= ( const OneDFSISource source)
private

Field Documentation

◆ M_physicsPtr

physicsPtr_Type M_physicsPtr
protected

Definition at line 168 of file OneDFSISource.hpp.


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