|
[Sponsors] |
April 23, 2011, 02:51 |
writing udf
|
#1 |
New Member
massoumeh
Join Date: Mar 2011
Posts: 10
Rep Power: 15 |
dear all
i am writing a source-udf. in that formula there is some derivative terms depending on time. i dont know how should i write them or which macro should use, for example there is d/dt(du/dy+dv/dx) in formula for source term. thanks |
|
April 23, 2011, 14:13 |
|
#2 |
Senior Member
|
Hi masumeh,
you know that this kind of UDF executes every iteration so, it's enough that you use global parameter and put the desired variable in, then in new time step use the parameter value for last time step and then put new one to it. (note that you should renew the global parameter every time step not every iteration) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Writing UDF (DEFINE_PROFIL) for two surfaces | Geisel | Fluent UDF and Scheme Programming | 5 | June 21, 2010 09:38 |
Seek help in writing UDF | Jack Martinez | FLUENT | 9 | June 14, 2007 11:24 |
New to writing UDF | Sandilya | FLUENT | 0 | May 31, 2007 13:03 |
Writing UDF for Robbins Bounday Condition | KKLAU | FLUENT | 1 | April 7, 2004 00:58 |
Macros for writing UDF for porosity | umesh | FLUENT | 1 | June 13, 2003 05:20 |