Email: info@sourceflux.de - Phone: +49 (0)170 9693585

A changing cell set in OpenFOAM

tesla-voronoi

A changing cell set in OpenFOAM

OpenFOAM cell sets can be used for different stuff. For a project I am working on, I needed to modify a cellSet during run-time, store it and visualize it. The task seemed simple – maybe it still is if I have missed something really obvious – but I came across enough pitfalls to write this […] Read More

previewImageS01E01

Sourceflux TV Season one – snappyHexMesh Tutorial Part 1

We have announced the first season of  “sourceflux TV” last week and it is now time to release the season’s premiere. In this first episode, we deal with snappyHexMesh and how to set things up. Due to the required length, the tutorial is split into multiple parts, that will be released over the next months.

building-blocks-library

Building an OpenFOAM library

In the following posts, we’ll code some things that should be implemented as libraries. So as a preparation, this post covers how to build an OpenFOAM library. The library doesn’t do much – basically, this post shows how to build an OpenFOAM “Hello World.” library. A previous post already covers programming applications in OpenFOAM. Whenever […] Read More

shell-script-wants-your-job

Extending the BASH PS1 variable for OpenFOAM

When would extending the BASH PS1 variable for OpenFOAM be useful? If you have a lot of different configurations of the OpenFOAM platform that you are using/testing/programming, you might want the BASH Command Line Interface (CLI from now on) to let you know what is the current status. Otherwise you might wonder why doesn’t valgrind […] Read More

snappy_onlySurface_back

Setting up castellatedMesh in snappyHexMesh

This entry is part 2 of 2 in the series snappyHexMesh

This entry is part 2 of 2 in the series snappyHexMeshIn the previous part of the snappyHexMesh series, we were dealing with some steps in relation to the preparation of the geometry. The next step is of course to set up an initial snappyHexMesh dictionary, so that we can begin with the first meshing process. […] Read More

surfaceNormals_normalized_final

Preparing the Geometry

This entry is part 1 of 2 in the series snappyHexMesh

This entry is part 1 of 2 in the series snappyHexMeshIn the snappyHexMesh series, we are going to cover a lot of topics that arise when working on a real world geometry with snappyHexMesh. This post is the first post in this series and deals with preparing a given STL geometry. As a geometry, we […] Read More

Debug test switch.

OpenFOAM debug switch details

This entry is part 2 of 2 in the series source code testing

This entry is part 2 of 2 in the series source code testingCase-specific debug switch In the previous post, a class-level debug switch was set and used for all simulation cases in OpenFOAM, by modifying the global controlDict configuration file. Since the release of version 2.2.0 by the official developer team, it is possible to […] Read More

tumbler-snapper-test

OpenFOAM source code testing

This entry is part 1 of 2 in the series source code testing

This entry is part 1 of 2 in the series source code testingThe photo above shows a snapshot of  the  Tumbler Snapper atom bomb test – this happens to the source code that has low test coverage, much sooner than the tested code, it goes BOOM, when you least expect it. OpenFOAM source code testing […] Read More

honey-siona-karen

A shear rheometer using OpenFOAM

In some special cases it is possible to solve the the Navier-Stokes equation system exactly. The flow of a viscous fluid between two rotating cylinders is a good example of such a case. The Navier-Stokes equation system can be derived in cylindrical coordinates, and together with the appropriate boundary conditions, it is reduced to two […] Read More

laminar flow around a cylinder

Laminar flow around a cylinder

Introduction The two dimensional laminar flow around a cylinder is one of the cases everyone starts with when learning CFD, so in this post we show how to set up this simulation case in OpenFOAM. The icoFoam OpenFOAM solver implements the mathematical model for unsteady laminar flow, and the OpenFOAM native blockMesh mesh generator will […] Read More