CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

ADJUST udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2007, 04:45
Default ADJUST udf
  #1
Jubs
Guest
 
Posts: n/a
Hi I am doing simulation pressure transients due to combustion. But inspite of combustion i am assuming a reaction rate and introducing that much amount of products in to the domain. In order to correct the temparature and pressure of the product species, I am trying to adjust the pressure and temparature by ADJUST Function. Is it possible? If so, would you please correct the UDF given below?

DEFINE_ADJUST(adjust_fcn,domain) { Thread *t; cell_t c; domain = Get_Domain(2);//2 indicates the phase-1 in the mixture. thread_loop_c(t,domain) {

begin_c_loop(c,t)

{

C_P(c,t) = 18298675.0;

C_T(c,t) = 1660.0;

}

end_c_loop(c,t) } }

Thanks a lot in advance...

  Reply With Quote

Old   February 9, 2007, 07:36
Default Re: ADJUST udf
  #2
Bogdan
Guest
 
Posts: n/a
try like this:

Domain* domain1=Get_Domain(2); thread_loop_c(t,domain1) and so on.

domain is available in your udf, I don't think is aloud to reassign domain to another domain.
  Reply With Quote

Old   February 10, 2007, 00:16
Default Re: ADJUST udf
  #3
jubs
Guest
 
Posts: n/a
Thanks a lot.
  Reply With Quote

Old   February 12, 2007, 07:00
Default Re: ADJUST udf
  #4
Rizwan
Guest
 
Posts: n/a
I think this is proper.

#include "udf.h"

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

begin_c_loop(c,t)

{

C_P(c,t) = 18298675.0;

C_T(c,t) = 1660.0;

}

end_c_loop(c,t) } }
  Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF to adjust pressure outlet a.lynchy FLUENT 4 February 15, 2021 01:50
UDF to define or adjust pressure??? engahmed FLUENT 0 July 6, 2010 18:19
udf ADJUST for recuperer the couple louse each ite hamina FLUENT 1 March 2, 2006 15:54
udf Adjust for of the shear rate for chaquen itera hamina FLUENT 0 March 2, 2006 05:13
UDF Adjust to redefine UDS Diffusivity David harvey FLUENT 4 February 27, 2004 08:47


All times are GMT -4. The time now is 05:49.