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

Udf-c_yi

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 3, 2016, 13:55
Default Udf-c_yi
  #1
Boh
Member
 
Join Date: Sep 2016
Posts: 33
Rep Power: 10
Boh is on a distinguished road
Hi!
I need to write an UDf for the diffusivity of vapor, I'm writing it using the density of the air and multiplying it with the mass fraction of the vapor to the air [kgmoisture/kgair]. I don't know how to write this term because if I use the C_YI(c,t,i) macro it gives error since I haven't activated the species model (I'm trying to solve the problem using UDS)...any ideas?
Thanks!
Boh is offline   Reply With Quote

Old   September 5, 2016, 05:16
Default
  #2
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
Quote:
Originally Posted by Boh View Post
Hi!
I need to write an UDf for the diffusivity of vapor, I'm writing it using the density of the air and multiplying it with the mass fraction of the vapor to the air [kgmoisture/kgair]. I don't know how to write this term because if I use the C_YI(c,t,i) macro it gives error since I haven't activated the species model (I'm trying to solve the problem using UDS)...any ideas?
Thanks!
if you are not using species model and using UDS instead, you probably need to save your mass fraction as a UDMI and correct it every iteration.
Bruno Machado is offline   Reply With Quote

Old   October 4, 2016, 11:21
Default
  #3
Boh
Member
 
Join Date: Sep 2016
Posts: 33
Rep Power: 10
Boh is on a distinguished road
Thanks for your reply....but I don't understand how I can express the mass fraction in order to save it in UDMI
Boh is offline   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 Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 01:53
Parallelize UDF? Which kind of UDF? Lilly FLUENT 5 March 25, 2014 03:05
Help! Delete the UDM codes in the UDF Messi Fluent UDF and Scheme Programming 2 January 28, 2014 10:01
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 21:06.