|
[Sponsors] |
February 9, 2007, 04:45 |
ADJUST udf
|
#1 |
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... |
|
February 9, 2007, 07:36 |
Re: ADJUST udf
|
#2 |
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. |
|
February 10, 2007, 00:16 |
Re: ADJUST udf
|
#3 |
Guest
Posts: n/a
|
Thanks a lot.
|
|
February 12, 2007, 07:00 |
Re: ADJUST udf
|
#4 |
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) } } |
|
|
|
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 |