CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

two questions about udf programming

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2008, 11:00
Default two questions about udf programming
  #1
Vincent
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.
  Reply With Quote

Old   October 5, 2008, 00:24
Default Re: two questions about udf programming
  #2
vincent
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.
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
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


All times are GMT -4. The time now is 11:50.