-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Specification block not updated / solved #395
Comments
@andr1976 the spec is a hack. It is triggered after the source object is calculated. The final result will depend on the calculation order and how the specs are connected. I do not recommend using specs (I don't do it). |
Uhh, what a shame - I find this the only simple way of avoiding too many independent specs in a flowsheet |
I still think this is a bug since the behaviour is unpredictable and not as expected - with a specifier you actually expect the specification to be set after the solver has been called, but this is not always the case apparently. |
It depends. When I had the idea to add the spec, I thought that the user would want to set a property of an object far away and ahead of the source in a well-defined flowsheet but, of course, people are using the spec for everything you can imagine. Your sample is a total hack and unexpected use case, but I understand what you want to do. Again, python scripts are perfectly suited for what you want but I also understand that you don't want to use them. 🙂 |
a script triggered after "1" finishes calculating would do the trick:
|
Ok I get your point, believe me I do want to use Python scripting :-) |
@andr1976 I've added a new field to flowsheet settings, it should suit your needs. |
Wuhuuu, thats just awesome Daniel :-) |
Now I am just being greedy here, could something similar be applied to the spreadsheet, that any imported/exported properties are updated after the solver finishes, before a final solver run to ensure everything has been updated? I know this is a separate topic. |
@andr1976 maybe, if you reconsider your recent patreon decision... 🧐 👀 you know I have a lot of DWSIM and non-DWSIM stuff to do. |
Or maybe just consider moving to DK and come work with me - we will do great things my friend, my ramblings and your ingenuity :-) |
@andr1976 pay me 10K €/month and I'll be there |
I don't see that option on Patreon, ah haha - maybe DM is better if we should continue this conversation :-) |
@andr1976 just kidding. I'll see what I can do about th spreadsheet 😄👍🏻 |
Describe the bug
When using specification block, these are not (always) updated with the solver. Some are , some are not
Expected behavior
All specification blocks should update when solver is invoked
Screenshots
![image](https://user-images.githubusercontent.com/58475535/205584165-29f18ac4-2b98-428f-9424-a4f4b0bf31cb.png)
Desktop (please complete the following information):
See attached file
Hydrogen_density.zip
The text was updated successfully, but these errors were encountered: