|
[Sponsors] |
October 4, 2008, 12:00 |
two questions about udf programming
|
#1 |
Guest
Posts: n/a
|
hello,first thank you for your attention! i am modeling a water vapor transport between two gas channel though a ployer membrane.the diffusion coefficients of the mixture gas are different in the membrane and in the gas channel.i am thinking about that i can write a udf like this using if-else function:if a<x<b and c<y<d,coefficient=.......;else .....,is that feasible? and another question is that can i use a specie's name instead of its specie index when i define the coefficient of this specie in my udf,because i don't know its index or how to get its index.
|
|
October 5, 2008, 01:24 |
Re: two questions about udf programming
|
#2 |
Guest
Posts: n/a
|
go on........... if a<X<b and c<y<d,coefficicent=.......;else coefficient=...... is this feasible? another question,can i use a specie's name instead of its specie index when i define mass diffusion coefficient because i don't its index or how to get its index,for example,i use water-vapor instead of its index.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF programming | fullmonty | FLUENT | 5 | June 30, 2011 03:40 |
Programming C, Basic | george | Main CFD Forum | 3 | September 12, 2006 23:42 |
C# vs other programming languages | Metal | Main CFD Forum | 2 | October 18, 2005 04:48 |
Programming in CFD | Lam | Main CFD Forum | 7 | May 27, 2004 06:12 |
Programming in C | Tony | Main CFD Forum | 5 | March 7, 2002 13:40 |