|
[Sponsors] |
Controlling species wall flux using a UDF that checks adjacent cell species conc. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 9, 2022, 18:55 |
Controlling species wall flux using a UDF that checks adjacent cell species conc.
|
#1 |
New Member
Zach
Join Date: Aug 2022
Posts: 5
Rep Power: 4 |
I would like to write a UDF to alter the species concentration of a boundary in a way that is dependent on the species concentration in an adjacent cell. I have attached an image to describe the equation.
1as.png I have written the following UDF to use on the Species Mass Fraction boundary condition of a wall surface: /************************************************** ********************* Because the factor I am using is .9999999999999999999999999999999999999999, there should be only a 0.0000000000001% decrease in concentration between the face and the cell. However, I am observing rapid diffusion out of the channel using this boundary condition, as shown in the attached image. b.png What am I doing wrong? This is extraneous information that may be useful in contemplating this question: |
|
August 10, 2022, 04:36 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
first of all:
how 0.0000000000001% (13 numbers) comes from this -> .9999999999999999999999999999999999999999 (40 numbers) ? are you using double precision for fluent? should you run transient (with appropriate time step) or in steady? is your mesh small enough? which value is you actually applying as a boundary condition? (you need udm to check that)
__________________
best regards ****************************** press LIKE if this message was helpful |
|
Tags |
species flux, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Table bounds warnings at: END OF TIME STEP | CFXer | CFX | 4 | July 17, 2020 00:44 |
Replicating Scalable Wall Function with a UDF | yousefaz | FLUENT | 0 | August 4, 2017 03:30 |
How to Reference an Adjacent Cell in a UDF ? | jeff8541 | FLUENT | 0 | March 8, 2011 11:33 |
Basic question: UDF for wall heat flux | Carl | FLUENT | 1 | August 5, 2006 20:01 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 06:12 |