CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   how to re-denfine the enthalpy (https://www.cfd-online.com/Forums/fluent/69902-how-re-denfine-enthalpy.html)

hunter November 9, 2009 00:11

how to re-denfine the enthalpy
 
i am simulating a cryogenic liquid boiling. how to assign the enthalpy? the reference temperature is 298.15. can i set the enthalpy with adjust? hope someone can give me some words, thank you

DEFINE_ADJUST(m_dot_adjust, domain)
{cell_t cell;
Thread *mix_th,*pri_th ,*sec_th;
Domain *d;
d=Get_Domain(1);
thread_loop_c(mix_th,d)
{pri_th= THREAD_SUB_THREAD(mix_th, 0);
sec_th= THREAD_SUB_THREAD(mix_th, 1);
begin_c_loop(cell,mix_th)
{ C_UDMI(cell,pri_th,12)=C_H(cell,pri_th);
C_UDMI(cell,sec_th,13)=C_H(cell,sec_th);
C_UDMI(cell,pri_th,14)=C_CP(cell,pri_th);
C_UDMI(cell,pri_th,15)=C_T(cell,pri_th);
C_UDMI(cell,pri_th,16)=C_CP(cell,pri_)*(Cth_T(cell ,pri_th)-T_ref)+9901;
C_H(cell,pri_th)=C_UDMI(cell,pri_th,17);
C_UDMI(cell,sec_th,18)=C_CP(cell,sec_th);
C_UDMI(cell,sec_th,19)=C_T(cell,sec_th);
C_UDMI(cell,sec_th,20)=C_CP(cell,sec_th)*(C_T(cell ,sec_th)-T_ref)+30740;
C_H(cell,sec_th)= C_UDMI(cell,sec_th,21);
...
..
..
...
...

hunter November 10, 2009 03:55

hope someone can give me some words still


All times are GMT -4. The time now is 12:02.