|
[Sponsors] |
March 9, 2006, 09:51 |
UDF for mass difusivity
|
#1 |
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 |
|
March 9, 2006, 10:31 |
Re: UDF for mass difusivity
|
#2 |
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 |
|
March 9, 2006, 13:17 |
Re: UDF for mass difusivity
|
#3 |
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 |
|
|
|
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 |