Skip to content

Conversation

MartinOtter
Copy link
Member

No description provided.

…raic variables) as hidden state, and do no longer generate code for it.

- Added function removeHiddenStates(equationInfo).
- Remove hidden states, before parameters are evaluated with propagateEvaluateAndInstantiate!(..).
- Rename function addOrUpdateStateInfo(..) to addState(..).
- Remove not used vector x_infoByIndex from EquationInfo.
…deepCopy is performed now on all arguments of addToResult(..)
…ove "nominal" column from logStates output, since nominal has no effect currently.
…instantiated SimulationModel is generated that is passed to propagateEvaluateAndInstantiate!(..) for _instantiateFunction(..).
…, since x_hidden an derx_hidden have the same element indices.
… message, if core.eval(..) fails, e.g. due to a wrong user input.
…result; better error messages in propagateEvaluateAndInstantiate!(..)
- The initial state vector was not always correctly filled with start/init values of the model (is now fixed).
- signalNames(..) did sometimes not show the correct signal names available in the result (is now fixed).
- Parameters are no longer seen as part of the result (e.g. signalNames(..) does not return parameters).
- Parameters can be accessed with new functions: hasParameter, getParameter, getEvaluatedParameter, showParameter, showEvaluatedParameter
- More tests in Modia/test/TestLinearSystems.jl
- Replacing "using Test" by "using Modia.Test" in the test models.
- @showModel: Number arrays are printed in a nicer way.
- Docu Modia/Functions improved
…er(a.b.c)`, has now the correct name `a.b.der(c)`

in the result. For example, the plot command needs to be changed to `plot(..., "a.b.der(c)")` instead of the previous
command `plot(..., "der(a.b.c)")`.
- newExtraResult!(..., defaultExtraResult): Add argument defaultExtraResult and push! it on result_extra_temp
- Rename addZeroCrossings to newZeroCrossing (for consistent naming convention)
- New function getStateStartIndexFromHiddenStateStartIndex(..)
…ement that is printed in case of an error, since printing with units is nearly unreadable.
MartinOtter and others added 28 commits June 29, 2022 07:56
…in TestFirstOrder2.jl (especially, writing signals to file)
@MartinOtter MartinOtter merged commit 958fad1 into main Jul 5, 2022
@MartinOtter MartinOtter deleted the mo_states_in_model_functions branch July 10, 2022 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant