FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
CLinearSystem Class Reference
+ Inheritance diagram for CLinearSystem:
+ Collaboration diagram for CLinearSystem:

Public Member Functions

EIGEN_MAKE_ALIGNED_OPERATOR_NEW CLinearSystem (std::string sSimObjectName, ISimObjectCreator *pCreator)
 Constructor.
 
void OdeFcn (const double dT, const double *const adX, double *const adXDot) const
 Calculates the state derivatives.
 
bool HasJacobians () const override
 
void OdeJacobian (double T, const double *X, double *J, int nStates) override
 
int GetJacobianSparsity (int nStates, int *rowPtr, int *colIdx) override
 
bool HasPortJacobians () const override
 
void OutputPortJacobian (const std::string &portName, double T, const double *X, double *dPort_dX, int portSize, int nStates, int index=-1) override
 
void InputPortJacobian (const std::string &portName, double T, const double *X, double *dF_dInput, int portSize, int nStates) override
 
const double * Output (const double T, const double *const X)
 The output of the system equation Y=C*x+D*u.
 

Static Protected Member Functions

static Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > StringToEigenMatrix (const std::string &str)
 

Protected Attributes

int m_StateIndex
 
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > A
 The system matrix.
 
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > B
 The gain matrix.
 
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > C
 The output matrix.
 
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > D
 The direct feedthrough matrix.
 
ISignalPort * m_Input
 Input port.
 
double * m_Signal
 

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