A utility like a phase envelope takes a long time to solve, relatively speaking. We are talking here of something like 1 second, some envelopes, especially if they have the hydrate curve as well may take significantly more time. If your model only does a single calculation pass, one second wouldn't register as something that slows down your model. But, if the stream the phase envelope is attached to is located inside one or more loops, the situation is different. The model could easily calculate that stream 25 times and it will recalculate the phase envelope 25 times. So, the model solve will take 25 seconds, just for the phase envelope.
In most models, there is no need for that phase envelope to solve every time the stream solves, you only need that result for the final stream composition. Fortunately you can tell the simulator that is the case. You change the calculation level to a high number.
However, most people don't know about these and for utilities they are fairly hidden. Here is how to change them:
Go to the workbook and use the menu or ribbon bar to access the setup
On the left in the view, click Add and add a page for utility objects (no need to select a specific type). Then move to the right in the. View and Add there to add more variables, the calculation level (Calc level) should show up in the list. Select that, add it and close the view(s). You'll see the default value is 501, increase that to 1e6 or so for each utility you only need at the end.
Now your model should solve a lot faster. Remember that this works for any utility.
No comments:
Post a Comment