User talk:Sidharth: Difference between revisions
No edit summary |
No edit summary |
||
| Line 17: | Line 17: | ||
Both the underlying correlations provide these 13 functions calculated from first principles, with T and <math>\rho</math> as inputs. So the TTSE implementation for a specific liquid and a specific correlation (H or P) should eventually generate tables for each of the above 13 entries. For the saturation function fprops_sat(), takes only 1 input (temperature) and returns saturated liquid density, saturated vapour density and the saturation pressure. This function involves solving equations iteratively and tabulation should speed up calculation on saturation curve. | Both the underlying correlations provide these 13 functions calculated from first principles, with T and <math>\rho</math> as inputs. So the TTSE implementation for a specific liquid and a specific correlation (H or P) should eventually generate tables for each of the above 13 entries. For the saturation function fprops_sat(), takes only 1 input (temperature) and returns saturated liquid density, saturated vapour density and the saturation pressure. This function involves solving equations iteratively and tabulation should speed up calculation on saturation curve. | ||
To begin with we can tabulate the following functions: | |||
#helmholtz_p | |||
#helmholtz_s | |||
#helmholtz_u | |||
#helmholtz_g | |||
#helmholtz_h | |||
In order to tabulate these routines we need new routines which complete the set of all partial derivatives we need: | |||
For Pressure we need | |||
Revision as of 17:38, 16 June 2015
FPROPS uses function pointers from the underlying correlation (helmholtz or Pengrob) to calculate fundamental quantities with Temperature and rho as the input. Following are those functions of fprops :-
- fprops_p
- fprops_u
- fprops_h
- fprops_s
- fprops_a
- fprops_g
- fprops_P
- fprops_dpdrho_T
- fprops_alphap
- fprops_betaP
- fprops_cp
- fprops_cv
- fprops_w
Both the underlying correlations provide these 13 functions calculated from first principles, with T and <math>\rho</math> as inputs. So the TTSE implementation for a specific liquid and a specific correlation (H or P) should eventually generate tables for each of the above 13 entries. For the saturation function fprops_sat(), takes only 1 input (temperature) and returns saturated liquid density, saturated vapour density and the saturation pressure. This function involves solving equations iteratively and tabulation should speed up calculation on saturation curve.
To begin with we can tabulate the following functions:
- helmholtz_p
- helmholtz_s
- helmholtz_u
- helmholtz_g
- helmholtz_h
In order to tabulate these routines we need new routines which complete the set of all partial derivatives we need:
For Pressure we need