#include <eulersolver.h>
|
| GenericEulerSolver (double stepSize, bool adaptive) |
|
| GenericEulerSolver (int dimension, Function function, void *params, double stepSize, bool adaptive) |
|
| GenericEulerSolver (const GenericEulerSolver &eulerSolver) |
|
| ~GenericEulerSolver () |
|
int | doCalcFn (double *t, const VectorXd *y, const VectorXd *yvar=0, VectorXd *f=0, VectorXd *fvar=0) |
|
int | doEvolve (double *t, double t1, VectorXd *y, VectorXd *yvar) |
|
void | setDimension (int dimension) |
|
| Solver (int dimension=0, Function function=NULL, void *params=NULL, double stepSize=0.001) |
|
| Solver (double stepSize) |
|
virtual | ~Solver () |
|
int | dimension () const |
|
Function | function () const |
|
double | localError () const |
|
double | localErrorRatio () const |
|
void * | params () const |
|
virtual void | setFunction (Function function) |
|
virtual void | setParams (void *params) |
|
virtual void | setStepSize (double stepSize) |
|
virtual void | setToleranceAbs (double toleranceAbs) |
|
virtual void | setToleranceRel (double toleranceRel) |
|
QString | solverType () const |
|
double | stepSize () const |
|
double | toleranceAbs () const |
|
double | toleranceRel () const |
|
| Object (const QString &name=QString()) |
|
virtual | ~Object () |
|
const QString & | name () const |
|
void | setName (const QString &name) |
|
|
enum | {
OK = 0,
ToleranceError = 2048,
InternalError = 2049,
CollisionDetected = 4096,
IntersectionDetected = 4097,
Aborted = 8192,
CollisionError = 16384,
ConstraintError = 32768
} |
|
typedef int(* | Function )(double t, const double *y, const double *yvar, double *f, double *fvar, void *params) |
|
StepCore::GenericEulerSolver::GenericEulerSolver |
( |
double |
stepSize, |
|
|
bool |
adaptive |
|
) |
| |
|
inline |
StepCore::GenericEulerSolver::GenericEulerSolver |
( |
int |
dimension, |
|
|
Function |
function, |
|
|
void * |
params, |
|
|
double |
stepSize, |
|
|
bool |
adaptive |
|
) |
| |
|
inline |
StepCore::GenericEulerSolver::GenericEulerSolver |
( |
const GenericEulerSolver & |
eulerSolver | ) |
|
|
inline |
StepCore::GenericEulerSolver::~GenericEulerSolver |
( |
| ) |
|
|
inline |
int StepCore::GenericEulerSolver::doEvolve |
( |
double * |
t, |
|
|
double |
t1, |
|
|
VectorXd * |
y, |
|
|
VectorXd * |
yvar |
|
) |
| |
|
virtual |
Integrate.
- Parameters
-
t | Current time (will be updated by the new value) |
t1 | Target time |
y | Function value |
yvar | Function variance |
- Returns
- Solver::OK on success, error status on failure
- Todo:
- Provide error message
Implements StepCore::Solver.
Definition at line 115 of file eulersolver.cc.
int StepCore::GenericEulerSolver::doStep |
( |
double |
t, |
|
|
double |
stepSize, |
|
|
VectorXd * |
y, |
|
|
VectorXd * |
yvar |
|
) |
| |
|
protected |
void StepCore::GenericEulerSolver::fini |
( |
| ) |
|
|
protected |
void StepCore::GenericEulerSolver::init |
( |
| ) |
|
|
protected |
void StepCore::GenericEulerSolver::setDimension |
( |
int |
dimension | ) |
|
|
inlinevirtual |
bool StepCore::GenericEulerSolver::_adaptive |
|
protected |
VectorXd StepCore::GenericEulerSolver::_ydiff |
|
protected |
VectorXd StepCore::GenericEulerSolver::_ydiffvar |
|
protected |
VectorXd StepCore::GenericEulerSolver::_yerr |
|
protected |
VectorXd StepCore::GenericEulerSolver::_ytemp |
|
protected |
VectorXd StepCore::GenericEulerSolver::_ytempvar |
|
protected |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:43 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.