Giter VIP home page Giter VIP logo

laminar_flow_around_a_cylinder's Introduction

Simulation of flows past a cylinder at various values of Reynolds number with OpenFOAM

This set of simulations consists of 4 simulations that use the same geometry and mesh, but different values of the kinematic visosity $\mu$, and thus achieving different values for the Reynolds number in accordance with its definition: $Re=UD/\mu $.

Flow around a cylinder and the phenomenae that occur at various values of Re is a well known canonical case in fluid mechanics. I did theese simulations to solidify what i learned about CFD and get some practice in OpenFOAM. I ran simulations at Re values of: 1, 20, 55 and 100. The following image found in this paper ilustrates the resulting phenomenae.

Flow past a circular cylinder at different Reynolds number

Geometry and Mesh

Because of the simplicity of the geometry, I constructed it and its mesh using just BlockMesh. I divided the mesh into regions in the way shown in the picture below.

Flow past a circular cylinder at different Reynolds number

The mesh density is greater in the zones close to the cylinder and in the zones where the trailing wake is expected to be. I also used simple grading to create finer meshing in the most important regions.

Model setup

I used the icoFoam solver for all of the cases. The discretization schemes i used are fairly standard and can be found in the fvsSchemes dictionary. The same can be said for fvSolution. I used Scotch decomposition to split the domain into 8 parts and ran the simulations on my AMD FX-8320 CPU which were completed in reasonable time (less than 20 minutes for each).

Results

I visualized the results with the following animation which presents one seceond of the simulations with the first 0.1 seconds playing in a slower speed.

resU.mp4

The resulst are as expected. For the lowest Reynolds number there is no backflow. In the case in which the Reynolds number was 20 a steady backflow appears. At the Reynolds number of 55, we can see unsteady shedding of the flow, and at 100 we can see a fully devoloped Karman street.

I also made an animation of the case with a reynold's number of 100 with particle tracing added on.

re100.mp4

laminar_flow_around_a_cylinder's People

Contributors

pavlord98 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.