OGS 6.2.0-405-gb717f6088
NumLib::MatrixTranslator< ODESystemTag::FirstOrderImplicitQuasilinear > Class Template Referenceabstract

Detailed Description

template<>
class NumLib::MatrixTranslator< ODESystemTag::FirstOrderImplicitQuasilinear >

Translates matrices assembled by a provided first order implicit quasi-linear ODE to some other matrices suitable to be passed on to nonlinear solvers.

See also
ODESystemTag::FirstOrderImplicitQuasilinear

Definition at line 39 of file MatrixTranslator.h.

#include <MatrixTranslator.h>

Inheritance diagram for NumLib::MatrixTranslator< ODESystemTag::FirstOrderImplicitQuasilinear >:

Public Member Functions

virtual void computeA (GlobalMatrix const &M, GlobalMatrix const &K, GlobalMatrix &A) const =0
 Computes A from M and K. More...
 
virtual void computeRhs (const GlobalMatrix &M, const GlobalMatrix &K, const GlobalVector &b, GlobalVector &rhs) const =0
 Computes rhs from M, K and b. More...
 
virtual void computeResidual (GlobalMatrix const &M, GlobalMatrix const &K, GlobalVector const &b, GlobalVector const &x_new_timestep, GlobalVector const &xdot, GlobalVector &res) const =0
 
virtual void computeJacobian (GlobalMatrix const &Jac_in, GlobalMatrix &Jac_out) const =0
 Computes the Jacobian of the residual and writes it to Jac_out. More...
 
virtual void pushMatrices (GlobalMatrix const &, GlobalMatrix const &, GlobalVector const &)
 
virtual ~MatrixTranslator ()=default
 

Constructor & Destructor Documentation

◆ ~MatrixTranslator()

Member Function Documentation

◆ computeA()

◆ computeJacobian()

◆ computeResidual()

virtual void NumLib::MatrixTranslator< ODESystemTag::FirstOrderImplicitQuasilinear >::computeResidual ( GlobalMatrix const &  M,
GlobalMatrix const &  K,
GlobalVector const &  b,
GlobalVector const &  x_new_timestep,
GlobalVector const &  xdot,
GlobalVector &  res 
) const
pure virtual

◆ computeRhs()

virtual void NumLib::MatrixTranslator< ODESystemTag::FirstOrderImplicitQuasilinear >::computeRhs ( const GlobalMatrix &  M,
const GlobalMatrix &  K,
const GlobalVector &  b,
GlobalVector &  rhs 
) const
pure virtual

◆ pushMatrices()

virtual void NumLib::MatrixTranslator< ODESystemTag::FirstOrderImplicitQuasilinear >::pushMatrices ( GlobalMatrix const &  ,
GlobalMatrix const &  ,
GlobalVector const &   
)
inlinevirtual

Allows to store the given matrices internally for later use.

Remarks
This method has been provided in order to be able to implement the CrankNicolson scheme.

Reimplemented in NumLib::MatrixTranslatorCrankNicolson< ODESystemTag::FirstOrderImplicitQuasilinear >.

Definition at line 71 of file MatrixTranslator.h.

74  {
75  }

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