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

Public Member Functions

 CMathfunction (std::string sSimObjectName, ISimObjectCreator *pCreator)
 Constructor.
 
virtual void OdeFcn (const double dT, const double *const adX, double *const adXDot) const
 
const double * Output (const double T, const double *const X)
 
- Public Member Functions inherited from fhsim_base::SignalBlock
 SignalBlock (const std::string &name, ISimObjectCreator *creator, PortWidthRule rule=PortWidthRule::DefaultOne)
 

Protected Types

enum  EMathType {
  MathType_Exp , MathType_Log , MathType_Log10 , MathType_Pow ,
  MathType_Sqrt , MathType_Root
}
 < Enumerator for the kind of mathoperation
 

Protected Attributes

ISignalPort * m_Input1
 
ISignalPort * m_Input2
 
int m_iNumInports
 Number of Inputports.
 
EMathType m_EMathType
 
- Protected Attributes inherited from fhsim_base::SignalBlock
std::vector< double > m_out
 The output buffer, PortWidth() elements. A block may resize it, for example to the width of an output port that differs from PortWidth.
 

Additional Inherited Members

- Public Types inherited from fhsim_base::SignalBlock
enum class  PortWidthRule { DefaultOne , Required }
 Whether the parameter PortWidth must be in the input file. More...
 
- Static Public Member Functions inherited from fhsim_base::SignalBlock
static int ReadCount (ISimObjectCreator *creator, const std::string &name, int defaultValue)
 
static int ReadCount (ISimObjectCreator *creator, const std::string &name)
 As above for a count that must be in the file.
 
- Protected Member Functions inherited from fhsim_base::SignalBlock
int PortWidth () const
 The number of elements in the signals of the block (the parameter PortWidth).
 
std::vector< double > ReadScalarOrVector (ISimObjectCreator *creator, const std::string &name, double defaultValue) const
 
std::vector< double > ReadScalarOrVector (ISimObjectCreator *creator, const std::string &name) const
 

Member Data Documentation

◆ m_EMathType

EMathType CMathfunction::m_EMathType
protected

Membervariable, defines the mathoperation, which is


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