DPsim
Public Types | Public Member Functions | List of all members
CPS::ODEintInterface Class Referenceabstract

Public Types

typedef std::shared_ptr< ODEintInterfacePtr
 
using stateFnc = std::function< void(const double *, double *, const double)>
 

Public Member Functions

virtual int num_states () const =0
 Returns number of differential variables.
 
virtual void odeint (const double y[], double ydot[], double t)=0
 Sets up ODE system in ydot.
 
virtual void pre_step ()=0
 Needed for computations which have to be carried out before the numerical approximation step.
 
virtual void post_step ()=0
 Writes the values from the constructed state vector back into the original fields.
 
virtual double * state_vector ()=0
 Returns Pointer to state Vector of the componente.
 
virtual void set_state_vector (std::vector< double > y)=0
 Writes the computed solution to the component.
 

Detailed Description

Definition at line 15 of file ODEintInterface.h.


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