FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
CMathfunction.h
1#ifndef CMathfunction_H
2#define CMathfunction_H
3
73#include <fhsim/simobject/SimObject.h>
74
75#include <math.h>
76#include <string>
77
78class CMathfunction : public SimObject
79{
80 public:
82 CMathfunction(std::string sSimObjectName, ISimObjectCreator* pCreator);
84 virtual void OdeFcn(const double dT, const double* const adX, double* const adXDot) const { }
85
86 const double* Output(const double T, const double* const X);
87
88
89
90 protected:
91 ISignalPort* m_Input1;
92 ISignalPort* m_Input2;
93
94 double* m_Signal;
95
99
101 {
102 MathType_Exp,
103 MathType_Log,
104 MathType_Log10,
105 MathType_Pow,
106 MathType_Sqrt,
107 MathType_Root,
108 };
111};
112
113
114#endif
Definition CMathfunction.h:79
int m_iPortWidth
Definition CMathfunction.h:97
int m_iNumInports
Number of Inputports.
Definition CMathfunction.h:98
CMathfunction(std::string sSimObjectName, ISimObjectCreator *pCreator)
Constructor.
EMathType m_EMathType
Definition CMathfunction.h:109
EMathType
< Enumerator for the kind of mathoperation
Definition CMathfunction.h:101