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

UDF for mass difusivity

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools 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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
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 21:38
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
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 01:17.