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

UDF in z curvature

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 17, 2008, 11: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


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 16:04
curvature analysis joc FLUENT 2 December 4, 2003 13:17
curvature analysis joc Phoenics 0 November 18, 2003 07:20
curvature x.zhang Main CFD Forum 7 September 24, 2002 11:17
streamline curvature ? Kang, Seok Koo Main CFD Forum 1 August 9, 2001 01:17


All times are GMT -4. The time now is 18:32.