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

UDF in z curvature

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 17, 2008, 12:06
Default UDF in z curvature
  #1
leo
Guest
 
Posts: n/a
hello here,

I just want to assign a negative pressure along the interface to account for z curvature through UDF.

although the negative pressure is successfully assigned to the interface, the underfill does not flow from the top to bottom of the chip as expected.

here it is,

UDF used to cover the volume fraction as a UDS

# include "udf.h" # define domain_ID 3

DEFINE_ADJUST(adjust_gradient, domain) { Thread *t; cell_t c; face_t f;

domain = Get_Domain(domain_ID);

/* Fill UDS with the variable. */ thread_loop_c (t,domain)

{

begin_c_loop (c,t)

{

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

}

end_c_loop (c,t)

}

}

UDF for specifying an x-momentum source term for z resistance

#include "udf.h"

DEFINE_SOURCE(xs,c,t,dS,eqn) {

real source; real C2; C2 = 244897959; //12viscosity/(h^2) if (THREAD_SUB_THREAD(t,1)!=NULL)

{

if (C_VOF(c,THREAD_SUB_THREAD(t,1))>0.9)

{

if (NV_MAG(C_UDSI_G(c,t,0))>1000)

{

source = -C2*C_U(c,t)+C_UDSI_G(c,t,0)[0]*844;

dS[eqn] = -C2;

}

else

{

source = -C2*C_U(c,t);

dS[eqn] = -C2;

}

}

else

{

if (NV_MAG(C_UDSI_G(c,t,0))>1000)

{

source = C_UDSI_G(c,t,0)[0]*844;

}

else

{

source =0

}

}

return source;

}

}

Can anyone help me to settle this problem?

best regards,

  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use SST Curvature Correction mike wilson CFX 11 December 19, 2010 17:04
curvature analysis joc FLUENT 2 December 4, 2003 14:17
curvature analysis joc Phoenics 0 November 18, 2003 08:20
curvature x.zhang Main CFD Forum 7 September 24, 2002 12:17
streamline curvature ? Kang, Seok Koo Main CFD Forum 1 August 9, 2001 02:17


All times are GMT -4. The time now is 06:21.