CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Initial Velocity Field - 2D Turbulence in a Periodic Box (https://www.cfd-online.com/Forums/openfoam-solving/118439-initial-velocity-field-2d-turbulence-periodic-box.html)

AHutchison May 28, 2013 00:18

Initial Velocity Field - 2D Turbulence in a Periodic Box
 
Hi Foamers,

I'm trying to model the two dimensional turbulence of a fluid in a periodic box similar to this example:
http://www.youtube.com/watch?v=HIFLOv4eimk

I'm having trouble determining the initial conditions, at the moment I'm just trying to get a random velocity field so I can run the program and check that it works. Once I know it's working I will be looking to create an initial velocity field such as the one below, 13 seconds in:
http://www.youtube.com/watch?v=-fDwnyi_EkM

I've had a bit of a search through the forums and found a thread which suggested using funkySetFields to create a random inital velocity field:
http://openfoamwiki.net/index.php/Co...RandomVelocity


**EDIT** I'm also using incompressible pimpleFoam
I'm not sure how to implement this code into my program, should it be inserted into the 'U' document in the '0' file? I'm very new to this so any help no matter how basic is appreciated!


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