42 #include <lifev/one_d_fsi/solver/OneDFSISourceLinear.hpp> 54 return M_physicsPtr->data()->source10 ( iNode ) +
55 M_physicsPtr->data()->source11 ( iNode ) * U1 +
56 M_physicsPtr->data()->source12 ( iNode ) * U2;
60 return M_physicsPtr->data()->source20 ( iNode ) +
61 M_physicsPtr->data()->source21 ( iNode ) * U1 +
62 M_physicsPtr->data()->source22 ( iNode ) * U2;
64 ERROR_MSG (
"The flux function has only 2 components.");
71 if ( row == 0 && column == 0)
73 return M_physicsPtr->data()->source11 ( iNode );
75 if ( row == 0 && column == 1)
77 return M_physicsPtr->data()->source12 ( iNode );
79 if ( row == 1 && column == 0 )
81 return M_physicsPtr->data()->source21 ( iNode );
83 if ( row == 1 && column == 1 )
85 return M_physicsPtr->data()->source22 ( iNode );
87 ERROR_MSG (
"Source's differential function has only 4 components.");
93 const ID& row,
const container2D_Type& bcNodes,
const Real& )
const 96 return this->source (U1, U2, row, bcNodes[0]);
Real source(const Real &U1, const Real &U2, const ID &row, const UInt &iNode) const
Evaluate the source term.
OneDFSISourceLinear - Class for the linear source function S of the 1D hyperbolic problem...
void updateInverseJacobian(const UInt &iQuadPt)
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...
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.
double Real
Generic real data.
uint32_type UInt
generic unsigned integer (used mainly for addressing)