template<int N> class qoden2

A second order quantized ODE solver based on the 2nd order Adams-Bashforth method.

Public Methods

[more] qoden2()
Create a solver for a set of N ODEs
[more] qoden2(const qoden2<N>& src)
Copy constructor
[more]const qoden2<N> & operator=(const qoden2<N>& src)
Assigment operator
[more]void init(const double* q0, const double* dq0)
Initial the integrator set.
[more]void init(unsigned j, double q0, double dq0 = 0.0)
Initialize the jth integrator
[more]void integ(double dt, const double* dq_)
Integrate over dt (dt <= ta()) units of time with derivatives dq.
[more]void integ(double dt)
Integrate over dt (dt <= ta()) units of time with unchanged derivatives.
[more]double out(unsigned j = 0) const
Return the quantized output for integrator j at time tL + ta(), where tL was the time of the last state change
[more]double out(unsigned j, double dt) const
Return the quantized output for integrator j at time tL + dt, dt <= ta()
[more]double state(unsigned j = 0) const
Return the state of the integrator at time tL
[more]double ta() const
The time advance function for the ODE set.
[more]void setParams(unsigned j, double D_)
Set the parameters for iterator j (see qintg)
[more]void setParams(double D_)
Set the parameters for all integrators (see qintg)
[more] ~qoden2()


Documentation

A second order quantized ODE solver based on the 2nd order Adams-Bashforth method. The qoden uses a set of quantized integrators to provide a solution to a set of ordinary differential equations. This solver differs from the qode solver in that it uses a box in N-dimensional space to determine significant events.
o qoden2()
Create a solver for a set of N ODEs

o qoden2(const qoden2<N>& src)
Copy constructor

oconst qoden2<N> & operator=(const qoden2<N>& src)
Assigment operator

ovoid init(const double* q0, const double* dq0)
Initial the integrator set. q0 is the initial state, dq0 are the initial derivatives.

ovoid init(unsigned j, double q0, double dq0 = 0.0)
Initialize the jth integrator

ovoid integ(double dt, const double* dq_)
Integrate over dt (dt <= ta()) units of time with derivatives dq.

ovoid integ(double dt)
Integrate over dt (dt <= ta()) units of time with unchanged derivatives.

odouble out(unsigned j = 0) const
Return the quantized output for integrator j at time tL + ta(), where tL was the time of the last state change

odouble out(unsigned j, double dt) const
Return the quantized output for integrator j at time tL + dt, dt <= ta()

odouble state(unsigned j = 0) const
Return the state of the integrator at time tL

odouble ta() const
The time advance function for the ODE set.

ovoid setParams(unsigned j, double D_)
Set the parameters for iterator j (see qintg)

ovoid setParams(double D_)
Set the parameters for all integrators (see qintg)

o ~qoden2()


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.