GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
DASPK Class Reference

#include "DASPK.h"

Inheritance diagram for DASPK:
Collaboration diagram for DASPK:

Public Types

typedef Matrix(* DAEJacFunc) (const ColumnVector &x, const ColumnVector &xdot, double t, double cj)
 
typedef ColumnVector(* DAERHSFunc) (const ColumnVector &x, const ColumnVector &xdot, double t, octave_idx_type &ires)
 

Public Member Functions

 DASPK (const ColumnVector &s, const ColumnVector &deriv, double tm, DAEFunc &f)
 
 DASPK (const ColumnVector &s, double tm, DAEFunc &f)
 
 DASPK (void)
 
 ~DASPK (void)=default
 
void clear_stop_time (void)
 
Matrix do_integrate (const ColumnVector &tout)
 
Matrix do_integrate (const ColumnVector &tout, const ColumnVector &tcrit)
 
ColumnVector do_integrate (double t)
 
std::string error_message (void) const
 
virtual void force_restart (void)
 
DAERHSFunc function (void) const
 
void initialize (const ColumnVector &x0, const ColumnVector &xdot0, double t0)
 
void initialize (const ColumnVector &x0, double t0)
 
Matrix integrate (const ColumnVector &tout, Matrix &xdot_out)
 
Matrix integrate (const ColumnVector &tout, Matrix &xdot_out, const ColumnVector &tcrit)
 
bool integration_ok (void) const
 
octave_idx_type integration_state (void) const
 
DAEJacFunc jacobian_function (void) const
 
DAEFuncset_function (DAERHSFunc f)
 
DAEFuncset_jacobian_function (DAEJacFunc j)
 
void set_stop_time (double tt)
 
octave_idx_type size (void) const
 
ColumnVector state (void) const
 
ColumnVector state_derivative (void)
 
double time (void) const
 

Protected Attributes

DAERHSFunc m_fcn
 
bool m_integration_error
 
octave_idx_type m_istate
 
DAEJacFunc m_jac
 
bool m_reset
 
bool m_restart
 
double m_stop_time
 
bool m_stop_time_set
 
double m_t
 
ColumnVector m_x
 
ColumnVector m_xdot
 

Private Attributes

Array< double > m_abs_tol
 
Array< octave_f77_int_type > m_info
 
bool m_initialized
 
Array< octave_f77_int_type > m_iwork
 
octave_f77_int_type m_liw
 
octave_f77_int_type m_lrw
 
Array< double > m_rel_tol
 
Array< double > m_rwork
 

Detailed Description

Definition at line 38 of file DASPK.h.

Member Typedef Documentation

◆ DAEJacFunc

typedef Matrix(* DAEFunc::DAEJacFunc) (const ColumnVector &x, const ColumnVector &xdot, double t, double cj)
inherited

Definition at line 46 of file DAEFunc.h.

◆ DAERHSFunc

typedef ColumnVector(* DAEFunc::DAERHSFunc) (const ColumnVector &x, const ColumnVector &xdot, double t, octave_idx_type &ires)
inherited

Definition at line 38 of file DAEFunc.h.

Constructor & Destructor Documentation

◆ DASPK() [1/3]

DASPK::DASPK ( void  )
inline

Definition at line 44 of file DASPK.h.

◆ DASPK() [2/3]

DASPK::DASPK ( const ColumnVector s,
double  tm,
DAEFunc f 
)
inline

Definition at line 48 of file DASPK.h.

◆ DASPK() [3/3]

DASPK::DASPK ( const ColumnVector s,
const ColumnVector deriv,
double  tm,
DAEFunc f 
)
inline

Definition at line 53 of file DASPK.h.

◆ ~DASPK()

DASPK::~DASPK ( void  )
default

Member Function Documentation

◆ clear_stop_time()

void base_diff_eqn::clear_stop_time ( void  )
inlineinherited

Definition at line 92 of file base-de.h.

Referenced by LSODE::do_integrate(), DASRT::integrate(), integrate(), and DASSL::integrate().

◆ do_integrate() [1/3]

Matrix DASPK::do_integrate ( const ColumnVector tout)

Definition at line 540 of file DASPK.cc.

References integrate().

◆ do_integrate() [2/3]

Matrix DASPK::do_integrate ( const ColumnVector tout,
const ColumnVector tcrit 
)

Definition at line 584 of file DASPK.cc.

References integrate().

◆ do_integrate() [3/3]

◆ error_message()

std::string DASPK::error_message ( void  ) const
virtual

Implements base_diff_eqn.

Definition at line 695 of file DASPK.cc.

References base_diff_eqn::m_istate, and base_diff_eqn::m_t.

Referenced by DEFMETHOD().

◆ force_restart()

virtual void base_diff_eqn::force_restart ( void  )
inlinevirtualinherited

Definition at line 98 of file base-de.h.

Referenced by LSODE::do_integrate(), DASRT::integrate(), integrate(), and DASSL::integrate().

◆ function()

DAERHSFunc DAEFunc::function ( void  ) const
inlineinherited

Definition at line 75 of file DAEFunc.h.

Referenced by do_integrate(), DASSL::do_integrate(), and DASRT::integrate().

◆ initialize() [1/2]

void base_diff_alg_eqn::initialize ( const ColumnVector x0,
const ColumnVector xdot0,
double  t0 
)
inlineinherited

Definition at line 69 of file base-dae.h.

References base_diff_eqn::initialize().

◆ initialize() [2/2]

void base_diff_alg_eqn::initialize ( const ColumnVector x0,
double  t0 
)
inlineinherited

Definition at line 63 of file base-dae.h.

References ColumnVector, base_diff_eqn::initialize(), and Array< T, Alloc >::numel().

Referenced by DAERT::initialize().

◆ integrate() [1/2]

◆ integrate() [2/2]

◆ integration_ok()

bool base_diff_eqn::integration_ok ( void  ) const
inlineinherited

Definition at line 100 of file base-de.h.

Referenced by DEFMETHOD().

◆ integration_state()

octave_idx_type base_diff_eqn::integration_state ( void  ) const
inlineinherited

Definition at line 102 of file base-de.h.

Referenced by DEFMETHOD().

◆ jacobian_function()

DAEJacFunc DAEFunc::jacobian_function ( void  ) const
inlineinherited

Definition at line 84 of file DAEFunc.h.

Referenced by do_integrate(), DASSL::do_integrate(), and DASRT::integrate().

◆ set_function()

DAEFunc& DAEFunc::set_function ( DAERHSFunc  f)
inlineinherited

Definition at line 77 of file DAEFunc.h.

References f.

◆ set_jacobian_function()

DAEFunc& DAEFunc::set_jacobian_function ( DAEJacFunc  j)
inlineinherited

Definition at line 86 of file DAEFunc.h.

Referenced by DEFMETHOD().

◆ set_stop_time()

void base_diff_eqn::set_stop_time ( double  tt)
inlineinherited

Definition at line 85 of file base-de.h.

Referenced by LSODE::do_integrate(), DASRT::integrate(), integrate(), and DASSL::integrate().

◆ size()

octave_idx_type base_diff_eqn::size ( void  ) const
inlineinherited

◆ state()

ColumnVector base_diff_eqn::state ( void  ) const
inlineinherited

Definition at line 81 of file base-de.h.

◆ state_derivative()

ColumnVector base_diff_alg_eqn::state_derivative ( void  )
inlineinherited

Definition at line 76 of file base-dae.h.

◆ time()

double base_diff_eqn::time ( void  ) const
inlineinherited

Definition at line 83 of file base-de.h.

Member Data Documentation

◆ m_abs_tol

Array<double> DASPK::m_abs_tol
private

Definition at line 86 of file DASPK.h.

Referenced by do_integrate().

◆ m_fcn

DAERHSFunc DAEFunc::m_fcn
protectedinherited

Definition at line 95 of file DAEFunc.h.

Referenced by DAEFunc::operator=().

◆ m_info

Array<octave_f77_int_type> DASPK::m_info
private

Definition at line 81 of file DASPK.h.

Referenced by do_integrate().

◆ m_initialized

bool DASPK::m_initialized
private

Definition at line 76 of file DASPK.h.

Referenced by do_integrate().

◆ m_integration_error

bool base_diff_eqn::m_integration_error
protectedinherited

◆ m_istate

◆ m_iwork

Array<octave_f77_int_type> DASPK::m_iwork
private

Definition at line 82 of file DASPK.h.

Referenced by do_integrate().

◆ m_jac

DAEJacFunc DAEFunc::m_jac
protectedinherited

Definition at line 96 of file DAEFunc.h.

Referenced by DAEFunc::operator=().

◆ m_liw

octave_f77_int_type DASPK::m_liw
private

Definition at line 78 of file DASPK.h.

Referenced by do_integrate().

◆ m_lrw

octave_f77_int_type DASPK::m_lrw
private

Definition at line 79 of file DASPK.h.

Referenced by do_integrate().

◆ m_rel_tol

Array<double> DASPK::m_rel_tol
private

Definition at line 87 of file DASPK.h.

Referenced by do_integrate().

◆ m_reset

bool DAEFunc::m_reset
protectedinherited

Definition at line 103 of file DAEFunc.h.

Referenced by do_integrate(), DASSL::do_integrate(), DASRT::integrate(), and DAEFunc::operator=().

◆ m_restart

bool base_diff_eqn::m_restart
protectedinherited

◆ m_rwork

Array<double> DASPK::m_rwork
private

Definition at line 84 of file DASPK.h.

Referenced by do_integrate().

◆ m_stop_time

double base_diff_eqn::m_stop_time
protectedinherited

◆ m_stop_time_set

bool base_diff_eqn::m_stop_time_set
protectedinherited

◆ m_t

◆ m_x

ColumnVector base_diff_eqn::m_x
protectedinherited

◆ m_xdot

ColumnVector base_diff_alg_eqn::m_xdot
protectedinherited

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