11 #include <dpsim-models/Definitions.h>
17 typedef std::shared_ptr<ODEintInterface> Ptr;
18 using stateFnc = std::function<void(
const double *,
double *,
const double)>;
24 virtual void odeint(
const double y[],
double ydot[],
double t) = 0;
virtual int num_states() const =0
Returns number of differential variables.
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 pre_step()=0
Needed for computations which have to be carried out before the numerical approximation step.
virtual void set_state_vector(std::vector< double > y)=0
Writes the computed solution to the component.
virtual void odeint(const double y[], double ydot[], double t)=0
Sets up ODE system in ydot.