Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify which variables can be set in Continuous Time Mode #1952

Closed
t-sommer opened this issue Jun 4, 2024 · 1 comment · Fixed by #1956
Closed

Clarify which variables can be set in Continuous Time Mode #1952

t-sommer opened this issue Jun 4, 2024 · 1 comment · Fixed by #1956
Assignees
Labels
bug Something isn't working
Milestone

Comments

@t-sommer
Copy link
Collaborator

t-sommer commented Jun 4, 2024

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:

Set continuous-time states xc(t): fmi3SetFloat64, fmi3SetContinuousStates

however the description for fmi3Set{VariableType} contradicts this

Function fmi3Set{VariableType}
Only for variables with causality = input and variability = continuous.

see also modelica/Reference-FMUs#508

@t-sommer t-sommer added the bug Something isn't working label Jun 4, 2024
@t-sommer
Copy link
Collaborator Author

t-sommer commented Jun 4, 2024

Proposal by @KarlWernersson: allow setVariable{VariableType} for continuous time states as well (regardless of attributes) as defined by the <ContinuousStateDerivative> in the Model Structure.

@t-sommer t-sommer added this to the v3.0.2 milestone Jun 4, 2024
@t-sommer t-sommer self-assigned this Jun 4, 2024
t-sommer added a commit to t-sommer/fmi-standard that referenced this issue Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant