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

How to create a case with a karman vortex using openfoam?

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

Like Tree3Likes
  • 1 Post By JBeilke
  • 1 Post By wyldckat
  • 1 Post By j-avdeev

Reply
 
LinkBack Thread Tools Display Modes
Old   December 4, 2012, 08:16
Default How to create a case with a karman vortex using openfoam?
  #1
New Member
 
Join Date: Dec 2012
Posts: 1
Rep Power: 0
dualshock is on a distinguished road
Hi guys,

I am a newbie at using openfoam and was recently requested to create a simulation of a flow over a cylinder with karman vortex behind the it and I have no idea how to begin. The geometry of the cylinder is shown below and the length of the no-slip wall on the top and bottom are both 15m. The height of the inlet and outlet are 5m. The inlet velocity of the fluid is 1m/s and the pressure at the outlet is 0 Pa. I would like to know how do I create the above geometry and which solver should I be using (potentialfoam or icofoam?). In addition what is the condition for karman vortex?
Attached Images
File Type: png Picture1.png (1.9 KB, 64 views)
dualshock is offline   Reply With Quote

Old   December 4, 2012, 10:06
Default
  #2
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
hi
top and bottom should be symmetryplane left surface inletoutlet and right zerogradient
if you want slip on cylinder must use potentialfoam and symmetryplane on cylinder.if no-slip use icoFoam and fixedValue on cylinder with value uniform (0 0 0).its easier to make mesh in fluent and enter to openfoam with fluentMeshToFoam in command shell.
if have any question tell me.
immortality is offline   Reply With Quote

Old   January 29, 2013, 00:24
Default Hi !!
  #3
New Member
 
jobito_2012
Join Date: Oct 2012
Location: Chile
Posts: 28
Rep Power: 4
jobito_2012 is on a distinguished road
Quote:
Originally Posted by dualshock View Post
Hi guys,

I am a newbie at using openfoam and was recently requested to create a simulation of a flow over a cylinder with karman vortex behind the it and I have no idea how to begin. The geometry of the cylinder is shown below and the length of the no-slip wall on the top and bottom are both 15m. The height of the inlet and outlet are 5m. The inlet velocity of the fluid is 1m/s and the pressure at the outlet is 0 Pa. I would like to know how do I create the above geometry and which solver should I be using (potentialfoam or icofoam?). In addition what is the condition for karman vortex?

I need to do the same problem, can you send me the file please...I´m learning OpenFoam...thanks!!

my mail is aguilera1623@mail.com
jobito_2012 is offline   Reply With Quote

Old   January 29, 2013, 08:09
Default
  #4
Senior Member
 
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 185
Rep Power: 9
JBeilke is on a distinguished road
Here is a ready to run example where I used pimpleFoam. It contains a coarse and a fine grid created with GridPro. Have fun.

www.beilke-cfd.de/Karmann_OpenFoam.tar.gz
vaveila_m likes this.
JBeilke is offline   Reply With Quote

Old   January 29, 2013, 11:38
Default Ok! :)
  #5
New Member
 
jobito_2012
Join Date: Oct 2012
Location: Chile
Posts: 28
Rep Power: 4
jobito_2012 is on a distinguished road
Quote:
Originally Posted by JBeilke View Post
Here is a ready to run example where I used pimpleFoam. It contains a coarse and a fine grid created with GridPro. Have fun.

www.beilke-cfd.de/Karmann_OpenFoam.tar.gz

Ok!! thanks a lot...I will review the files
jobito_2012 is offline   Reply With Quote

Old   May 2, 2014, 08:17
Default
  #6
Member
 
Avdeev Evgeniy
Join Date: Jan 2011
Location: Togliatty, Russia
Posts: 52
Blog Entries: 1
Rep Power: 12
j-avdeev will become famous soon enough
Send a message via Skype™ to j-avdeev
It works!
Thanks, JBeilke.
http://youtu.be/hZm7lc4sC2o
j-avdeev is offline   Reply With Quote

Old   May 2, 2014, 08:29
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
FYI: I've moved this thread to the OpenFOAM forum, as it was wrongly placed at the Main CFD forum.
vaveila_m likes this.
wyldckat is offline   Reply With Quote

Old   March 17, 2015, 05:22
Default How to make it work
  #8
New Member
 
Jeremy
Join Date: Oct 2014
Posts: 6
Rep Power: 2
jemz is on a distinguished road
Quote:
Originally Posted by j-avdeev View Post
It works!
Thanks, JBeilke.
http://youtu.be/hZm7lc4sC2o
Hi j-avdeev,

I am trying to make the tar.gz file that JBeilke uploaded. I did the following commands:
tar -zxvf Karmann_OpenFoam.tar.gz
cd karmann_gridpro_pimple
pimpleFoam

