|
[Sponsors] |
How can i modify the temparature and pressure |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 25, 2007, 07:48 |
How can i modify the temparature and pressure
|
#1 |
Guest
Posts: n/a
|
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 |
|
|
|