Question

In: Mechanical Engineering

write a code in fortran 77 and link with the reference refrigerant properties software and code...

write a code in fortran 77 and link with the reference refrigerant properties software and code should be for parametric models and optimisation for rapid thermal design advance solution feature of cinder offline provide thermal analysis to make a preliminary thermal design calculations your code should fulfill the requirement

Solutions

Expert Solution


Fluid$='Air'               {Define the fluid using a string variable}
L=0.5 [m]            "Length of plate in flow direction in m"
Vel=20 [m/s]            "air velocity with an uncertainty of 10% of its value"
T_infinity=300 [°C]         "Air temperature in +/- 1 °C"
T_s=27 [°C]        "Plate surface temperature +/- 1 °C"

Q=h*L*(T_infinity-T_s)        "heat transfer rate per unit width in W/m"
T_film=(T_infinity+T_s)/2        "Film temperature for evaluating properties in °C"
rho=density(Fluid$,T=T_film,P=100) "Air density in kg/m^3"
k=conductivity(Fluid$,T=T_film)   "Thermal conductivity in W/m-K"
mu=viscosity(Fluid$,T=T_film)   "Viscosity in kg/m-s"
Pr=Prandtl(Fluid$,T=T_film)       "Prandtl number"
Re=rho*Vel*L/mu           "Reynold's number"
Nu#=0.664*Re^0.5*Pr^0.333       "Nusselt number for laminar flow"
(h*L)/k=Nu#               "Definition of Nusselt number to find h"

LMTD=10 [F]    "log mean temperature difference in C - here F is used to illustrate units checking."
T_h_i=80 [C]    "hot stream inlet temperature"
C_h=125 [W/C]     "hot steam capacitance rate"
C_c=69.8 [W/C]    "cold stream capacitance rate"
UA=200 [W/C]   "overall heat transfer coefficient-area product"
Q=UA*LMTD     "heat exchange rate"

"Definition of LMTD for counterflow heat exchange"
Arg=(T_h_i-T_c_o)/(T_h_o-T_c_i)   "!define Arg and set limits so that a division by zero or log of a negative number cannot occur"
LMTD=((T_h_i-T_c_o)-(T_h_o-T_c_i))/ln(Arg)

"Definition of heat exchanger effectiveness"
Epsilon=Q/(min(C_h,C_c)*(T_h_i-T_c_i))

"Energy balances on hot and cold streams"
Q=C_h*(T_h_i-T_h_o)
Q=C_c*(T_c_o-T_c_i)

D=2
f=A_1*exp(-r_1^2/sigma_1^2)+A_2*exp(-r_2^2/sigma_2^2)
r_1^2=sum((x[j]-0.5)^2,j=1,D)
r_2^2=sum((x[j]-0.2)^2,j=1,D)
A_1=0.7
A_2=1-0.7*exp(-r_1^2/sigma_1^2)
sigma_1^2=0.15
sigma_2^2=0.005

"!Supply Air"
Vol[5]=4000 [cfm]
T[5]=62 [F]
rh[5]=0.55
P_atm=14.7 [psia]
v[5]=volume(AIRH2O,P=P_atm,T=T[5],r=rh[5])
m_dot[5]=Vol[5]/v[5]        "mass flowrate of dry air"
h[5]=enthalpy(AIRH2O,P=P_atm,T=T[5],r=rh[5])
w[5]=humrat(AIRH2O,P=P_atm,T=T[5],r=rh[5])

"!Return air"
T[6]=74 [F]
rh[6]=0.54       
h[6]=enthalpy(AIRH2O,P=P_atm,T=T[6],r=rh[6])
w[6]=humrat(AIRH2O,P=P_atm,T=T[6],r=rh[6])
m_dot[1]=0.15*m_dot[5]

"!Outside air"
T[1]=82 [F]
rh[1]=0.48;
h[1]=enthalpy(AIRH2O,P=P_atm,T=T[1],r=rh[1])
w[1]=humrat(AIRH2O,P=P_atm,T=T[1],r=rh[1])

