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

Error in generated modelica Code: MediumAir = MediumAir #23

Open
pfannkuch3n opened this issue Mar 11, 2025 · 0 comments
Open

Error in generated modelica Code: MediumAir = MediumAir #23

pfannkuch3n opened this issue Mar 11, 2025 · 0 comments

Comments

@pfannkuch3n
Copy link

Description

Generated modelica code states MediumAir = Medium air
This throws error in dymola, since MediumAir is not defined

Caused by

Unsufficient mako template generation, since mediums are treated as names and not variables:

def __generate_package_string(self, packages):
package_str = ""
for package in set(packages):
package_str = package_str + str(
f" redeclare package {package} = {package},\n")
return package_str

pfannkuch3n added a commit to pfannkuch3n/uesgraphs that referenced this issue Mar 11, 2025
Both pacakges are added to the header of modelica file
Only works when Heatpump or Heapum are part of supply template title
Does not work together with sim_setup
Just quick solution
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