0% found this document useful (0 votes)
59 views3 pages

Header Files and Related Functions: Start

This document outlines the inputs, initialization, and calculation steps for a numerical model simulating heat transfer between a heat transfer fluid (HTF), fins, and a phase change material (PCM) in cylindrical geometry. The model initializes temperatures and iterates through discrete time steps, spatial steps in the z, r, and θ directions, and calculates new temperature values for the HTF, fins, and PCM using equations 1 through 14 referenced in the text. Key inputs include thermal properties of the materials and geometric parameters, and temperature values are tracked over time through an index p representing time steps.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views3 pages

Header Files and Related Functions: Start

This document outlines the inputs, initialization, and calculation steps for a numerical model simulating heat transfer between a heat transfer fluid (HTF), fins, and a phase change material (PCM) in cylindrical geometry. The model initializes temperatures and iterates through discrete time steps, spatial steps in the z, r, and θ directions, and calculates new temperature values for the HTF, fins, and PCM using equations 1 through 14 referenced in the text. Key inputs include thermal properties of the materials and geometric parameters, and temperature values are tracked over time through an index p representing time steps.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Start

Header files and Related functions

INPUT Kf ,f,cf,kp, p, t, r, , z,p, HTF,Th_ini,Tf_ini,Tp_ini,Texit

Do if Tp[z][r][]<=Texit

If p=0

If p>0

For z=1 to z=n INITIALIZE Th[Z] = Th_ini Tf_ini Tp_ini For r= ri to r= ro For = 0 to = Th[z]= Th_next[z ] Tf[z][r]=Tf_next[z][r] Tp[z][r][]= Tp_next[z][r][]

Tf[z][r] = Tp[z][r][] =

For z= 1 to z=n

If z=1 Th[z]=Th_ini

If z>1 and z<n-1 Calculate Th[z] from Eq.(1)

If z=n Calculate Th[z] from Eq.(2)

For r= ri to r=ro

If r=ri Calc Tf[z][r] from Eq. (3) For =0 to = If =0 Calc Tp[z][r][] from Eq.(4) If >0 and < Calc Tp[z][r][] from Eq.(5) If = Calc Tp[z][r][] from Eq.(6)

If r>ri and r<ro Calc Tf[z][r] from Eq. (7) For =0 to = If =0 Calc Tp[z][r][] from Eq.(8) If >0 and < Calc Tp[z][r][] from Eq.(9) If = Calc Tp[z][r][] from Eq.(10)

If r=ro Calc Tf[z][r] from Eq. (11) For =0 to = If =0 Calc Tp[z][r][] from Eq.(12) If >0 and < Calc Tp[z][r][] from Eq.(13) If = Calc Tp[z][r][] from Eq.(14)

p=p+1

Stop

Keywords Kf f cf kp p t r z p Th_ini, Tf_ini, Tp_ini Texit Th[z] Tf[z][r] Tp[z][r][] n ri ro

Meaning Thermal conductivity of the fin Density of the fin Specific heat of the fin Thermal conductivity of the PCM Density of the PCM Time step value Interval change in r-direction Interval change in -direction Interval change in z-direction No. of time steps Initial value of HTF fluid Temperature Initial value of Fin Temperature Initial value of PCM Temperature Exit value of PCM Temperature or loop exiting value HTF temperature at any time step p Fin temperature at any time step p PCM temperature at any time step p Largest value of z or length of the cylinder Maximum value of Inner radius of the cylinder Outer radius of the cylinder

You might also like