-
-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Thermo] Fix pure fluid state restoration after property calculation
After calculating properties using finite differences (e.g. cp), the fluid was returned to its original state by setting the state in terms of pressure and temperature. However, because setting the state using these variables is an iterative calculation with some error tolerance, the state was not restored exactly. By restoring the state based on the initial temperature and density, the restored state is identical to the initial state.
- Loading branch information
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters