64#include <fhsim/simobject/SimObject.h>
65#include "SignalBlock.h"
74 CDerivative(std::string sSimObjectName, ISimObjectCreator* pCreator);
77 void OdeFcn(
const double dT,
const double*
const adX,
double*
const adXDot)
const { }
79 const double* Output(
const double T,
const double*
const X);
81 void AcceptedStep(
const double T,
const double*
const X)
override;
Definition CDerivative.h:71
double m_LastStepTime
The time of the last accepted step (the start time before the first step).
Definition CDerivative.h:91
std::vector< double > m_LastDerivative
The difference over the last accepted step.
Definition CDerivative.h:90
CDerivative(std::string sSimObjectName, ISimObjectCreator *pCreator)
Constructor.
std::vector< double > m_LastStepInput
The input at the last accepted step.
Definition CDerivative.h:89
void StartHistory(const double T, const double *const In)
Sets the memory to the input In at time T, with derivative 0.
bool m_HasHistory
False until the first evaluation, which is at the start time.
Definition CDerivative.h:92
Definition SignalBlock.h:18