Hello everyone,
I want to use the Calculator tool (using the PRO/II Procedure) to program a calculation which will have an enthalpy as a result (result of an enthalpy balance from other streams). That result shall then be written to one of the streams to define its thermal condition by its enthalpy. That flow shall then be re-flashed with the new conditions, and its updated properties used in another loop of the calculation. My question therefore is threefold:
1. Why does the SRXSTR subroutine only list the stream conditions pressure (SPRES) and temperature (STEMP) as available options, but not the other ones that are available when defining the thermal condition in a simulation (i.e. bubble point, dew point, liquid mole/weight/volume fraction)?
2. Why isn't it possible to define the thermal condition of a stream by its pressure and its enthalpy? Thermodynamically, isn't a flow unambiguously defined by these? I guess a workaround to this limitation could be done by writing some line of codes that would vary the temperature until the calculated enthalpy matches the desired result.
3. Once the SRXSTR subroutine stores a value in a stream, is that stream then immediately re-flashed and the parameters that are based on that stream available with updated values inside the calculator procedure for any statements coming after it? Or are these parameters only available after the end of the calculator procedure? If the latter is the case: How do I get the parameters to update during the procedure?
In the manual it only says
"PRO/II contains special subroutines which store a calculator supplied array element as a stream property or a
stream component property. The values being stored must be computed in the dimensional units used for
data input. The resulting stream is flashed at the new conditions to determine its thermodynamic state"