CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] parabolic velocity by groovy bc

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2014, 06:55
Default parabolic velocity by groovy bc
  #1
Senior Member
 
Ali reza
Join Date: Mar 2014
Posts: 110
Rep Power: 12
1988 is on a distinguished road
hi
I am going to have parabolic velocity inlet and I have defined it in a pipe which it diameter is 4mm and flow is laminar and this is the definition of fully developed flow in a pipe

u z = u max (1 −r2/R2) and this is my definition
Code:
   {
  inlet
    {
       type            groovyBC;
        refValue        uniform (0 0 0);
        refGradient     uniform (0 0 0);
        valueFraction   uniform 1;
        value           uniform (0 0 0);
        valueExpression "vector(Umax*(1-(sqr(r)/sqr(0.004))),0,0)";
        gradientExpression "vector(0,0,0)";
        fractionExpression "1";
        evaluateDuringConstruction 0;
        variables       "r=sqrt(pow(pos().y,2)+pow(pos().z,2));Umax=0.07;";
        timelines       ();
        lookuptables    ();
    }
but I am not sure about defining "r" as a radius in this way because the coordinate is changing and using "sqrt((z**2)+(y**2))" is not true for everywhere,Am I right?
and the other problem is I have got this velocity profile instead of parabolic one.
thanks guys
Attached Images
File Type: jpg pic3.jpg (18.3 KB, 82 views)
File Type: png pic2.PNG (9.3 KB, 75 views)
1988 is offline   Reply With Quote

Old   May 14, 2014, 10:30
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by 1988 View Post
hi
I am going to have parabolic velocity inlet and I have defined it in a pipe which it diameter is 4mm and flow is laminar and this is the definition of fully developed flow in a pipe

u z = u max (1 −r2/R2) and this is my definition
Code:
   {
  inlet
    {
       type            groovyBC;
        refValue        uniform (0 0 0);
        refGradient     uniform (0 0 0);
        valueFraction   uniform 1;
        value           uniform (0 0 0);
        valueExpression "vector(Umax*(1-(sqr(r)/sqr(0.004))),0,0)";
        gradientExpression "vector(0,0,0)";
        fractionExpression "1";
        evaluateDuringConstruction 0;
        variables       "r=sqrt(pow(pos().y,2)+pow(pos().z,2));Umax=0.07;";
        timelines       ();
        lookuptables    ();
    }
but I am not sure about defining "r" as a radius in this way because the coordinate is changing and using "sqrt((z**2)+(y**2))" is not true for everywhere,Am I right?
and the other problem is I have got this velocity profile instead of parabolic one.
thanks guys
The equation for r looks alright to me assuming that the center of your inlet is (someX,0,0): centered on the x-axis

What do you mean with "coordinate is changing"? Even if your mesh is moving r is OK. r is a basically a field of values: one for every face of the patch. So it calcs r for every face separately (was this your concern)?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 14, 2014, 13:10
Question
  #3
Senior Member
 
Ali reza
Join Date: Mar 2014
Posts: 110
Rep Power: 12
1988 is on a distinguished road
yes I got what you explained and thats helpful.thanks for your answer however do you have any idea about the wrong velocity pattern which I have got at inlet ?
it suppose to be parabolic but it is something else
1988 is offline   Reply With Quote

Old   May 14, 2014, 13:43
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by 1988 View Post
yes I got what you explained and thats helpful.thanks for your answer however do you have any idea about the wrong velocity pattern which I have got at inlet ?
it suppose to be parabolic but it is something else
What I don't understand about this diagram: what is the distance on the bottom? Because for instance if it is y or z then it should go from -0.004 to 0.004. If it is the 3 of the points it should go from 0 to 0.004.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 14, 2014, 14:10
Default
  #5
Senior Member
 
Ali reza
Join Date: Mar 2014
Posts: 110
Rep Power: 12
1988 is on a distinguished road
coordinates are (3 points of circle at velocity inlet)

(-0.008,0,0.020)
(-0.008,0.004,0.024)
(-0.008,0,0.028)
it means that radius=0.004
1988 is offline   Reply With Quote

Old   May 14, 2014, 15:12
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by 1988 View Post
coordinates are (3 points of circle at velocity inlet)

(-0.008,0,0.020)
(-0.008,0.004,0.024)
(-0.008,0,0.028)
it means that radius=0.004
I don't understand what these 3 coordinates are saying (apart from being in the x=-0.008-plane). Please reread the above comment "The equation for r looks alright to me assuming that the center of your inlet is (someX,0,0): centered on the x-axis". Your example doesn't convince mit at all that this is the case.

Please check whether this is the case specify what "distance" in your diagram means.

I will NOT answer anything that arrives in the next couple of hours to give you time to properly think it through
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 15, 2014, 03:37
Default
  #7
New Member
 
Join Date: May 2014
Posts: 7
Rep Power: 11
taajaki is on a distinguished road
oh I got it you are right and I find the solution thanks a lot
taajaki is offline   Reply With Quote

Old   May 15, 2014, 03:55
Default
  #8
Senior Member
 
Ali reza
Join Date: Mar 2014
Posts: 110
Rep Power: 12
1988 is on a distinguished road
thanks it seems that it was other user's problem too however thanks for your protect
1988 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
VELOCITY vs VELOCITY IN STN FRAME vs RELATIVE VELOCITY everest20 FLUENT 1 July 13, 2015 09:35
3-D parabolic velocity Inlet - Steady state - UDF Turbulent Flow mohibanwar Fluent UDF and Scheme Programming 10 May 18, 2015 11:34
parabolic inlet velocity condition a_cucen Fluent UDF and Scheme Programming 4 March 4, 2015 10:15
Flow Between Parallel Plates With Parabolic Entrance Velocity saaghi Main CFD Forum 8 February 7, 2014 09:06
How to define a parabolic velocity inlet of particles with UDF zumaqiong FLUENT 2 February 22, 2010 10:46


All times are GMT -4. The time now is 07:13.