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

add st_simulate option to list settable parameters #65

Open
jdpipe opened this issue Jan 21, 2018 · 0 comments
Open

add st_simulate option to list settable parameters #65

jdpipe opened this issue Jan 21, 2018 · 0 comments

Comments

@jdpipe
Copy link
Member

jdpipe commented Jan 21, 2018

The class solartherm.simulation.Simulator reads and modifies the _init.xml files used by the modelica executables. These files contain XML describing the parameters and variables in the simulation, including the descriptions as extracted from the Modelica code.

By using the XML XPATH features, it should be possible to quickly and easily list out the parameters that are available for modification by the user, (isValueChangeable="true") eg

st_simulate --list-params SimpleSystem.mo

This would compile the model (or bypass) which creates the _init.xml file, then read the file and check for suitable variables. It would then output the names of those parameters, similarly to

st_plotmat -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant