CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Problem with Parabolic Velocity Profile

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 25, 2015, 09:46
Default Problem with Parabolic Velocity Profile
  #1
New Member
 
Allan Carey
Join Date: Nov 2015
Posts: 3
Rep Power: 10
Allan_Carey93 is on a distinguished road
Hi everybody,

I am trying to simulate flow around a cylinder in an asymmetrical channel, and am having problems with my parabolic inlet velocity.
Attached is a picture of my geometry, D=0.1:

Here is the codeDict file that I have been given to run the parabolic profile.
parabolicFixedValue
{
code
#{
operator==
(
35.7*0.001*(0.41*(patch().Cf().component(vector::Y ) + 0.16) - (patch().Cf().component(vector::Y) + 0.16)*(patch().Cf().component(vector::Y) + 0.16))*vector(1,0,0)
);
#};
}

I am trying to calculate the coefficients of lift and drag for the cylinder but cannot get the correct values. I think the problem is in this codeDict file but am not sure.

Thanks is advance for any help,

Allan
Attached Images
File Type: png Screenshot from 2015-11-25 14:41:40.png (51.7 KB, 42 views)
Allan_Carey93 is offline   Reply With Quote

Old   November 25, 2015, 09:48
Default
  #2
New Member
 
Allan Carey
Join Date: Nov 2015
Posts: 3
Rep Power: 10
Allan_Carey93 is on a distinguished road
Sorry if enough information has not been included in the question, I am new to Openfoam. I think that this is a standard enough question so hopefully someone can answer it.
Allan_Carey93 is offline   Reply With Quote

Old   November 25, 2015, 12:39
Smile
  #3
Senior Member
 
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11
rapierrz is on a distinguished road
Hi Allan,

you can do this with GroovyBC,it's very easy
rapierrz is offline   Reply With Quote

Old   November 26, 2015, 03:44
Default
  #4
Member
 
Pekka Pasanen
Join Date: Feb 2012
Location: Finland
Posts: 87
Rep Power: 14
zordiack is on a distinguished road
There has just been a commit providing fixedProfile inlet boundary condition. Have you tried this yet:

https://github.com/OpenFOAM/OpenFOAM...b2bdf3ac8cd028
zordiack is offline   Reply With Quote

Old   November 26, 2015, 06:11
Default
  #5
New Member
 
Allan Carey
Join Date: Nov 2015
Posts: 3
Rep Power: 10
Allan_Carey93 is on a distinguished road
Thanks lads, I fixed it!

Allan
Allan_Carey93 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
[swak4Foam] problem with Velocity Profile with groovyBC ssss OpenFOAM Community Contributions 1 August 7, 2014 14:44
pressure contour and velocity profile problem alee1293 Main CFD Forum 0 July 18, 2014 10:31
Parabolic velocity profile in a rectangular channel nithishgupta OpenFOAM Running, Solving & CFD 3 October 30, 2013 05:39
urgent help parabolic velocity profile in 3D Angeline FLUENT 0 January 27, 2011 07:49
Multi step transient UDF velocity profile problem William177 FLUENT 1 February 3, 2008 06:47


All times are GMT -4. The time now is 16:56.