I also tried simpleFoam command but it didnt work. =(

Here is the error code:

--> FOAM FATAL IO ERROR:
keyword laplacian(rAUf,p) is undefined in dictionary "/home/JeremyVM/OpenFOAM/JeremyVM-2.3.1/run/karmann_gridpro_pimple/system/fvSchemes.laplacianSchemes"


file: /home/JeremyVM/OpenFOAM/JeremyVM-2.3.1/run/karmann_gridpro_pimple/system/fvSchemes.laplacianSchemes from line 44 to line 50.


From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 437.


FOAM exiting

Is it more complicated than this? Please help. I really new to OpenFoam and I need to run some tests that is computationally and process intensive. This is a really good example but I can't get it to work.

Please Advise.

Jeremy
jemz is offline   Reply With Quote

Old   March 17, 2015, 06:49
Default
  #9
Member
 
Avdeev Evgeniy
Join Date: Jan 2011
Location: Togliatty, Russia
Posts: 52
Blog Entries: 1
Rep Power: 12
j-avdeev will become famous soon enough
Send a message via Skype™ to j-avdeev
Quote:
Originally Posted by jemz View Post
Here is the error code:

--> FOAM FATAL IO ERROR:
keyword laplacian(rAUf,p) is undefined in dictionary "/home/JeremyVM/OpenFOAM/JeremyVM-2.3.1/run/karmann_gridpro_pimple/system/fvSchemes.laplacianSchemes"
It says that "keyword laplacian(rAUf,p) is undefined" and if you open system/fvSchemes you will not find it.
It is happen because case was made and worked on older OpenFOAM version - I see you use the newest 2.3.1. And OpenFOAM developers have changed some variables-fields names (I hope they had reasons, becaue it happens frequently, almost every release ).

So. I think if you add

Code:
laplacian(rAUf,p) Gauss linear corrected;
instead of

Code:
laplacian((1|A(U)),p) Gauss linear corrected;
to file system/fvSchemes it will start work fine.
j-avdeev is offline   Reply With Quote

Old   March 17, 2015, 08:07
Default
  #10
New Member
 
Jeremy
Join Date: Oct 2014
Posts: 6
Rep Power: 2
jemz is on a distinguished road
Quote:
Originally Posted by j-avdeev View Post
It says that "keyword laplacian(rAUf,p) is undefined" and if you open system/fvSchemes you will not find it.
It is happen because case was made and worked on older OpenFOAM version - I see you use the newest 2.3.1. And OpenFOAM developers have changed some variables-fields names (I hope they had reasons, becaue it happens frequently, almost every release ).

So. I think if you add

Code:
laplacian(rAUf,p) Gauss linear corrected;
instead of

Code:
laplacian((1|A(U)),p) Gauss linear corrected;
to file system/fvSchemes it will start work fine.
Thank you for your help!

Sorry I misunderstood. I got what you mean. Its working now. Thanks!

Last edited by jemz; March 17, 2015 at 15:31.
jemz is offline   Reply With Quote

Old   March 17, 2015, 15:05
Default
  #11
Member
 
Avdeev Evgeniy
Join Date: Jan 2011
Location: Togliatty, Russia
Posts: 52
Blog Entries: 1
Rep Power: 12
j-avdeev will become famous soon enough
Send a message via Skype™ to j-avdeev
Hi, jemz
I have tryed and it works in OpenFOAM 2.3.1 with following system/fvSchemes:

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
    default         Euler;
}

gradSchemes
{
    default         Gauss linear;
    grad(p)         Gauss linear;
    grad(U)         Gauss linear;
}

divSchemes
{
    default         none;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,k)      Gauss limitedLinear 1;
    div(phi,epsilon) Gauss limitedLinear 1;
    div(phi,R)      Gauss limitedLinear 1;
    div(R)          Gauss linear;
    div(phi,nuTilda) Gauss limitedLinear 1;
    div((nuEff*dev(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
    default         none;
    laplacian(nuEff,U) Gauss linear corrected;
//     laplacian((1|A(U)),p) Gauss linear corrected;
    laplacian(rAUf,p) Gauss linear corrected;
    laplacian(DkEff,k) Gauss linear corrected;
    laplacian(DepsilonEff,epsilon) Gauss linear corrected;
    laplacian(DREff,R) Gauss linear corrected;
    laplacian(DnuTildaEff,nuTilda) Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
    interpolate(U)  linear;
}

snGradSchemes
{
    default         corrected;
}

fluxRequired
{
    default         no;
    p               ;
}
jemz likes this.
j-avdeev is offline   Reply With Quote

Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[GAMBIT] How to plot S pipe mariam.sara ANSYS Meshing & Geometry 36 November 7, 2013 16:22
How to Create .msh file so that when converted to OpenFOAM will have some BC jaypatel OpenFOAM 11 June 7, 2012 10:33
karman vortex street help please SSeth STAR-CCM+ 7 January 10, 2011 12:31
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24
Kármán vortex street in cavitating flow behind bodies in the cavitation tunnel L. Könözsy Main CFD Forum 0 April 17, 2000 13:16


All times are GMT -4. The time now is 15:39.