|
[Sponsors] |
April 12, 2003, 22:39 |
UDF about source term
|
#1 |
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 |
|
April 13, 2003, 00:50 |
Re: UDF about source term
|
#2 |
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 |
|
April 17, 2003, 01:34 |
Re: UDF about source term
|
#3 |
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 |
|
May 2, 2003, 10:17 |
Re: UDF about source term
|
#4 |
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 |
|
|
|
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 |