| | 5995 | |
| | 5996 | redeclare function extends pressure "Return pressure" |
| | 5997 | |
| | 5998 | annotation(Documentation(info="<html></html>")); |
| | 5999 | algorithm |
| | 6000 | p := state.p; |
| | 6001 | end pressure; |
| | 6002 | |
| | 6003 | redeclare function extends temperature "Return temperature" |
| | 6004 | |
| | 6005 | annotation(Documentation(info="<html></html>")); |
| | 6006 | algorithm |
| | 6007 | T := state.T; |
| | 6008 | end temperature; |
| | 6009 | |
| | 6010 | redeclare function extends density "Return density" |
| | 6011 | |
| | 6012 | annotation(Documentation(info="<html></html>")); |
| | 6013 | algorithm |
| | 6014 | d := d_const; |
| | 6015 | end density; |
| | 6016 | |
| | 6017 | redeclare function extends specificEnthalpy "Return specific enthalpy" |
| | 6018 | |
| | 6019 | annotation(Documentation(info="<html></html>")); |
| | 6020 | algorithm |
| | 6021 | h := cp_const*(state.T-T0); |
| | 6022 | end specificEnthalpy; |
| | 6023 | |