|
[Sponsors] |
September 16, 2009, 17:09 |
udf define property on a wall surface
|
#1 |
New Member
beibei
Join Date: Aug 2009
Posts: 6
Rep Power: 17 |
I need to define aborption coefficient as a function of position x on a wall surface (pipe). FLUENT didn't seen to render it even though it could interprete. What could it be wrong? Couldn't fluent render udf on a surface? Thanks!
Here's my code: #include"udf.h" DEFINE_PROPERTY(absorption_coefficient, c, t) { real abs_coeff; real x[ND_ND]; C_CENTROID(x,c,t); if (x[0] > 0 && x[0] < 0.2) abs_coeff = 593.9187; elseif (x[0] > 0 && x[0] < 0.2) abs_coeff = 197.6521; elseif (x[0] > 0 && x[0] < 0.2) abs_coeff = 177.0521; elseif (x[0] > 0 && x[0] < 0.2) abs_coeff = 140.5854; else abs_coeff = 140.5854; Message("Abs coefficient for this cell %e = %e", x[0],abs_coeff); return abs_coeff; } |
|
November 27, 2011, 12:10 |
udf
|
#2 |
New Member
arash
Join Date: Jun 2011
Posts: 7
Rep Power: 15 |
hi,
can i modelling asphaltene precipitation that exist in crude oil by uusing ceramic filter monolit by defult formolation in fluent? i want to modelling separation of asphaltene from crude oil by 19-channel ceramic filter,but i think it is not define in FLUENT that precipitate asphaltene on surface of ceramic channel base on diffrences between pore size. i must write UDF for this porpuse or not? most of oil flow must pass through the membrane wall and most of asphaltene must form a gel-layer and precipitation on inner surface od channel. please help me as soon as possible thank you so much |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for slip and moving wall | lichun Dong | FLUENT | 3 | March 26, 2014 05:37 |
Wall motion as a UDF, is it possible? | linch | FLUENT | 1 | August 31, 2009 10:18 |
Missing math.h header | Travis | FLUENT | 4 | January 15, 2009 12:48 |
UDF to monitor minimum pressure on the wall | Arvind Jayaprakash | FLUENT | 0 | September 20, 2007 12:53 |
How to use UDF to define a moving wall | lingo | FLUENT | 4 | April 14, 2004 05:14 |