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

[swak4Foam] Parabolic velocity at inlet for 2D axi geometry

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 4, 2020, 07:48
Default Parabolic velocity at inlet for 2D axi geometry
  #1
Member
 
M Malik
Join Date: Jan 2019
Posts: 47
Rep Power: 3
mmalik is on a distinguished road
Hello.

I am interested in creating a developed flow at the inlet. I am using groovyBC and have checked several other example and forums.

My case is an axisymmetric pipe of 0.1m radius and 2m long.

I am trying to use the parabolic equation
u = umax( 1-(r/R)^2)

I want umax to be 1m/s and this is what I have done so far.

Code:
 in U
inlet
    {
        type            groovyBC;
    variables    "Vmax=1.0;yp=pts().y;maxY=max(yp);para=(1-pow(pos().y/0.1,2))*normal();"
    valueExpression    "Vmax*para";
    value        uniform (1 0 0);
    }
I have added the libs in controlDict as well. However, instead of a parabolic curve, I am getting an oscillating curve and the value of the velocity is remarkably low.

oscillation.jpg

Any idea how this can be corrected?

I am using these versions:
swak4Foam version - 0.4.1
OpenFOAM 2.3.1

Thanks
mmalik is online now   Reply With Quote

Reply

Tags
parabolic flow, swak4faom

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
combining parabolic inlet velocity profile with time varying velocity vector values jawapasu OpenFOAM 2 June 2, 2018 17:52
UDF for 3d inlet parabolic velocity profile ? shahzeb irfan Fluent UDF and Scheme Programming 10 March 28, 2016 15:00
velocity inlet and ideal gas simultaneously-what's wrong? preetam69 FLUENT 0 September 28, 2013 04:51
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
How to define a parabolic velocity inlet of particles with UDF zumaqiong FLUENT 2 February 22, 2010 09:46


All times are GMT -4. The time now is 08:30.