-
-
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.
Add MATLAB interface to the setState_RP function
- Loading branch information
1 parent
ca6e228
commit 6082726
Showing
5 changed files
with
32 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
function setState_RP(tp, rp) | ||
% SETSTATE_RP Set the density and pressure. | ||
% setState_RP(tp, [density,p]) | ||
% The density is set first, then the pressure is set by | ||
% changing the temperature holding the density and | ||
% chemical composition fixed. | ||
% | ||
% :param tp: | ||
% Instance of class :mat:func:`ThermoPhase` (or another | ||
% class derived from ThermoPhase) | ||
% :param rp: | ||
% Vector of length 2 containing the desired values for the density (kg/m^3) | ||
% and pressure (Pa) | ||
% | ||
|
||
thermo_set(tp.tp_id, 26, rp); |
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
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