"!Mix return and outdoor"
m_dot[7]=0.85*m_dot[5]*(1-ByPass)
m_dot[2]=m_dot[1]+m_dot[7]
w[2]*m_dot[2]=m_dot[1]*w[1]+m_dot[7]*w[6]   {water balance}
m_dot[1]*h[1]+m_dot[7]*h[6]=m_dot[2]*h[2]   {energy balance}

"!Cooling Coil"
rh[3]=1
m_dot[3]=m_dot[2]
Q_C=m_dot[3]*(h[3]-h[2])
h[3]=enthalpy(AIRH2O,P=P_atm,w=w[3],r=rh[3])
T[3]=temperature(AIRH2O,P=P_atm,w=w[3],r=rh[3])

"!Mix coil outlet with bypass"
m_dot[8]=0.85*m_dot[5]*(ByPass)
m_dot[4]=m_dot[3]+m_dot[8]
w[6]*m_dot[8]+w[3]*m_dot[3]=m_dot[4]*w[4]
m_dot[8]*h[6]+m_dot[3]*h[3]=m_dot[4]*h[4]

"!Reheat coil"
w[5]=w[4]
Q_H=(h[5]-h[4])*m_dot[5]

"!Get missing Temps for plotting states on the Psych chart"
T[2]=Temperature(AIRH2O,P=P_atm,w=w[2],h=h[2])
T[4]=Temperature(AIRH2O,P=P_atm,w=w[4],h=h[4])


Related Solutions

Write a FORTRAN 77 SOFTWARE code script for transcritical R407C air source water heat pump using...
Write a FORTRAN 77 SOFTWARE code script for transcritical R407C air source water heat pump using R134a plus R407c refrigerant for space application.....please don't write code in other program.... it's mechanical engineering question
write a Fortran 77 language code for the vortex tube used in mining with its exergy...
write a Fortran 77 language code for the vortex tube used in mining with its exergy and anergy analysis using r407c refrigerant
write the mathematical code in language fortran 77 about Linda Hanson palstic cryocooler refrigerator using r407c...
write the mathematical code in language fortran 77 about Linda Hanson palstic cryocooler refrigerator using r407c refrigerant with moving coil magnet compressor technology the compressor is used is scroll casing using r407c refrigerant hand blender ammonia and solid CO2
write a Fortran 77 language code for vapour absorption air source water heat pump producing 70k...
write a Fortran 77 language code for vapour absorption air source water heat pump producing 70k temperature
design and develop a miniature cryocooler in FORTRAN 77 software and validate it's result with EES...
design and develop a miniature cryocooler in FORTRAN 77 software and validate it's result with EES AND fluent...... everything is well defined dont worry...you can skip it....
Properties of good refrigerant
What are the desirable properties of a good refrigerant ?
How do you determine the properties of steam or refrigerant 134a from the properties if you...
How do you determine the properties of steam or refrigerant 134a from the properties if you know only specific internal energy and specific volume (or specific enthalpy and specific entropy) at the thermodynamic state?
develop a mathematical model using fortran 77 on pulse tube cryocooler using r 407 as a...
develop a mathematical model using fortran 77 on pulse tube cryocooler using r 407 as a refrigerant please write the code in fortran 77 language only and verify the code generated with the help of photon 95628 from both the virgin the answer is accurate validate the reason with the available theoretical answers
write a fortran code on helical transcritical compression tube used in pulse tube cryocooler using R407...
write a fortran code on helical transcritical compression tube used in pulse tube cryocooler using R407 refrigerant. it is different than already replied question on chegg. please dont copy paste that answer i want genuine and correct code using fortran 77 only
In Fortran 77, local variables were typically allocated statically. In Algol and its descendants (e.g., Ada...
In Fortran 77, local variables were typically allocated statically. In Algol and its descendants (e.g., Ada and C), they are typically allocated in the stack. In Lisp they are typically allocated at least partially in the heap. What accounts for these differences? Give an example of a program in Ada or C that would not work correctly if local variables were allocated statically. Give an example of a program in Scheme or Common Lisp that would not work correctly if...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT