Upload
ngodien
View
241
Download
1
Embed Size (px)
Citation preview
Thermodynamic f
WHAT IS PHICALC
• a tool to generate and visualize the fluid properties ( monophasic, diphasic mix of fluids, special fluids)
• fully integrated into native Matlab/Simulink & Simscape environment
• extendable and customizable since any fluid can
be added.
• allows to be used alone or embedded fluid libraries for air conditioning, power plaindustrial energetic plant.
GENERATION Highlights:
• The initial step is to get the basic tables of thermal fluid from the reference sources or by calculation (NIST, EES, JANAF, Books, ...).
Example of table generation
Fluid Properties
2014, Sherpa Engineering
φCalc Thermodynamic functions & tables & diagram
pre-processor for Matlab, Simulink & Simscape
the fluid ( monophasic, diphasic ,ideal gazes,
Simulink &
customizable since any fluid can
alone or embedded in thermal fluid libraries for air conditioning, power plant,
The initial step is to get the basic tables of thermal fluid from the reference sources or by calculation (NIST, EES, JANAF, Books, ...).
Pressure(P), Temperature(T)
constant pressure(Cp), specific heat capacity at constant
volume(Cv), Prandt number
Density(rho), Specific enthalpy
(Lambda), Dynamic viscosity
Specific entropy(S), Specific internal energy
volume(v)
Functions or tables generation
From the basic data, we generate all the thermodynamic required functions or tables
Fluids properties are available both as dll functions and as tabulation format.
For example for diphasic fluid, there are two independent variables that allothers properties (ALL)
ph, pu, pv, ps, hs, pt or px
example of function with independent variables p & h
ALL= du (fluid, P0, H0)
All are the fluid properties : p,t,v,h,s,u,Cp,Cv,Lambda,mu.
unctions & tables & diagrams
& Simscape
(T), Specific heat capacity at
, specific heat capacity at constant
, Prandt number(Pr), Vapor fraction (X) ,
, Specific enthalpy(H), Thermal conductivity
, Dynamic viscosity(nu), Kinematic viscosity(mu),
, Specific internal energy(U), Specific
generation
From the basic data, we generate all the thermodynamic required functions or tables
Fluids properties are available both as dll functions
For example for diphasic fluid, there are two
variables that allow to compute all
px ,du, …
example of function with independent variables p & h
p,t,v,h,s,u,Cp,Cv,Lambda,mu.
GUI FOR DIAGRAM GENERATION
The objective is to draw all fluid properties and to give the user the potential to define its specific diagram, that can be exported in Matlab/Simulink to superpose it with the thermodynamic cycle.
SELECTION : 1 POINT COMPUTATION
This GUI allows computing thermal fluids properties
The type of the fluid can be a gas or liquid, one phase, two-phase, moist gas or gas mixture.
It is possible to calculate one point or a several combinations of points.
SELECTION :THERMAL FLUID PROPERTIES
“Fluid properties” has been selected on the “processing popup menu” in the general panel. The GUI displays, on the right side, iso lines for one chosen property of the selected fluid.
Functionalities: -Real-time plotting, when settings have been changed -Automatic and manual custom selection for iso lines properties and number of abscissa point to plot:
2014, Sherpa Engineering
GUI FOR DIAGRAM GENERATION
properties and to its specific
that can be exported in Matlab/Simulink to e thermodynamic cycle.
OMPUTATION
thermal fluids properties
The type of the fluid can be a gas or liquid, one phase, moist gas or gas mixture.
It is possible to calculate one point or a mapping for
ROPERTIES
“Fluid properties” has been selected on the “processing popup menu” in the general panel. The GUI displays, on the right side, iso lines for one chosen property of the
time plotting, when settings have been changed Automatic and manual custom selection for iso lines
ber of abscissa point to plot:
SELECTION : THERMODYNAMIC
“Thermodynamic diagram” has “processing popup menu” in the general panel. The GUI displays, on the right side, the thermodynamic diagram with the gas and liquid saturation lines, and some iso lines, chosen by the user.
Panel for the choice of iso
HERMODYNAMIC DIAGRAM
“Thermodynamic diagram” has been selected on the “processing popup menu” in the general panel. The GUI displays, on the right side, the thermodynamic diagram with the gas and liquid saturation lines, and
, chosen by the user.
Panel for the choice of iso-lines
2014, Sherpa Engineering
THERMAL FLUID LIBRARY INTERFACE
In Matlab/Simulink PhiSim or Simscape thermal library, we can choose the fluids in a list (one phase liquid and gas, two phases, moist Air, combustion mixture and gas mixture) and plot automatically the main standard diagram
PHISIM INTERFACE
- Thermal fluid choice -
Simscape HVAC Library
For Simscape modules, the fluid properties are entered in the custom thermal fluid block: Real time superposition of thermodynamic cycle Refrigerant loop (PH diagram)
Rankine Power plant (TS diagram)
We can plot all cycles in parallel and in real time on different diagrams with an unlimited number of points.
1.5 2 2.5 3 3.5 4 4.5
x 105
106
107
Specific enthalpy [J/kg]
Pre
ssur
e [P
a]
Mollier diagram of R134a
7
12
19
30
48
77
124
19931
9
511
260
2 60
2 60
260 260
280280
280
280
280
280 2
80
300
30030
030
030
030
0 30
0
320
320
320320
3 20
3 20 3
20
340
340
340
340340
340 3
40
360
360
3 60
360360
360
380
380
380
380
380
400
4 00
400
400
420
420
4 20 4 4
044
0
0.02002 0.02002 0.02002
0.02
002
0.2 0.2 0.2
0.2
2 2
2
20 20
20
40
40
40
60
60
80
80
100
100
120
120
140
140
160
160
180
180
200
200
Specific entropy [J]
Tem
pera
ture
[K
]
Mollier diagram of Water
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
300
400
500
600
700
800
900
1000