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

Set and read simulation start and stop times from a Dymola dsin.txt #25

Closed
arnoutaertgeerts opened this issue Dec 19, 2014 · 4 comments
Closed

Comments

@arnoutaertgeerts
Copy link
Collaborator

The simulator.run() method should be able to set start and stop times for the simulation. This can be done by changing their respective values in the corresponding dsin.txt if we extend the write_params() method. For example:

import modelicares.exps.write_params as write_params
write_params({
  'StartTime': 0,
  'StopTime': 1000
}

I'm no expert in these file manipulations so could you @kdavies4 have a look at how to efficiently implement this?

@arnoutaertgeerts
Copy link
Collaborator Author

This seams to be working already :) Closing this!

@arnoutaertgeerts
Copy link
Collaborator Author

I'm able to write the start and stop times but unable to read them, is this possible?

@kdavies4
Copy link
Owner

Sure, that's a possible problem. I'm taking a look.

@kdavies4
Copy link
Owner

Good catch. I fixed this in d15acbf.

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

2 participants