CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Main CFD Forum

How can i modify the temparature and pressure

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 25, 2007, 08:48
Default How can i modify the temparature and pressure
  #1
Juby Abraham
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

  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 18:36.