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

gradient source term UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2009, 07:37
Default gradient source term UDF
  #1
Member
 
Akour
Join Date: May 2009
Posts: 79
Rep Power: 17
ak6g08 is on a distinguished road
hi everyone,

I have a user defined scalar for a variable Q, and a user defined scalar for a variable V. In the scalar equation for Q, a source term appears as follows:

(Dq/dx)*(DV/dx)*constants (1)

where the variable Q appears as a source term for the user defined scalar equation for V as (Q/constant). Everything works beautifully when I turn this source term (eq 1) OFF.

The way I implemented this source term (equation 1) is within a DEFINE_SOURCE function as

C_UDSI_G(c,t,0)[0]*C_UDSI_G(c,t,1)[0]*constants
where dS[eqn]=0

and the solution diverges. I am pretty sure this is because of a checkerboarding effect as with pressure-velocity coupling. I therefore probably need to manually discretise the source term in the FLUENT UDF environment...how can I access north,south,west and east nodal positions so that I can do this in 2D?? and later in 3D? is this even possible in fluent?? This has been troubling me for quite some time now...any help is appreciated.

Thanks
AK
__________________
akour
ak6g08 is offline   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
HELP! adding a mass source to VOF eqn. by UDF??? ROOZBEH FLUENT 5 December 3, 2016 18:53
UDF source term Rajani Kanth.B Fluent UDF and Scheme Programming 4 May 1, 2013 10:31
The source term of UDF summer FLUENT 0 August 24, 2006 18:44
PDE in udf for defining momentum source term shekhar FLUENT 0 April 12, 2004 02:43
a question about UDF for source term winnie FLUENT 1 May 2, 2003 10:11


All times are GMT -4. The time now is 03:41.