Struct DEStateView

Struct Documentation

struct DEStateView

A non-owning container that groups references to the dynamical state of differential equation system.

It’s intended to passing around the current state of a system while avoiding repetitive argument passing in function signatures.

Public Functions

inline DEStateView(realtype &t_, AmiVector &x_, AmiVector &dx_)

Construct a DEStateView from references to state, derivative, and time.

Parameters:
  • t_ – Reference to the simulation time.

  • x_ – Reference to the state vector.

  • dx_ – Reference to the state derivative.

inline DEStateView(SolutionState &sol)

Construct a DEStateView from a SolutionState reference.

Parameters:

sol

Public Members

realtype &t

Reference to the current simulation time ( t ).

AmiVector &x

Reference to the state vector ( x(t) ).

AmiVector &dx

Reference to the time derivative of the state vector (DAE)