|
|
| CStep (std::string sSimObjectName, ISimObjectCreator *pCreator) |
| | The constructor sets the pointer to the output object and the parser object.
|
| |
| void | OdeFcn (const double dT, const double *const adX, double *const adXDot) const |
| | Calculates the state derivatives.
|
| |
|
| CSrcBase (std::string sSimObjectName, ISimObjectCreator *pCreator) |
| | The constructor.
|
| |
|
virtual | ~CSrcBase () |
| | The destructor.
|
| |
| | SignalBlock (const std::string &name, ISimObjectCreator *creator, PortWidthRule rule=PortWidthRule::DefaultOne) |
| |
|
| void | CalcOutput (const double dT, const double *const adX) |
| | Calculations of the output signals.
|
| |
|
bool | ReadTwinParameters (std::string sTagA, double dDefaultA, std::string sTagB, double dDefaultB, std::vector< double > &vals, ISimObjectCreator *pCreator) |
| | Utility function to read a parameter with two possible representations or units.
|
| |
|
virtual const double * | Signal (const double dT, const double *const adX) |
| | The output signal.
|
| |
|
virtual const double * | SignalDot (const double dT, const double *const adX) |
| | The derivative of the output signal.
|
| |
|
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 |
| |
|
| std::vector< double > | m_adStartValues |
| |
| std::vector< double > | m_adStopValues |
| |
| std::vector< double > | m_adStartTimes |
| |
| std::vector< double > | m_adStopTimes |
| |
|
std::vector< double > | m_outDot |
| | The derivative of the output signal (the output signal is m_out).
|
| |
|
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.
|
| |
|
| enum class | PortWidthRule { DefaultOne
, Required
} |
| | Whether the parameter PortWidth must be in the input file. More...
|
| |
| 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.
|
| |
◆ CalcOutput()
| void CStep::CalcOutput |
( |
const double |
dT, |
|
|
const double *const |
adX |
|
) |
| |
|
protectedvirtual |
◆ OdeFcn()
| void CStep::OdeFcn |
( |
const double |
dT, |
|
|
const double *const |
adX, |
|
|
double *const |
adXDot |
|
) |
| const |
|
inlinevirtual |
◆ m_adStartTimes
| std::vector<double> CStep::m_adStartTimes |
|
protected |
The time to start the step. This may either be a scalar, or a comma separated list referrint to the different elements of the signal.
◆ m_adStartValues
| std::vector<double> CStep::m_adStartValues |
|
protected |
The start value of the output port. This may either be a scalar, or a comma separated list refering to the different elements of the signal.
◆ m_adStopTimes
| std::vector<double> CStep::m_adStopTimes |
|
protected |
The time to stop the step. This may either be a scalar, or a comma separated list referrint to the different elements of the signal. If this is negative, this is a true step function with unlimited duration. If it is larger than zero, it is a pulse function, which goes back to the StartValue after the StopTime.
◆ m_adStopValues
| std::vector<double> CStep::m_adStopValues |
|
protected |
The stop value of the output port. This may either be a scalar, or a comma separated list refering to the different elements of the signal.
The documentation for this class was generated from the following file:
- webfhsim/reloadrepos/fhsim_base/src/source/CStep.h