Skip to content

Pythonflu: Intro

April 17, 2011
Pythonflu:

Pythonflu is a python front-end to OpenFOAM(Open source CFD toolbox). It indent to define a new level of flexibility and user interaction scenario for numerical simulation software.

Installation from binaries
  • Identify the following installation parameters :
    • OpenFOAM version you have ( 1.7.1 or 1.6-ext )
    • Linux distribution you use ( OpenSUSE 11.3Ubuntu Maverick or Lucid )
    • CPU type you posses ( i386 or amd64 )
  • Make sure you have already installed corresponding version of OpenFOAM binary package (OpenCFD or Extended)
  • Choose and download proper pythonFlu binary package from SourceForge
  • Run the native package manager on the target package :
sudo rpm -i <URL to pythonFlu binary package>.rpm # for OpenSUSE
sudo dpkg --install <path pythonFlu binary package>.deb # for Ubuntu
User Configuration

Before using pythonFlu do not forget to configure OpenFOAM itself

source /opt/openfoam171/etc/bashrc # for OpenCFD OpenFOAM-1.7.1
source /usr/lib/OpenFOAM-1.6-ext/etc/bashrc # for Extended OpenFOAM-1.6
Getting Started

Create a working directory dedicated to the installed version of OpenFOAM:

mkdir -p ${FOAM_RUN}

Copy the tutorial examples directory from the OpenFOAM distribution to your working directory :

cp -r ${FOAM_TUTORIALS} ${FOAM_RUN}

Run the first example case of incompressible laminar flow in a cavity:

cd ${FOAM_RUN}/tutorials/incompressible/icoFoam/cavity
blockMesh
icoFlux

											

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: