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

#include "DASRT.h"

Inheritance diagram for DASRT:
Collaboration diagram for DASRT:

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)
 
typedef ColumnVector(* DAERTConstrFunc) (const ColumnVector &x, double t)
 

Public Member Functions

 DASRT (void)
 
 DASRT (const ColumnVector &s, double tm, DAERTFunc &f)
 
 DASRT (const ColumnVector &s, const ColumnVector &deriv, double tm, DAERTFunc &f)
 
 ~DASRT (void)=default
 
void clear_stop_time (void)
 
DAERTConstrFunc constraint_function (void) const
 
std::string error_message (void) const
 
virtual void force_restart (void)
 
DAERHSFunc function (void) const
 
void initialize (const ColumnVector &x0, double t0)
 
void initialize (const ColumnVector &xx, const ColumnVector &xxdot, double tt)
 
DASRT_result integrate (const ColumnVector &tout)
 
DASRT_result integrate (const ColumnVector &tout, const ColumnVector &tcrit)
 
bool integration_ok (void) const
 
octave_idx_type integration_state (void) const
 
DAEJacFunc jacobian_function (void) const
 
DAERTFuncset_constraint_function (DAERTConstrFunc cf)
 
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

DAERTConstrFunc constr
 
DAERHSFunc fun
 
bool integration_error
 
octave_idx_type istate
 
DAEJacFunc jac
 
bool reset
 
bool restart
 
double stop_time
 
bool stop_time_set
 
double t
 
ColumnVector x
 
ColumnVector xdot
 

Private Member Functions

void integrate (double t)
 

Private Attributes

Array< doubleabs_tol
 
Array< octave_f77_int_type > info
 
bool initialized
 
Array< octave_f77_int_type > iwork
 
Array< octave_f77_int_type > jroot
 
octave_f77_int_type liw
 
octave_f77_int_type lrw
 
octave_f77_int_type ng
 
Array< doublerel_tol
 
Array< doublerwork
 

Detailed Description

Definition at line 72 of file DASRT.h.

Member Typedef Documentation

◆ DAEJacFunc

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

Definition at line 44 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 36 of file DAEFunc.h.

◆ DAERTConstrFunc

typedef ColumnVector(* DAERTFunc::DAERTConstrFunc) (const ColumnVector &x, double t)
inherited

Definition at line 35 of file DAERTFunc.h.

Constructor & Destructor Documentation

◆ DASRT() [1/3]

DASRT::DASRT ( void  )
inline

Definition at line 78 of file DASRT.h.

◆ DASRT() [2/3]

DASRT::DASRT ( const ColumnVector s,
double  tm,
DAERTFunc f 
)
inline

Definition at line 84 of file DASRT.h.

◆ DASRT() [3/3]

DASRT::DASRT ( const ColumnVector s,
const ColumnVector deriv,
double  tm,
DAERTFunc f 
)
inline

Definition at line 90 of file DASRT.h.

◆ ~DASRT()

DASRT::~DASRT ( void  )
default

Member Function Documentation

◆ clear_stop_time()

void base_diff_eqn::clear_stop_time ( void  )
inlineinherited

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

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

◆ constraint_function()

DAERTConstrFunc DAERTFunc::constraint_function ( void  ) const
inlineinherited

Definition at line 68 of file DAERTFunc.h.

Referenced by integrate().

◆ error_message()

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

Implements base_diff_eqn.

Definition at line 562 of file DASRT.cc.

References base_diff_eqn::istate, retval, string, and base_diff_eqn::t.

Referenced by Fdasrt().

◆ force_restart()

virtual void base_diff_eqn::force_restart ( void  )
inlinevirtualinherited

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

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

◆ function()

DAERHSFunc DAEFunc::function ( void  ) const
inlineinherited

Definition at line 73 of file DAEFunc.h.

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

◆ initialize() [1/2]

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

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

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

Referenced by DAERT::initialize().

◆ initialize() [2/2]

void DAERT::initialize ( const ColumnVector xx,
const ColumnVector xxdot,
double  tt 
)
inlineinherited

Definition at line 63 of file DAERT.h.

References base_diff_alg_eqn::initialize().

◆ integrate() [1/3]

◆ integrate() [2/3]

