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

UDF for mass difusivity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2006, 09:51
Default UDF for mass difusivity
  #1
Jiri Novak
Guest
 
Posts: n/a
I am simulating multicomponent flow using SPECIES. I set the temperature dependent diffusivity for mixture under material s .. which causes an initialization error:

warning mass_diffusivity: invalid(zero) diffusivity phase check material properties.

Does anyone know why and why the mass diffusivity is set for mixture instead of pure species?

My simply UDF looks: DEFINE_PROPERTY(diffusivity, cell, thread) { real diff; real temp = C_T(cell, thread); diff = 6.5e-6 * exp (-20000/temp); return diff; }

Thanx Jiri
  Reply With Quote

Old   March 9, 2006, 10:31
Default Re: UDF for mass difusivity
  #2
RoM
Guest
 
Posts: n/a
For a temperature of 300K your udf will return 7.2e-35. Fluent wont take such small values and simply set is to zero which causes the error. Even for 2000K the return value is 3e-10 which is very small. Are you shure you function is correct? Adding the exp function to 6.5e-6 instead of multiplying seems to produce more reasonable results...

RoM
  Reply With Quote

Old   March 9, 2006, 13:17
Default Re: UDF for mass difusivity
  #3
Jiri Novak
Guest
 
Posts: n/a
Thank you. I haven't tested this yet. So, I'm gonna to split the UDF into two regions providing realistic values and not loosing the temperature dependent character.

Regards Jiri
  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
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


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