power_balance.modelica_templating#
Source: power_balance/modelica_templating/__init__.py
Power Balance Models Model Modification
Modifies the modelica sources for more easy API based object creation
load_model_as_template#
load_model_as_template(model_file: str) -> jinja2.environment.Template
Loads the specified model into a Jinja template Modelica models containing Jinja statements are loaded into a Jinja template which can then be filled.
Parameters#
-
model_file
:str
name of the model file to load (not path) without suffix, e.g. Magnets
Returns#
-
jinja2.environment.Template
a Jinja template which can be rendered with values
Last update:
April 1, 2022