tfel
Loading...
Searching...
No Matches
mfront::AbstractLinearSystemSolver Struct Referenceabstract

Base class for linear system solver used by implicit domain specific languages. More...

#include </home/runner/work/tfel/tfel/mfront/include/MFront/AbstractLinearSystemSolver.hxx>

Inheritance diagram for mfront::AbstractLinearSystemSolver:
mfront::LinearSystemSolverBase mfront::DefaultLinearSystemSolver mfront::TDLSLinearSystemSolver

Classes

struct  MatrixDecompositionVariables
struct  MatrixDecompositionResult
 structure containing the results of the matrix decomposition More...
struct  LinearSystemVariables
struct  LinearSystemSubstitutionVariables

Public Types

using Hypothesis = tfel::material::ModellingHypothesis::Hypothesis
 a simple alias

Public Member Functions

virtual std::vector< std::string > getSpecificHeaders () const =0
virtual std::vector< std::string > getReservedNames () const =0
virtual void writeLinearSystemResolution (std::ostream &, const BehaviourDescription &, const AbstractNonLinearSystemSolver &, const Hypothesis, const LinearSystemVariables &) const =0
 write the resolution of a linear system
virtual MatrixDecompositionResult getMatrixDecompositionResults (const BehaviourDescription &, const AbstractNonLinearSystemSolver &, const Hypothesis, const std::string &) const =0
 return the description of the results of the matrix decomposition (see writeMatrixDecomposition)
virtual MatrixDecompositionResult writeMatrixDecomposition (std::ostream &, const BehaviourDescription &, const AbstractNonLinearSystemSolver &, const Hypothesis, const MatrixDecompositionVariables &) const =0
 write the decomposition of a matrix prior to a resolution of one or several linear systems (see writeLinearSystemSubstitution)
virtual void writeLinearSystemSubstitution (std::ostream &, const MatrixDecompositionResult &, const LinearSystemSubstitutionVariables &) const =0
 write the resolution of a linear system after the matrix decomposition
virtual void writeSpecificMembers (std::ostream &, const BehaviourDescription &, const Hypothesis) const =0
 write the solver specific members
virtual ~AbstractLinearSystemSolver ()
 destructor

Detailed Description

Base class for linear system solver used by implicit domain specific languages.

Member Function Documentation

◆ getMatrixDecompositionResults()

virtual MatrixDecompositionResult mfront::AbstractLinearSystemSolver::getMatrixDecompositionResults ( const BehaviourDescription & ,
const AbstractNonLinearSystemSolver & ,
const Hypothesis ,
const std::string &  ) const
pure virtual

return the description of the results of the matrix decomposition (see writeMatrixDecomposition)

Parameters
[in]bdbehaviour description
[in]solvernonlinear solver
[in]hmodelling hypothesis
[in]nname of the decomposed matrix

Implemented in mfront::DefaultLinearSystemSolver, and mfront::TDLSLinearSystemSolver.

◆ getReservedNames()

virtual std::vector< std::string > mfront::AbstractLinearSystemSolver::getReservedNames ( ) const
pure virtual
Returns
the reserved names

Implemented in mfront::LinearSystemSolverBase, and mfront::TDLSLinearSystemSolver.

◆ getSpecificHeaders()

virtual std::vector< std::string > mfront::AbstractLinearSystemSolver::getSpecificHeaders ( ) const
pure virtual
Returns
the header to be included

Implemented in mfront::LinearSystemSolverBase, and mfront::TDLSLinearSystemSolver.

◆ writeLinearSystemResolution()

virtual void mfront::AbstractLinearSystemSolver::writeLinearSystemResolution ( std::ostream & ,
const BehaviourDescription & ,
const AbstractNonLinearSystemSolver & ,
const Hypothesis ,
const LinearSystemVariables &  ) const
pure virtual

write the resolution of a linear system

Parameters
[in]osoutput stream
[in]bdbehaviour description
[in]solvernonlinear solver
[in]hmodelling hypothesis
[in]sdescription of the linear system

Implemented in mfront::DefaultLinearSystemSolver, and mfront::TDLSLinearSystemSolver.

◆ writeLinearSystemSubstitution()

virtual void mfront::AbstractLinearSystemSolver::writeLinearSystemSubstitution ( std::ostream & ,
const MatrixDecompositionResult & ,
const LinearSystemSubstitutionVariables &  ) const
pure virtual

write the resolution of a linear system after the matrix decomposition

Parameters
[in]osoutput stream
[in]rresult of the matrix decomposition
[in]sdescription of the substitution variables

Implemented in mfront::DefaultLinearSystemSolver, and mfront::TDLSLinearSystemSolver.

◆ writeMatrixDecomposition()

virtual MatrixDecompositionResult mfront::AbstractLinearSystemSolver::writeMatrixDecomposition ( std::ostream & ,
const BehaviourDescription & ,
const AbstractNonLinearSystemSolver & ,
const Hypothesis ,
const MatrixDecompositionVariables &  ) const
pure virtual

write the decomposition of a matrix prior to a resolution of one or several linear systems (see writeLinearSystemSubstitution)

Parameters
[in]osoutput stream
[in]bdbehaviour description
[in]solvernonlinear solver
[in]hmodelling hypothesis
[in]svariables of the matrix decomposition

Implemented in mfront::DefaultLinearSystemSolver, and mfront::TDLSLinearSystemSolver.

◆ writeSpecificMembers()

virtual void mfront::AbstractLinearSystemSolver::writeSpecificMembers ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis  ) const
pure virtual

write the solver specific members

Parameters
[in]out: output file
[in]md: mechanical description
[in]h: modelling hypothesis

Implemented in mfront::LinearSystemSolverBase, and mfront::TDLSLinearSystemSolver.


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