-
-
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.
[Matlab] Add interface to the new PureFluid property pairs
- Loading branch information
1 parent
f85c5ed
commit 37e488a
Showing
9 changed files
with
119 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,12 @@ | ||
function setState_PV(tp, pv) | ||
% SETSTATE_PV Set the pressure and specific volume. | ||
% setState_PV(tp,pv) | ||
% :param tp: | ||
% Instance of class :mat:func:`ThermoPhase` (or another | ||
% class derived from ThermoPhase) | ||
% :param pv: | ||
% Vector of length 2 containing the desired values for the | ||
% pressure (Pa) and specific volume (m^3/kg). | ||
% | ||
|
||
thermo_set(tp.tp_id, 29, pv); |
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,12 @@ | ||
function setState_SH(tp, sh) | ||
% SETSTATE_SH Set the specific entropy and specific enthalpy. | ||
% setState_SH(tp,sh) | ||
% :param tp: | ||
% Instance of class :mat:func:`ThermoPhase` (or another | ||
% class derived from ThermoPhase) | ||
% :param sh: | ||
% Vector of length 2 containing the desired values for the specific | ||
% entropy (J/kg/K) and specific enthalpy (J/kg). | ||
% | ||
|
||
thermo_set(tp.tp_id, 33, sh); |
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,12 @@ | ||
function setState_ST(tp, st) | ||
% SETSTATE_ST Set the specific entropy and temperature. | ||
% setState_ST(tp,st) | ||
% :param tp: | ||
% Instance of class :mat:func:`ThermoPhase` (or another | ||
% class derived from ThermoPhase) | ||
% :param st: | ||
% Vector of length 2 containing the desired values for the specific | ||
% entropy (J/kg-K) and temperature (K). | ||
% | ||
|
||
thermo_set(tp.tp_id, 27, st); |
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,12 @@ | ||
function setState_TH(tp, th) | ||
% SETSTATE_TH Set the temperature and specific enthalpy. | ||
% setState_TH(tp,th) | ||
% :param tp: | ||
% Instance of class :mat:func:`ThermoPhase` (or another | ||
% class derived from ThermoPhase) | ||
% :param th: | ||
% Vector of length 2 containing the desired values for the | ||
% temperature (K) and specific enthalpy (J/kg). | ||
% | ||
|
||
thermo_set(tp.tp_id, 32, th); |
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,12 @@ | ||
function setState_TV(tp, tv) | ||
% SETSTATE_TV Set the temperature and specific volume. | ||
% setState_TV(tp,tv) | ||
% :param tp: | ||
% Instance of class :mat:func:`ThermoPhase` (or another | ||
% class derived from ThermoPhase) | ||
% :param tv: | ||
% Vector of length 2 containing the desired values for the | ||
% temperature (K) and specific volume (m^3/kg). | ||
% | ||
|
||
thermo_set(tp.tp_id, 28, tv); |
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,12 @@ | ||
function setState_UP(tp, up) | ||
% SETSTATE_UP Set the specific internal energy and pressure. | ||
% setState_UP(tp,up) | ||
% :param tp: | ||
% Instance of class :mat:func:`ThermoPhase` (or another | ||
% class derived from ThermoPhase) | ||
% :param up: | ||
% Vector of length 2 containing the desired values for the specific | ||
% internal energy (J/kg) and pressure (Pa). | ||
% | ||
|
||
thermo_set(tp.tp_id, 30, up); |
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,12 @@ | ||
function setState_VH(tp, vh) | ||
% SETSTATE_VH Set the specific volume and specific enthalpy. | ||
% setState_VH(tp,vh) | ||
% :param tp: | ||
% Instance of class :mat:func:`ThermoPhase` (or another | ||
% class derived from ThermoPhase) | ||
% :param vh: | ||
% Vector of length 2 containing the desired values for the specific | ||
% volume (m^3/kg) and specific enthalpy (J/kg). | ||
% | ||
|
||
thermo_set(tp.tp_id, 31, vh); |
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