As I lack the discipline required to keep my desktop uncluttered, I am aiming for a simple bash script, that moves old files and folders into a designated folder on my desktop. Installing a separate software to achieve that seemed to be a little bit redundant, so I tried to come up with a fancy [...]
Author Archive
Parameter variation in OpenFOAM using PyFoam
By Jens in OpenFOAMPerforming parameter variations can be stressful, especially if some parameters have to be altered in various places in an OpenFOAM case. This is where the python modules of PyFoam come in quite handy. I assume, that you have a basic knowledge on how an OpenFOAM case is structured and that you are familiar with programming [...]
Tags: linux, OpenFOAM, programming, PyFoam, python, Software
Compile VTK on Snow Leopard
By Jens in OpenFOAMCompiling VTK on Mac OS X 10.6 turned out to be much harder than on the Unix systems, I’ve done that on recently. Unfortunately I did not find any detailed data on how to choose the installation parameters properly. After a lot of try and error and some research, the following procedure worked for me [...]
Plotting massive datasets on the fly
By Jens in OpenFOAMOne of the hassles with working on a distant HPC is that you need to push and pull huge amounts of data back and forth. This wouldn’t be a big issue if you would have a really fast internet connection and/or if you would just need to do that once a day. Unfortunately, neither is [...]
Remove brackets from file
By Jens in OpenFOAMRemoving brackets from a huge datafile can be done in multiple ways, but from my point of view, using the unix command sed and regular expressions is the fastest and easiest way to do that. sed -e "s/[(,)]//g" $file > output This comes in handy, if you need to plot data, that is located on [...]
Snap edges with snappyHexMesh
By Jens in OpenFOAMMaking use of snappyHexMesh for the mesh generation polarizes, some love it and some hate it. I personally switch between love and hate, depending on the efforts that need to be taken, to get a proper mesh. The major drawback of snappyHexMesh is that it does not respect sharp edges, but creates these jagged edges [...]
Tags: OpenFOAM, snappyHexMesh
Replace Textmate by vim
By Jens in Apple, WebFirst of all, this is not going to be yet an other hot tempered discussion on which editor is the best, but a description why and how I switched my workflow from Textmate to vim. 1. Why? This is an easy one. As you might know or at least guess, I am editing files on [...]
snappyHexMesh Tutorial Part 2
By Jens in OpenFOAM, StudiesThe first snappyHexMesh tutorial is more or less a little extended listing of the information gained from the OpenFOAM User’s Guide. This tutorial gives a brief view on how to setup the background mesh and how refinement regions should be configured. As an example, a container vessel is meshed within this tutorial. No prismatic boundary [...]
Tags: CFD, OpenFOAM, snappyHexMesh
Man gönnt sich ja sonst nichts
By Jens in WindsurfingEigentlich wollte ich ja nie wieder North-Sails Segel fahren, da mir die Letzten unter anderem bereits beim dritten Aufbauen gerissen sind. Als ich dann einmal von einer relativ kleinen Welle in Wijk sanft gewaschen wurde, entschied sich das Superstar – was ich damals gefahren bin – dazu, auf Höhe der Gabel einfach zu platzen. Daraufhin [...]
Tags: Windsurfing
snappyHexMesh Tutorial
By Jens in General, OpenFOAM, StudiesUpdate 26.12.2012: Download the geometry file Update 08.07.2010: Have a look to the second part of the snappyHexMesh tutorial! In order to use the automatic meshing tool snappyHexMesh, you have to create a raw background mesh. This can easily be achieved by using blockMesh of OpenFOAM. For this tutorial, I assume that you wish to [...]
Tags: CFD, OpenFOAM, snappyHexMesh