Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[matlab] Redirect RP setter to thermo_set_DP
- Loading branch information
Showing
4 changed files
with
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
function setState_DP(tp, dp) | ||
% SETSTATE_DP Set the density and pressure. | ||
% setState_DP(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 dp: | ||
% Vector of length 2 containing the desired values for the density (kg/m^3) | ||
% and pressure (Pa) | ||
% | ||
|
||
thermo_set(tp.tp_id, 26, dp); |
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