|
[Sponsors] |
November 25, 2015, 10:46 |
Problem with Parabolic Velocity Profile
|
#1 |
New Member
Allan Carey
Join Date: Nov 2015
Posts: 3
Rep Power: 11 |
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 |
|
November 25, 2015, 10:48 |
|
#2 |
New Member
Allan Carey
Join Date: Nov 2015
Posts: 3
Rep Power: 11 |
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.
|
|
November 25, 2015, 13:39 |
|
#3 |
Senior Member
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11 |
Hi Allan,
you can do this with GroovyBC,it's very easy |
|
November 26, 2015, 04:44 |
|
#4 |
Member
Pekka Pasanen
Join Date: Feb 2012
Location: Finland
Posts: 87
Rep Power: 14 |
There has just been a commit providing fixedProfile inlet boundary condition. Have you tried this yet:
https://github.com/OpenFOAM/OpenFOAM...b2bdf3ac8cd028 |
|
November 26, 2015, 07:11 |
|
#5 |
New Member
Allan Carey
Join Date: Nov 2015
Posts: 3
Rep Power: 11 |
Thanks lads, I fixed it!
Allan |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] problem with Velocity Profile with groovyBC | ssss | OpenFOAM Community Contributions | 1 | August 7, 2014 15:44 |
pressure contour and velocity profile problem | alee1293 | Main CFD Forum | 0 | July 18, 2014 11:31 |
Parabolic velocity profile in a rectangular channel | nithishgupta | OpenFOAM Running, Solving & CFD | 3 | October 30, 2013 06:39 |
urgent help parabolic velocity profile in 3D | Angeline | FLUENT | 0 | January 27, 2011 08:49 |
Multi step transient UDF velocity profile problem | William177 | FLUENT | 1 | February 3, 2008 07:47 |