LifeV
OneDFSISourceLinear Class Reference

OneDFSISourceLinear - Class for the linear source function S of the 1D hyperbolic problem. More...

#include <OneDFSISourceLinear.hpp>

+ Inheritance diagram for OneDFSISourceLinear:
+ Collaboration diagram for OneDFSISourceLinear:

Type definitions and Enumerators

typedef OneDFSISource super
 

Constructors & Destructor

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

Methods

Real source (const Real &U1, const Real &U2, const ID &row, const UInt &iNode) const
 Evaluate the source term. More...
 
Real dSdU (const Real &U1, const Real &U2, const ID &row, const ID &colum, const UInt &iNode) const
 Evaluate the derivative of the source term. More...
 
Real interpolatedNonConservativeSource (const Real &U1, const Real &U2, const ID &row, const container2D_Type &bcNodes, const Real &cfl) const
 Evaluate the non-conservative form of the source term at the foot of the outgoing characteristic. More...
 

Unimplemented Methods

 OneDFSISourceLinear (const OneDFSISourceLinear &source)
 
OneDFSISourceLinearoperator= (const OneDFSISourceLinear &source)
 

Additional Inherited Members

- Public Types inherited from OneDFSISource
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
 
- Public Member Functions inherited from OneDFSISource
 OneDFSISource ()
 Empty constructor. More...
 
 OneDFSISource (const physicsPtr_Type physicsPtr)
 Constructor. More...
 
virtual ~OneDFSISource ()
 Do nothing destructor. More...
 
void setPhysics (const physicsPtr_Type &physicsPtr)
 Set the physics of the problem. More...
 
physicsPtr_Type physics () const
 Get the physics of the problem. More...
 
- Protected Attributes inherited from OneDFSISource
physicsPtr_Type M_physicsPtr
 

Detailed Description

OneDFSISourceLinear - Class for the linear source function 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.

In the present implementation we have:

\[ \mathbf F(\mathbf U) = \left[\begin{array}{c} \dots \\[2ex] \dots \end{array}\right], \quad \mathbf S(\mathbf U) = \mathbf B(\mathbf U) - \left[\begin{array}{c} \dots \\[2ex] \dots \end{array}\right] \]

The assumed wall-law is

\[ P-P_\mathrm{ext} = \psi(A,A^0,\beta_0, \beta_1, \gamma) = \dots \]

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

Definition at line 89 of file OneDFSISourceLinear.hpp.

Member Typedef Documentation

◆ super

Definition at line 97 of file OneDFSISourceLinear.hpp.

Constructor & Destructor Documentation

◆ OneDFSISourceLinear() [1/3]

OneDFSISourceLinear ( )
inlineexplicit

Empty constructor.

Definition at line 106 of file OneDFSISourceLinear.hpp.

+ Here is the caller graph for this function:

◆ OneDFSISourceLinear() [2/3]

OneDFSISourceLinear ( const physicsPtr_Type  physicsPtr)
inlineexplicit

Constructor.

Parameters
physicsPtrpointer to the physics of the problem

Definition at line 112 of file OneDFSISourceLinear.hpp.

◆ ~OneDFSISourceLinear()

virtual ~OneDFSISourceLinear ( )
inlinevirtual

Do nothing destructor.

Definition at line 115 of file OneDFSISourceLinear.hpp.

◆ OneDFSISourceLinear() [3/3]

OneDFSISourceLinear ( const OneDFSISourceLinear source)
explicitprivate

Member Function Documentation

◆ source()

Real source ( const Real U1,
const Real U2,
const ID row,
const UInt iNode 
) const
virtual

Evaluate the source term.

\[ \begin{array}{rcl} \mathbf S(\mathbf U)_1 & = & S_{10} + S_{11} U_1 + S_{12} Ustd::placeholders::_2,\\ \mathbf S(\mathbf U)_2 & = & S_{20} + S_{21} U_1 + S_{22} U_2 \end{array} \]

Parameters
U1first unknown
U2second unknown
rowrow of the source term
iNodenode of the mesh

Implements OneDFSISource.

Definition at line 50 of file OneDFSISourceLinear.cpp.

◆ dSdU()

Real dSdU ( const Real U1,
const Real U2,
const ID row,
const ID colum,
const UInt iNode 
) const
virtual

Evaluate the derivative of the source term.

Parameters
U1first unknown
U2second unknown
rowrow of the derivative of the source term
columncolumn of the derivative of the source term
iNodenode of the mesh

Implements OneDFSISource.

Definition at line 69 of file OneDFSISourceLinear.cpp.

◆ interpolatedNonConservativeSource()

Real interpolatedNonConservativeSource ( const Real U1,
const Real U2,
const ID row,
const container2D_Type bcNodes,
const Real cfl 
) const
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
U1first unknown
U2second unknown
rowrow of the source term
bcNodeslist of boundary nodes
cflcfl used to identify the foot of the characteristic

Implements OneDFSISource.

Definition at line 92 of file OneDFSISourceLinear.cpp.

◆ operator=()

OneDFSISourceLinear& operator= ( const OneDFSISourceLinear source)
private

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