DPsim
Loading...
Searching...
No Matches
CPS::ODEInterface Class Referenceabstract
Inheritance diagram for CPS::ODEInterface:
[legend]
Collaboration diagram for CPS::ODEInterface:
[legend]

Public Types

using Ptr = std::shared_ptr<ODEInterface>
 
using StSpFn = std::function<void(double, const double *, double *)>
 Use this to pass the individual components StateSpace implementation to the ODESolver class.
 
using JacFn
 

Public Member Functions

virtual void odeStateSpace (double t, const double y[], double ydot[])=0
 State Space Equation System for ODE Solver.
 
virtual void odeJacobian (double t, const double y[], double fy[], double J[], double tmp1[], double tmp2[], double tmp3[])=0
 Jacobian Matrix (of State Space System) needed for implicit solve.
 

Public Attributes

const CPS::AttributeList::Ptr mAttributeList
 
const CPS::Attribute< Matrix >::Ptr mOdePreState
 
const CPS::Attribute< Matrix >::Ptr mOdePostState
 

Protected Member Functions

 ODEInterface (AttributeList::Ptr attrList)
 

Detailed Description

Definition at line 16 of file ODEInterface.h.

Member Typedef Documentation

◆ JacFn

using CPS::ODEInterface::JacFn
Initial value:
std::function<void(double, const double *, double *, double *,
double *, double *, double *)>

Definition at line 29 of file ODEInterface.h.

◆ Ptr

using CPS::ODEInterface::Ptr = std::shared_ptr<ODEInterface>

Definition at line 18 of file ODEInterface.h.

◆ StSpFn

using CPS::ODEInterface::StSpFn = std::function<void(double, const double *, double *)>

Use this to pass the individual components StateSpace implementation to the ODESolver class.

Definition at line 27 of file ODEInterface.h.

Constructor & Destructor Documentation

◆ ODEInterface()

CPS::ODEInterface::ODEInterface ( AttributeList::Ptr attrList)
inlineexplicitprotected

Definition at line 41 of file ODEInterface.h.

Member Function Documentation

◆ odeJacobian()

virtual void CPS::ODEInterface::odeJacobian ( double t,
const double y[],
double fy[],
double J[],
double tmp1[],
double tmp2[],
double tmp3[] )
pure virtual

Jacobian Matrix (of State Space System) needed for implicit solve.

Implemented in CPS::DP::Ph3::SynchronGeneratorDQODE, and CPS::EMT::Ph3::SynchronGeneratorDQODE.

◆ odeStateSpace()

virtual void CPS::ODEInterface::odeStateSpace ( double t,
const double y[],
double ydot[] )
pure virtual

State Space Equation System for ODE Solver.

Implemented in CPS::DP::Ph3::SynchronGeneratorDQODE, and CPS::EMT::Ph3::SynchronGeneratorDQODE.

Member Data Documentation

◆ mAttributeList

const CPS::AttributeList::Ptr CPS::ODEInterface::mAttributeList

Definition at line 21 of file ODEInterface.h.

◆ mOdePostState

const CPS::Attribute<Matrix>::Ptr CPS::ODEInterface::mOdePostState

Definition at line 24 of file ODEInterface.h.

◆ mOdePreState

const CPS::Attribute<Matrix>::Ptr CPS::ODEInterface::mOdePreState

Definition at line 23 of file ODEInterface.h.


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