• CFD,  openSUSE

    Installing Salome-Meca 2009 on OpenSUSE 11.1

    Salome® is a very powerful open source  integrated platform for numerical simulations, including an advanced computational code, called Code Aster®. My interest in Salome is due to its geometry generation capabilities, because it integrates a versatile CAD and a mesher, with automatic generation of hexahedral and tetrahedral meshes. The geometry generation is very useful also to create .stl files to use with tools like OpenFOAM® snappyHexMesh automatic mesh generator. Installing Salome from sources might be challenging, and packaging it for a specific distribution represents a lot of work. However, an alternative and easier way to install Salome on a Linux system is represented by the self-contained package Salome-Meca, which can…

  • CFD,  openSUSE

    Adobe Reader 9.1 on openSUSE 11.1 64 bit

    A new version of Adobe Reader is available from Adobe’s website. To download it select the English version, and Linux – x86 RPM to obtain the RPM package. No 64 bit version is available, as a consequence some additional work is necessary to make the browser plugin work. The procedure is very simple: Download the RPM and install it using the command: rpm -Uvh AdbeRdr9.1.0-1_i486linux_enu.rpm Type the following command in a root console: ln /opt/Adobe/Reader9/Browser/intellinux/nppdf.so /usr/lib/browser-plugins/nppdf.so At this point Firefox will use the browser plugin to open PDF files. Note: If you have a previous version of Adobe Reader installed, remove it before proceeding with the installation. To perform this…

  • OpenFOAM

    Installing OpenFOAM 1.5.x on OpenSUSE 11.1

    I have recently installed OpenFOAM 1.5.x following the procedure I explained in this post some time ago. With OpenSUSE 11.1, paraview and paraFOAM work properly after being recompiled following these simple instructions: Install OpenSUSE 11.1, which can be downloaded from here. Install qt4-devel: as root, type zypper in libqt4-devel Download OpenFOAM 1.5 from git repository (See here) Download the third-party packages from OpenCFD site Source the bash configuration file for OpenFOAM, as usual. Edit ~/OpenFOAM/ThirdParty/ParaView3.3-cvs/CMakeLists.txt and comment out the line: MESSAGE(SEND_ERROR “Qt ${QTVERSION} not supported. Please use Qt 4.3 (you may need to clean your dirtied cache).”) Compile paraview and its reader following the instructions provided in OpenFOAM 1.5.x README…

  • OpenFOAM

    OpenCFD releases patched OpenFOAM 1.5

    OpenCFD released a patched version of OpenFOAM 1.5 today, via a git repository. You can find the official announcement here. The procedure to install it on openSUSE 11.0 is straightforward: Be sure to have git installed. You can check it with rpm -qa git If it is not installed, you can easily install it with the command (as root): zypper in git provided you have the OSS repository in your repository list (check with zypper lr, and eventually add it using Yast -> Software -> Installation sources). As a user, download the OpenFOAM patched source code using the command: git clone git://repo.or.cz/OpenFOAM-1.5.x.git This will create a directory called OpenFOAM-1.5.x, containing…

  • OpenFOAM

    Porous zone in OpenFOAM

    OpenFOAM offers an easy way to solve for a single flow in systems with porous zones, with the possibility of specifying the porosity and to use Darcy-Forchheimer or power law models. This feature is very versatile, allowing the user to specify also porous zones not aligned with the main reference frame and multiple porous zones in the same case. Currently this feature is implemented in a compressible flow solver (rhoPorousSimpleFoam), with both an explicit and an implicit treatment of the momentum source term due to the presence of the porous zone. I will show the basic functionalities of this OpenFOAM feature with a simple example of a 2D channel made…

  • OpenFOAM

    Unsteady boundary conditions in openFOAM

    I recently had to help a friend setting up a case in OpenFOAM, where a ramp boundary condition for the velocity was required. Apparently OpenFOAM doesn’t offer this boudary condition, or at least it might seem so at a first impression. Actually, OpenFOAM offers a very general way to specify unsteady boundary conditions called timeVaryingFixedValue, which can read a data set from a text file, interpolate them with respect to time and use them to generate the unsteady boundary condition. I will show how to use this boundary condition with a simple example of a ramp for a velocity boundary condition. We want the velocity to ramp from the value…

  • OpenFOAM

    OpenFOAM introductory course

    As a user of OpenFOAM who received a lot of free help from the developers, I think that helping spreading the voice of the OpenFOAM training course is the minimum I can do. ICON organizes an introductory course to OpenFOAM  on Thursday 3rd April and Friday 4th April 2008, at Beaumont House, Windsor, UK. The main goals are: Introduce C++ within the OpenFOAM context Explore the OpenFOAM code structure and commonly used classes Analyse, modify and create basic solvers and utilities Understand and customise basic OpenFOAM libraries You can find further information on the ICON site.

  • CFD

    Contours plots with gnuplot

    Working in CFD, I often have to create contours plots starting from rough data in a text file generated by in house codes. This can be easily accomplished using gnuplot. Here you can see a simple example of what you can do. Being an openSUSE user, I will explain how to install gnuplot on this distribution, but the instructions to generate contours plots are absolutely general. The installation of gnuplot on openSUSE 10.3 is straightforward. Just use the 1-click install link available here, and follow the procedure shown by the installer. Gnuplot requires the data to be saved in a text file organized in one of the two following ways:…

  • OpenFOAM

    The OpenFOAM extensions project has been launched

    The OpenFOAM community announced the OpenFOAM extension project, whose goal is to open the OpenFOAM CFD toolbox to the community contributed extensions. The project consists mainly in a SVN site for developers and researchers, to easily share code developed using the OpenFOAM toolkit. The project’s home page, hosted at Sourceforge.net, can be found here, while further information is available in the announcement made on the OpenFOAM discussion board. This content of this message is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM® and OpenCFD® trade marks.