|
[Sponsors] |
March 14, 2002, 23:44 |
about UDF
|
#1 |
Guest
Posts: n/a
|
Hi, every body; I am a fresh user of writing UDF. I have some questions I am confused now. I appreciate all relpy.
The problem i want to solve is to add a source term in the mass balance equation. The source term is the following: source=dq/dt dq/dt=k(q*-q) q* is the function of concentration 1. Do I need to use user defined scalar? 2. In the source term subroutine, is it necessary to define ds?Sometimes, ds is too complex, can i not write it? 3. This is a multicomponet problem. I do not understand what the meaning of int i in some solution variables.Is it can be written 1 or 2 to represent differnet species? By the way, I would like to read more documents about udf. But I have only Fluent5 udf user guide, 2000. Could you provid more documents online? Thank you very much Frank |
|
March 18, 2002, 04:28 |
Re: about UDF
|
#2 |
Guest
Posts: n/a
|
Hi,
first upgrade to Fluent 6 and get the udf manual that comes with this version. This is the best documentation for udfs. There is a udf manual for v5 too. \ (These are located on the documentation CDs which you should have - but which many system admins like to ignore!!!! Who needs docs???? - unfortunately this logic doesn't work with CFD programs which are very complex) To answer your questions 1. no, unless q itself needs a pde to solve 2. you can often ignore ds, but stability is improved if you use it. note that ds should either be zero or negative. Positive values need to be linearised out - see Patankar 3. i refers to the ith species - counting from zero (or some other index eg. uds scalar in other macros) Hope it helps Greg |
|
March 18, 2002, 05:38 |
Re: about UDF
|
#3 |
Guest
Posts: n/a
|
Greg,Thank you very much!!! I will ask you other question later.
Thank you again Frank |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 22:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |