Ember
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TridiagonalODE Class Referenceabstract

A system of linear ODEs represented by a tridiagonal matrix. More...

#include <integrator.h>

Inheritance diagram for TridiagonalODE:
[legend]

Public Member Functions

 TridiagonalODE ()
 
virtual ~TridiagonalODE ()
 
virtual void get_A (dvec &a, dvec &b, dvec &c)=0
 Provide the matrix associated with the ODE to the integrator.
 
virtual void get_k (dvec &k)=0
 Provides the constant term k to the integrator.
 
virtual void resize (size_t N)
 Set the number of points in the domain.
 
virtual void initialize ()
 

Detailed Description

A system of linear ODEs represented by a tridiagonal matrix.

The ODE may be written as an inhomogeneous linear linear system:

\[ \dot{y} = Ay + k \]

Constructor & Destructor Documentation

◆ TridiagonalODE()

TridiagonalODE::TridiagonalODE ( )
inline

◆ ~TridiagonalODE()

virtual TridiagonalODE::~TridiagonalODE ( )
inlinevirtual

Member Function Documentation

◆ get_A()

virtual void TridiagonalODE::get_A ( dvec a,
dvec b,
dvec c 
)
pure virtual

Provide the matrix associated with the ODE to the integrator.

Parameters
[out]aelements of the first subdiagonal of A
[out]belements of the main diagonal of A
[out]celements of the first superdiagonal of A

Implemented in DiffusionSystem.

◆ get_k()

virtual void TridiagonalODE::get_k ( dvec k)
pure virtual

Provides the constant term k to the integrator.

Implemented in DiffusionSystem.

◆ resize()

virtual void TridiagonalODE::resize ( size_t  N)
inlinevirtual

Set the number of points in the domain.

Reimplemented in DiffusionSystem.

◆ initialize()

virtual void TridiagonalODE::initialize ( )
inlinevirtual

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