Posts Tagged ‘OpenFOAM’

January 22, 2012 0

Parameter variation in OpenFOAM using PyFoam

By in OpenFOAM

Performing 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: , , , , ,

November 4, 2010 0

Compile VTK on Snow Leopard

By in OpenFOAM

Compiling 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 [...]

Tags: , , ,

October 14, 2010 0

Plotting massive datasets on the fly

By in OpenFOAM

One 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 [...]

Tags: , , , ,

September 13, 2010 1

Remove brackets from file

By in OpenFOAM

Removing 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 [...]

Tags: , , , ,

July 14, 2010 0

Snap edges with snappyHexMesh

By in OpenFOAM

Making 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: ,

July 8, 2010 7

snappyHexMesh Tutorial Part 2

By in OpenFOAM, Studies

The 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: , ,

February 8, 2009 14

snappyHexMesh Tutorial

By in General, OpenFOAM, Studies

Update 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: , ,

February 1, 2009 2

iRhino STL export

By in General, OpenFOAM

Um von iRhino ein Modell als STL zu exportieren, genügt es nicht nur, den Weg über Datei-Export zu gehen und dann einfach das STL-Format auszuwählen. Das Programm spuckt dann leider immer Fehler aus. Allerdings kann man diese umgehen, indem man mit Bearbeiten-Objekte auswählen-Polygonnetze nur die Dreiecksflächen auswählt. Anschließend kann man mit Datei-Auswahl exportieren dann – [...]

Tags: ,

January 21, 2009 3

OpenFOAM 1.5 Installation

By in OpenFOAM, Studies

Bei OpenFOAM handelt es sich um grandioses Open Source Werkzeug, um kontinuummechanische Probleme numerisch zu simulieren. Soviel zur Theorie. Zuhause habe ich es auch wunderbar auf meinem Computer (Ubuntu 8.04) installiert bekommen, allerdings lief die Installation im Büro nicht so reibungslos ab, wie ich auf Basis der ersten Installation erwartet hatte. Weder unter OpenSUSE 10.3 [...]

Tags: , ,