I am continuing my dive into computational fluid dynamics. I would like to build a simple test case for modelling the flow around a cylinder in FEniCS and then continue to model turbulence in order to observe the Karman vortex street.I am a newby in both FEniCS and CFD. I have started to go through the FEniCS book and went through the first simple scripts in the tutorial.Since this is a standard problem and I do not like to re-invent the wheel, my question is: is there some tutorial available on how to do this? Even a not-well commented code / FEniCS script would do as a reference.I have googled this and did not get much out of it, which is why I ask here.
Tutorial for flow around a cylinder in FEniCS
fluid dynamics;fenics;vortex
I suggest you start by looking at the FEniCS Navier-Stokes demo which is documented here:http://fenicsproject.org/documentation/dolfin/1.2.0/python/demo/pde/navier-stokes/python/documentation.htmlFor your specific test case, you might want to look at the NSBENCH set of test problem (which are described in Chapter 21 of the FEniCS Book). The code for that book chapter is available athttp://launchpad.net/nsbench/The code for your test case (flow around a cylinder) can be found here:http://bazaar.launchpad.net/~nsbench/nsbench/main/view/head:/problems/cylinder.pyNote that this code depends on the interface defined by the solvers in NSBENCH, but it might still be useful to look at for how to set the boundary conditions, and how to design an interface for your own solver.