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

Help with ADJUST FUNCTION

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 8, 2008, 06:33
Default Help with ADJUST FUNCTION
  #1
Munir Ahmed Khan
Guest
 
Posts: n/a
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)

} }
  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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adjust the parameter of the geometry Susan CFX 2 November 9, 2007 08:42
ADJUST udf Jubs FLUENT 3 February 12, 2007 07:00
how to adjust continuity equation in vof??? Asghari FLUENT 0 October 11, 2006 04:43
Help with----- ADJUST Mech FLUENT 0 March 30, 2006 04:16
ADJUST - function Michal FLUENT 0 October 9, 2001 06:07


All times are GMT -4. The time now is 17:26.