SIMLIB/C++
3.07
|
#include <ni_euler.h>
Public Member Functions | |
EULER (const char *name) | |
virtual | ~EULER () |
virtual void | Integrate (void) override |
![]() | |
StatusMethod (const char *name) | |
initialization More... | |
virtual | ~StatusMethod () |
virtual void | TurnOff (void) override |
turn off integration method: flush memories etc... More... | |
virtual bool | PrepareStep (void) override |
prepare object for integration step More... | |
virtual void | StatusResize (size_t size) |
resize status memories to the given size More... | |
![]() | |
SingleStepMethod (const char *name) | |
virtual bool | IsSingleStep (void) override |
void | SetStartMode (bool start_mode) |
bool | IsStartMode (void) |
![]() | |
IntegrationMethod (const char *name) | |
register method to list of methods and name it More... | |
virtual | ~IntegrationMethod () |
destroy integration method (remove from list) More... | |
virtual void | Resize (size_t size) |
resize all the memories to the given size More... | |
Private Attributes | |
Memory | si |
Memory | di |
Memory | A |
StatusMemory | xi |
Additional Inherited Members | |
![]() | |
static void | StepSim (void) |
step of numerical integration method More... | |
static void | IntegrationDone (void) |
static void | SetMethod (const char *name) |
set method which will be used More... | |
static const char * | GetMethod (void) |
static void | InitStep (double step_frag) |
initialize step More... | |
static void | FunCall (double step_frag) |
static void | SetOptStep (double opt_step) |
static void | SetStepSize (double step_size) |
static bool | IsConditionFlag (void) |
static int | GetErrNo (void) |
static void | SetErrNo (int num) |
![]() | |
typedef StatusContainer::iterator | StatusIterator |
![]() | |
typedef IntegratorContainer::iterator | Iterator |
![]() | |
static StatusIterator | FirstStatus (void) |
static StatusIterator | LastStatus (void) |
static void | StoreState (Memory &di, Memory &si, StatusMemory &xi) |
store state of integrators and status variables More... | |
static void | RestoreState (double dthlf, Memory &di, Memory &si, StatusMemory &xi) |
restore state of integrators and status variables More... | |
static void | GoToState (Memory &di, Memory &si, StatusMemory &xi) |
move startpoint to given state More... | |
![]() | |
static Iterator | FirstIntegrator (void) |
static Iterator | LastIntegrator (void) |
static bool | StateCond (void) |
check on changes of state conditions More... | |
static IntegrationMethod * | SearchMethod (const char *name) |
search method in the list of registrated methods More... | |
![]() | |
static bool | IsEndStepEvent =false |
Definition at line 22 of file ni_euler.h.
|
inline |
Definition at line 27 of file ni_euler.h.
|
inlinevirtual |
Definition at line 30 of file ni_euler.h.
References Integrate().
|
overridevirtual |
Implements simlib3::IntegrationMethod.
Definition at line 46 of file ni_euler.cc.
References simlib3::_Print(), _SetTime, A, simlib3::AccuracyError, di, Dprintf, simlib3::IntegrationMethod::FirstIntegrator(), simlib3::StatusMethod::GoToState(), simlib3::IntegrationMethod::IsEndStepEvent, simlib3::SingleStepMethod::IsStartMode(), simlib3::IntegrationMethod::LastIntegrator(), simlib3::max(), simlib3::min(), simlib3::OptStep, simlib3::StatusMethod::RestoreState(), si, simlib3::SIMLIB_AbsoluteError, simlib3::SIMLIB_ConditionFlag, simlib3::SIMLIB_ContractStep, simlib3::SIMLIB_ContractStepFlag, simlib3::SIMLIB_DeltaTime, simlib3::SIMLIB_Dynamic(), simlib3::SIMLIB_ERRNO, simlib3::SIMLIB_MaxStep, simlib3::SIMLIB_MinStep, simlib3::SIMLIB_OptStep, simlib3::SIMLIB_RelativeError, simlib3::SIMLIB_StepSize, simlib3::SIMLIB_StepStartTime, simlib3::SIMLIB_warning(), simlib3::IntegrationMethod::StateCond(), simlib3::StatusMethod::StoreState(), simlib3::Time, and xi.
Referenced by ~EULER().
|
private |
Definition at line 24 of file ni_euler.h.
Referenced by Integrate().
|
private |
Definition at line 24 of file ni_euler.h.
Referenced by Integrate().
|
private |
Definition at line 24 of file ni_euler.h.
Referenced by Integrate().
|
private |
Definition at line 25 of file ni_euler.h.
Referenced by Integrate().