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

concentration gradient

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By pakk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2017, 03:37
Default concentration gradient
  #1
Member
 
mahya
Join Date: Jul 2016
Posts: 45
Rep Power: 10
mahayheidari is on a distinguished road
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
Attached Images
File Type: jpg photo_2017-01-19_23-22-31.jpg (119.7 KB, 40 views)
mahayheidari is offline   Reply With Quote

Old   January 20, 2017, 07:25
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Your UDF is not doing what you expect. You have two possibilities:

1. Change your expectations.
2. Change your UDF.
CeesH likes this.
pakk is offline   Reply With Quote

Old   January 20, 2017, 08:18
Default
  #3
Member
 
mahya
Join Date: Jul 2016
Posts: 45
Rep Power: 10
mahayheidari is on a distinguished road
Quote:
Originally Posted by pakk View Post
Your UDF is not doing what you expect. You have two possibilities:

1. Change your expectations.
2. Change your UDF.
Can you say me the udf that i should use
mahayheidari is offline   Reply With Quote

Old   January 20, 2017, 10:13
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Can you give me the UDF that you used, then maybe I can explain why it is not doing what you expect.
pakk is offline   Reply With Quote

Old   January 20, 2017, 12:21
Default
  #5
Member
 
mahya
Join Date: Jul 2016
Posts: 45
Rep Power: 10
mahayheidari is on a distinguished road
Quote:
Originally Posted by pakk View Post
Can you give me the UDF that you used, then maybe I can explain why it is not doing what you expect.


#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)

}
mahayheidari is offline   Reply With Quote

Old   January 20, 2017, 18:50
Default
  #6
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,751
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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?
LuckyTran is offline   Reply With Quote

Old   January 21, 2017, 02:18
Default
  #7
Member
 
mahya
Join Date: Jul 2016
Posts: 45
Rep Power: 10
mahayheidari is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
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?
first question:yes
once i didnt select node values but the result was not ok
second question: no
mahayheidari is offline   Reply With Quote

Old   January 23, 2017, 04:08
Default
  #8
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
And how do you apply this UDF? Exactly which property is set to this UDF in Fluent?
pakk is offline   Reply With Quote

Old   January 23, 2017, 04:47
Default
  #9
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
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...
pakk is offline   Reply With Quote

Reply


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


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


All times are GMT -4. The time now is 20:01.