|
[Sponsors] |
![]() |
![]() |
#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.
|
|
![]() |
![]() |
![]() |
#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.
|
|
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF programming | fullmonty | FLUENT | 5 | June 30, 2011 02:40 |
Programming C, Basic | george | Main CFD Forum | 3 | September 12, 2006 22:42 |
C# vs other programming languages | Metal | Main CFD Forum | 2 | October 18, 2005 03:48 |
Programming in CFD | Lam | Main CFD Forum | 7 | May 27, 2004 05:12 |
Programming in C | Tony | Main CFD Forum | 5 | March 7, 2002 12:40 |