CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Help with ADJUST FUNCTION (https://www.cfd-online.com/Forums/fluent/48977-help-adjust-function.html)

Munir Ahmed Khan August 8, 2008 06:33

Help with ADJUST FUNCTION
 
Hi!

I have two sections of porous media with different porosity and same fluid flowing through both section. I am assuming reactions in fluid phase and heat source in one of the sections. Now I want that temperature of both the fluid phase and solid phase to be the same in this section. So, I'm using the adjust fuctions to adjust the temperature of the solid to be equal to fluid but the temperatures are not coming to be equal.

I am trying this;

#include "udf.h"

DEFINE_ADJUST(temp_temp,d) {

cell_t c;

Thread *t;

face_t f;

Node *v;

int n;

thread_loop_c(t,d)

{

begin_c_loop(c,t)

{

c_node_loop(c,t,n)

{

v=C_NODE(c,t,n);

if(NODE_X(v)<1.e-5)

{

C_UDSI(c,t,0)=C_UDSI(c,t,1);

}

}

}

end_c_loop(c,t)

} }


All times are GMT -4. The time now is 19:46.