CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   How can i modify the temparature and pressure (https://www.cfd-online.com/Forums/main/12870-how-can-i-modify-temparature-pressure.html)

Juby Abraham January 25, 2007 07:48

How can i modify the temparature and pressure
 
Hi I need to change the temperature and pressure of my primary phase at each time strep. VOF method is used for the simulation. The UDF which is used to adjust theses variables is given below:

DEFINE_ADJUST(adjust_fcn,domain) { cell_t c; Thread *t; domain_id = Get_Domain(2); thread_loop_c(t,domain) {

begin_c_loop_all(c,t)

{

C_P(c,t) = 18298675.0;

C_T(c,t) = 1660.0;

}

end_c_loop_all(c,t) } }

Is there any mistake in this UDF? Is there any other method to do so?

Thanks



All times are GMT -4. The time now is 15:08.