Question

In: Mechanical Engineering

write a FORTRAN 77 software programme for moving coil type linear compressor using R407c refrigerant in...

write a FORTRAN 77 software programme for moving coil type linear compressor using R407c refrigerant in pulse tube refrigerator

Solutions

Expert Solution

"Test of the genetic optimization method

This function has two peaks. A traditional optimization algorithm would likely be attracted to the broader peak, although it represents a local optimum. The genetic algorithm correctly identifies the global optimum.

Press F4 to start the optimization"

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

"!This program demonstrates the use of the Integral functions to solve second order equations. "

"Here EES is used to calculate the velocity and position of a freely falling sphere, subject to aerodynamic drag. The unit system is set to English. The graph is set to automatic update - change v_o to -50 to see the impact of an initial upward velocity.

Note how the Integral function displays on the Formatted Equations Window."

D=0.25 [ft]
m=1.0 [lb_m]    "mass of sphere"
v_o=0 [ft/s]    "initial velocity."
z_o=0 [ft]     "initial position"
time=5 [s]   "time period for analysis"
g=32.17 [ft/s^2]    "gravitational acceleration"

F=m*g*Convert(lbm-ft/s^2,lbf)         "Newton's Law"
m*a*Convert(lbm-ft/s^2,lbf)=F-F_d        "force balance"
Area=pi*D^2/4           "frontal area of sphere"
F_d=Area*C_d*(1/2*rho*v^2)*Convert(lbm-ft/s^2,lbf)    "definition of drag coefficient"

"Find Reynolds number"
mu=viscosity(air, T=70)*Convert(1/hr,1/s)
rho=density(Air,T=70,P=14.7)
Re=rho*abs(v)*D/mu

"Find drag coefficient from the Reynolds number. The Lookup table contains ln(Re) and ln(C_d). The max function is used to prevent attempting to find the log of zero (i.e., when the velocity is zero use a small value of Re)"
C_d=exp(interpolate1( 'LnRe', 'LnCd', LnRe=Ln(max(.01, Re))))

"As a test of the need for tthe variable drag coefficient, set C_d to a constant value, say C_d=0.4. Turn off automatic update on the plots (click on the plot window) and overlay the new plots, using the left scale."
{C_d=0.4}


"Use EES integral function to determine velocity and position given the acceleration."
v=v_o+integral(a,t,0,time)   "velocity after 5 seconds"
z=z_o+integral(v,t,0,time)   "vertical position after 5 seconds"

"The following directive instructs EES to store values of v (velocity), z (elevation) and C_d (drag coefficient) as a function of t (time) at increments of 0.2 sec.
"
$integraltable t:0.2, v,z, C_d
$tabstops 1 in


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 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
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
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....
An ice-making machine operates on the ideal-vapor compression cycle using refrigerant-134a. The refrigerant enters the compressor...
An ice-making machine operates on the ideal-vapor compression cycle using refrigerant-134a. The refrigerant enters the compressor as saturated vapor at 40 psia and leaves the condenser as saturated liquid at 80 psia. Water enters the ice machine at 55°F and leaves as ice at 25°F. For an ice production rate of 21 lbm/h, determine the power input to the ice machine (169 Btu of heat needs to be removed from each lbm of water at 55°F to turn it into...
develop a programming code in FORTRAN 77 software for solar assisted air source water heat pump...
develop a programming code in FORTRAN 77 software for solar assisted air source water heat pump inline connected with bry air dehumidifier and pulse tube cryocooler
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 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 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
There is a vapor compression type refrigeration cycle using the refrigerant HFC 134 a. In the...
There is a vapor compression type refrigeration cycle using the refrigerant HFC 134 a. In the condenser, it is isostatically cooled, the condensation temperature is 50 ° C., and the condenser outlet is the compressed liquid at 45 ° C. In the evaporator, it is isothermally heated, the evaporation temperature is 10 ° C. and the outlet of the evaporator is heated steam at 15 ° C. When the expansion valve performs isenthalpic expansion, and the adiabatic efficiency of the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT