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

Conditional component used in an equation #25

Open
maltelenz opened this issue Dec 12, 2023 · 0 comments
Open

Conditional component used in an equation #25

maltelenz opened this issue Dec 12, 2023 · 0 comments

Comments

@maltelenz
Copy link
Contributor

maltelenz commented Dec 12, 2023

Here, partialArc is used in an equation:

w = Kt*partialArc*sqrt(Medium.pressure(steamState_in)*Medium.density(

It is declared here as a conditional component:

Modelica.Blocks.Interfaces.RealInput partialArc if usePartialArcInput

This is illegal Modelica:

A component declared with a condition-attribute can only be modified and/or used in connections.

Edit: I realize now that it is also part of the abandoned package mentioned here: #17 (comment)

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

No branches or pull requests

1 participant