◆ integrate() [3/3]

◆ integration_ok()

bool base_diff_eqn::integration_ok ( void  ) const
inlineinherited

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

Referenced by Fdaspk(), Fdasrt(), and Fdassl().

◆ integration_state()

octave_idx_type base_diff_eqn::integration_state ( void  ) const
inlineinherited

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

Referenced by Fdaspk(), Fdasrt(), and Fdassl().

◆ jacobian_function()

DAEJacFunc DAEFunc::jacobian_function ( void  ) const
inlineinherited

Definition at line 82 of file DAEFunc.h.

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

◆ set_constraint_function()

DAERTFunc& DAERTFunc::set_constraint_function ( DAERTConstrFunc  cf)
inlineinherited

Definition at line 70 of file DAERTFunc.h.

Referenced by Fdasrt().

◆ set_function()

DAEFunc& DAEFunc::set_function ( DAERHSFunc  f)
inlineinherited

Definition at line 75 of file DAEFunc.h.

References f.

◆ set_jacobian_function()

DAEFunc& DAEFunc::set_jacobian_function ( DAEJacFunc  j)
inlineinherited

Definition at line 84 of file DAEFunc.h.

Referenced by Fdaspk(), Fdasrt(), and Fdassl().

◆ set_stop_time()

void base_diff_eqn::set_stop_time ( double  tt)
inlineinherited

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

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

◆ size()

octave_idx_type base_diff_eqn::size ( void  ) const
inlineinherited

◆ state()

ColumnVector base_diff_eqn::state ( void  ) const
inlineinherited

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

References x.

◆ state_derivative()

ColumnVector base_diff_alg_eqn::state_derivative ( void  )
inlineinherited

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

◆ time()

double base_diff_eqn::time ( void  ) const
inlineinherited

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

References t.

Member Data Documentation

◆ abs_tol

Array<double> DASRT::abs_tol
private

Definition at line 121 of file DASRT.h.

Referenced by integrate().

◆ constr

DAERTConstrFunc DAERTFunc::constr
protectedinherited

Definition at line 79 of file DAERTFunc.h.

◆ fun

DAERHSFunc DAEFunc::fun
protectedinherited

Definition at line 93 of file DAEFunc.h.

◆ info

Array<octave_f77_int_type> DASRT::info
private

Definition at line 115 of file DASRT.h.

Referenced by integrate().

◆ initialized

bool DASRT::initialized
private

Definition at line 108 of file DASRT.h.

Referenced by integrate().

◆ integration_error

bool base_diff_eqn::integration_error
protectedinherited

◆ istate

◆ iwork

Array<octave_f77_int_type> DASRT::iwork
private

Definition at line 116 of file DASRT.h.

Referenced by integrate().

◆ jac

DAEJacFunc DAEFunc::jac
protectedinherited

Definition at line 94 of file DAEFunc.h.

◆ jroot

Array<octave_f77_int_type> DASRT::jroot
private

Definition at line 117 of file DASRT.h.

Referenced by integrate().

◆ liw

octave_f77_int_type DASRT::liw
private

Definition at line 110 of file DASRT.h.

Referenced by integrate().

◆ lrw

octave_f77_int_type DASRT::lrw
private

Definition at line 111 of file DASRT.h.

Referenced by integrate().

◆ ng

octave_f77_int_type DASRT::ng
private

Definition at line 113 of file DASRT.h.

Referenced by integrate().

◆ rel_tol

Array<double> DASRT::rel_tol
private

Definition at line 122 of file DASRT.h.

Referenced by integrate().

◆ reset

bool DAERTFunc::reset
protectedinherited

Definition at line 86 of file DAERTFunc.h.

Referenced by integrate().

◆ restart

bool base_diff_eqn::restart
protectedinherited

◆ rwork

Array<double> DASRT::rwork
private

Definition at line 119 of file DASRT.h.

Referenced by integrate().

◆ stop_time

double base_diff_eqn::stop_time
protectedinherited

◆ stop_time_set

bool base_diff_eqn::stop_time_set
protectedinherited

◆ t

◆ x

ColumnVector base_diff_eqn::x
protectedinherited

◆ xdot

ColumnVector base_diff_alg_eqn::xdot
protectedinherited

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