Open t-sommer opened 1 month ago
According to the table in 3.2.1. State: Continuous-Time Mode it is allowed to set continuous states in continuous time mode via fmi3SetFloat:
fmi3SetFloat
Set continuous-time states xc(t): fmi3SetFloat64, fmi3SetContinuousStates
however the description for fmi3Set{VariableType} contradicts this
fmi3Set{VariableType}
Function fmi3Set{VariableType} Only for variables with causality = input and variability = continuous.
see also https://github.com/modelica/Reference-FMUs/issues/508
Proposal by @KarlWernersson: allow setVariable{VariableType} for continuous time states as well (regardless of attributes) as defined by the <ContinuousStateDerivative> in the Model Structure.
setVariable{VariableType}
<ContinuousStateDerivative>
According to the table in 3.2.1. State: Continuous-Time Mode it is allowed to set continuous states in continuous time mode via
fmi3SetFloat
:however the description for
fmi3Set{VariableType}
contradicts thissee also https://github.com/modelica/Reference-FMUs/issues/508