LifeV
|
OneDFSISource - Base class for the source term of the 1D hyperbolic problem. More...
#include <OneDFSISource.hpp>
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_Type > | physicsPtr_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) | |
OneDFSISource & | operator= (const OneDFSISource &source) |
OneDFSISource - Base class for the source term of the 1D hyperbolic problem.
The conservative form of the generic hyperbolic problem is
where are the conservative variables, the corresponding fluxes, and represents the source terms.
This class implements all the interfaces required for the computation of and its derivatives.
Definition at line 63 of file OneDFSISource.hpp.
Definition at line 70 of file OneDFSISource.hpp.
typedef OneDFSIPhysics physics_Type |
Definition at line 72 of file OneDFSISource.hpp.
typedef std::shared_ptr< physics_Type > physicsPtr_Type |
Definition at line 73 of file OneDFSISource.hpp.
Definition at line 75 of file OneDFSISource.hpp.
|
inlineexplicit |
Empty constructor.
Definition at line 84 of file OneDFSISource.hpp.
|
inlineexplicit |
Constructor.
physicsPtr | pointer to the physics of the problem |
Definition at line 90 of file OneDFSISource.hpp.
|
inlinevirtual |
Do nothing destructor.
Definition at line 93 of file OneDFSISource.hpp.
|
explicitprivate |
|
pure virtual |
Evaluate the source term.
A | area |
Q | flow rate |
row | row of the source term |
iNode | node of the mesh |
Implemented in OneDFSISourceNonLinear, and OneDFSISourceLinear.
|
pure virtual |
Evaluate the derivative of the source term.
A | area |
Q | flow rate |
row | row of the derivative of the source term |
column | column of the derivative of the source term |
iNode | node of the mesh |
Implemented in OneDFSISourceNonLinear, and OneDFSISourceLinear.
|
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.
A | area |
Q | flow rate |
row | row of the source term |
bcNodes | list of boundary nodes |
cfl | cfl used to identify the foot of the characteristic |
Implemented in OneDFSISourceNonLinear, and OneDFSISourceLinear.
|
inline |
Set the physics of the problem.
physicsPtr | pointer to physics of the problem |
Definition at line 144 of file OneDFSISource.hpp.
|
inline |
Get the physics of the problem.
Definition at line 159 of file OneDFSISource.hpp.
|
private |
|
protected |
Definition at line 168 of file OneDFSISource.hpp.