Title | Development of CFD Code NaSt3D\GP | ||||||
Participant | Frank Koster , Michael Griebel | ||||||
Keywords | Chorin projection method, staggered mesh, finite differences | ||||||
Description |
In this project we develop a sufficiently fast and accurate CFD code. NaSt3D\GP is a
C++ implementation of a Chorin type projection method. For the spatial discretization
finite differences on a non-uniform, rectangular mesh are employed. The temporal
discretization bases a first order forward Euler scheme (see also: current work).
Much emphasize is laid on the point that even complex problems,
such as flows around complicated geometries, can be defined in a very clear and easy
way, to rapidly obtain numerical results. Our approach rests on two concepts.
First, there is a simple macro-language with a few but powerful and meaningful key-words
to describe the flow configuration.
This allows the user to
The second concept is the clear and open structure of the code itself. This should allow for easy and save modifications of NaSt3D\GP for problems which are not yet covered, e.g. time-dependent inflow conditions. NaSt3D\GP is fully parallelized, but can be compiled in a single processor version if no message passing library is installed in the users environment.
| ||||||
Features of NaSt3D\GP | The following list summarizes basic properties of NaSt3D\GP:
| ||||||
Tools | Although the macro language is powerful, it does not contain solutions to
some frequent problems. First of all the generation of non-uniform
grids usually requires some interaction and iteration to obtain an appropriate
grid. Therefore a special grid generator (GridGen) was written to simplify this
process.
The second tool opens the door to the VRML world. A parser (vrml2nav) was
developed to translate VRML descriptions of objects to our macro language.
| ||||||
Current Work | Currently we validate the code.
Furthermore we have implemented a 2nd order Adams-Bashforth scheme to
improve the temporal discretization. This also has to be tested.
| ||||||
Numerical Examples |
A diffusion process:
This problem comes from a joint work with the Department for Pharmaceutical Technology of the university of Bonn. To quantify the effectiveness of insect repellents the correlation between position of midges and concentration in a rectangular box is determined. At the left side the concentration of the repellent is kept constant, while on the right side a slight flow from top to the bottom provides an almost vanishing concentration. A video system on top of the box detects the instantaneous positions of the midges and computes the statistics. Without the effects of the flow a linear decrease of the concentration from the left to the right side without any dependency on the height would develop. The task of the simulation was to determine the effects of the flow and to give estimates for the time, required to reach the steady state.
Backward facing step: We compared a full upwind discretization of the convective terms with a second order central difference. The simulation was run on a fairly coarse mesh of 96x40x59 points with a Reynolds number of 3000 with respect to the step height and the inflow velocity. In reality this flow becomes turbulent after the step. Obviously, the numerical diffusion introduced by the upwinding scheme is much larger than the diffusion and thus leads to an almost laminar flow. Note, the initial condition for upwind simulation was a turbulent field whose disturbances are not completely smoothed out.
| ||||||
Acknowledgements | NaSt3D\GP bases on the 3D CFD code NaSt3D originally developed in Munich. It was completely rewritten and restructured using C++. The most significant changes are non-uniform grids, new boundary conditions and parallelization with MPI. The grid generator is an improved version of a code written by H.J. Kaltenbach. |