|
[Sponsors] |
January 20, 2017, 03:37 |
concentration gradient
|
#1 |
Member
mahya
Join Date: Jul 2016
Posts: 45
Rep Power: 10 |
hello
i enter mass transfer equation by using uds and at inlet boundary condition i want concentration gradient that i enter it with a udf but when i see concentration gradient at inlet in graphics its not correct for example top of it must be red color but its green what should i do |
|
January 20, 2017, 07:25 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Your UDF is not doing what you expect. You have two possibilities:
1. Change your expectations. 2. Change your UDF. |
|
January 20, 2017, 08:18 |
|
#3 |
Member
mahya
Join Date: Jul 2016
Posts: 45
Rep Power: 10 |
||
January 20, 2017, 10:13 |
|
#4 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Can you give me the UDF that you used, then maybe I can explain why it is not doing what you expect.
|
|
January 20, 2017, 12:21 |
|
#5 | |
Member
mahya
Join Date: Jul 2016
Posts: 45
Rep Power: 10 |
Quote:
#include "udf.h" DEFINE_PROFILE(inlet_concentration, face_thread, i) { face_t face; real r[ND_ND]; begin_f_loop(face,face_thread) { F_CENTROID(r, face, face_thread); F_PROFILE(face, face_thread, i) = 3.3*100000*r[1]+5; } end_f_loop(face,face_thread) } |
||
January 20, 2017, 18:50 |
|
#6 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,751
Rep Power: 66 |
Is it just a simply interpolation and graphical bug? In your UDF you specify face values, but you selected node values in the graphics. Your UDF doesn't specify the values at the other boundaries, the other walls?
|
|
January 21, 2017, 02:18 |
|
#7 | |
Member
mahya
Join Date: Jul 2016
Posts: 45
Rep Power: 10 |
Quote:
once i didnt select node values but the result was not ok second question: no |
||
January 23, 2017, 04:08 |
|
#8 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
And how do you apply this UDF? Exactly which property is set to this UDF in Fluent?
|
|
January 23, 2017, 04:47 |
|
#9 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
To speed things up: what do you want your gradient to be?
If you want it to be 3.3*100000, you are doing it the wrong way... |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
question regarding LES of pipe flow - pimpleFoam | Dan1788 | OpenFOAM Running, Solving & CFD | 37 | December 26, 2017 15:42 |
Periodic flow using Cyclic - comparison with Fluent | nusivares | OpenFOAM Running, Solving & CFD | 30 | December 12, 2017 06:35 |
Concentration gradient | Bruno Machado | FLUENT | 6 | October 12, 2015 09:21 |
Generating concentration gradient by fluent | ashish | FLUENT | 2 | September 9, 2015 06:13 |
UDF to Access Wall Normal Concentration Gradient | Daniel Tanner | Fluent UDF and Scheme Programming | 4 | February 18, 2015 15:35 |