GNU Octave  6.2.0
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 (const ColumnVector &s, const ColumnVector &deriv, double tm, DAERTFunc &f)
 
 DASRT (const ColumnVector &s, double tm, DAERTFunc &f)
 
 DASRT (void)
 
 ~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< double > abs_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< double > rel_tol
 
Array< double > rwork
 

Detailed Description

Definition at line 75 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 47 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 39 of file DAEFunc.h.

◆ DAERTConstrFunc

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

Definition at line 38 of file DAERTFunc.h.

Constructor & Destructor Documentation

◆ DASRT() [1/3]

DASRT::DASRT ( void  )
inline

Definition at line 81 of file DASRT.h.

◆ DASRT() [2/3]

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

Definition at line 87 of file DASRT.h.

◆ DASRT() [3/3]

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

Definition at line 93 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 92 of file base-de.h.

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

◆ constraint_function()

DAERTConstrFunc DAERTFunc::constraint_function ( void  ) const
inlineinherited

Definition at line 71 of file DAERTFunc.h.

Referenced by integrate().

◆ error_message()

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

Implements base_diff_eqn.

Definition at line 554 of file DASRT.cc.

References base_diff_eqn::istate, retval, and base_diff_eqn::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(), integrate(), DASPK::integrate(), and DASSL::integrate().

◆ function()

DAERHSFunc DAEFunc::function ( void  ) const
inlineinherited

Definition at line 76 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 63 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 66 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 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 85 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 73 of file DAERTFunc.h.

Referenced by DEFMETHOD().

◆ set_function()

DAEFunc& DAEFunc::set_function ( DAERHSFunc  f)
inlineinherited

Definition at line 78 of file DAEFunc.h.

References f.

◆ set_jacobian_function()

DAEFunc& DAEFunc::set_jacobian_function ( DAEJacFunc  j)
inlineinherited

Definition at line 87 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(), integrate(), DASPK::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.

References x.

◆ 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

◆ abs_tol

Array<double> DASRT::abs_tol
private

Definition at line 124 of file DASRT.h.

Referenced by integrate().

◆ constr

DAERTConstrFunc DAERTFunc::constr
protectedinherited

Definition at line 82 of file DAERTFunc.h.

Referenced by DAERTFunc::operator=().

◆ fun

DAERHSFunc DAEFunc::fun
protectedinherited

Definition at line 96 of file DAEFunc.h.

Referenced by DAEFunc::operator=().

◆ info

Array<octave_f77_int_type> DASRT::info
private

Definition at line 118 of file DASRT.h.

Referenced by integrate().

◆ initialized

bool DASRT::initialized
private

Definition at line 111 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 119 of file DASRT.h.

Referenced by integrate().

◆ jac

DAEJacFunc DAEFunc::jac
protectedinherited

Definition at line 97 of file DAEFunc.h.

Referenced by DAEFunc::operator=().

◆ jroot

Array<octave_f77_int_type> DASRT::jroot
private

Definition at line 120 of file DASRT.h.

Referenced by integrate().

◆ liw

octave_f77_int_type DASRT::liw
private

Definition at line 113 of file DASRT.h.

Referenced by integrate().

◆ lrw

octave_f77_int_type DASRT::lrw
private

Definition at line 114 of file DASRT.h.

Referenced by integrate().

◆ ng

octave_f77_int_type DASRT::ng
private

Definition at line 116 of file DASRT.h.

Referenced by integrate().

◆ rel_tol

Array<double> DASRT::rel_tol
private

Definition at line 125 of file DASRT.h.

Referenced by integrate().

◆ reset

bool DAERTFunc::reset
protectedinherited

Definition at line 89 of file DAERTFunc.h.

Referenced by integrate(), and DAERTFunc::operator=().

◆ restart

bool base_diff_eqn::restart
protectedinherited

◆ rwork

Array<double> DASRT::rwork
private

Definition at line 122 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

◆ xdot

ColumnVector base_diff_alg_eqn::xdot
protectedinherited

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