fmiEventUpdate
Get an occurred event.
Calling Sequence
eventInfo = fmiEventUpdate(instance, intermediateResults)
Arguments
- instance
tlist, an instance of a model.
- intermediateResults
boolean, intermediateResults =
%tor%f.- callEventUpdate
mlist, an information about an event. For more details see fmiInitialize.
Description
fmiEventUpdate is the function that is called after time, state or step event occurred. This function returns with
eventInfo (for details see function fmiInitialize).
If intermediateResults = false, the function returns once new consistent state has been found and the integration can be restarted.
If the argument is true, then the function returns for every event iteration that is performed internally,
in order to allow to get result variables after every iteration with the fmiGetXXX functions above.
The function has to be called successively then until eventInfo->iterationConverged = true and has
to return the final status of eventInfo->stateValueReferencesChanged and of
eventInfo->stateValuesChanged.
See Also
- fmiGetDerivatives — Compute derivative states.
- fmiGetEventIndicators — Compute event indicators.
- fmiGetStateValueRefs — Get the value references of the state vector.
| Report an issue | ||
| << fmiDoStep | Functional Mock-up Interface (FMU) | fmiFreeModelInstance >> |