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

UDF about source term

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 12, 2003, 22:39
Default UDF about source term
  #1
tian
Guest
 
Posts: n/a
hi,all, i want to add a constant value A to u equation source, the udf is low, it's right?

DEFINE_SOURCE(p1_source, c, t, dS, eqn)

{ real A; real source;

source += A; /* A- constant */

return source;

}

thanks.

tian
  Reply With Quote

Old   April 13, 2003, 00:50
Default Re: UDF about source term
  #2
Sebeci
Guest
 
Posts: n/a
Hi It is right, but you should add dS[eqn]=0 and only it's need to wiite source=A on your code.(if A is constant (dS/du)=0)

I hope this help you

  Reply With Quote

Old   April 17, 2003, 01:34
Default Re: UDF about source term
  #3
tian
Guest
 
Posts: n/a
Hi, Sebeci, thank you. you said that if A is constant,dS/du =0, but in fact, in my u equation, add A to the U equation source, if the dS/du not equal 0, how to do?

tian
  Reply With Quote

Old   May 2, 2003, 10:17
Default Re: UDF about source term
  #4
Senthil
Guest
 
Posts: n/a
that derivative dS is the derivative of the source term w.r.t. the corresponding variable(in single/multi phase flow-both).. So if A is constant, then the derivative should be zero for any transport eqn.

bye
  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
Injection of the source term UDF stage81 FLUENT 0 September 27, 2010 08:20
UDF Source Term Christian FLUENT 4 August 1, 2009 06:53
The source term of UDF summer FLUENT 0 August 24, 2006 18:44
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 14, 2000 00:03
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 04:43


All times are GMT -4. The time now is 16:39.