Install foam-extend 3.1 on CentOS 7

Preparation: 1. In order to install foam-extend 3.1, please make sure you have installed packages git, mercurial and subversion for source code retrieving, rpm-build for software packaging, gcc and g++ for compiling. sudo yum install rpm-build gcc gcc-c++ libstdc++-devel binutils-devel Continue reading Install foam-extend 3.1 on CentOS 7

Compile OpenFOAM 1.6-ext on Fedora 16 64bit

Download OpenFOAM 1.6-ext from the Internet You can use svn to get the whole extended source code: $svn co https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend openfoam-extend If you only want to download the 1.6-ext version, execute: $svn co https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.6-ext/ OpenFOAM-1.6-ext After first retrieving, you may Continue reading Compile OpenFOAM 1.6-ext on Fedora 16 64bit

Incompressible Viscous Turbulent Heat Transfer Energy Equation

Generally, incompressible viscous turbulent heat transfer energy equation is [latex]\dfrac{\partial T}{\partial t} + \nabla\cdot(\boldsymbol{U} T) = \alpha \nabla^2 T + \dfrac{\nu}{c_\mathrm{p}} [\nabla \boldsymbol{U} +(\nabla \boldsymbol{U})^\mathrm{T}]:\nabla \boldsymbol{U} [/latex] ddt(T) + div(U T) = alpha laplacian(T) + ((nu/cp (grad(U) + (grad(U)).T)) && Continue reading Incompressible Viscous Turbulent Heat Transfer Energy Equation

Time-Dependent Vector Boundary Conditions in OpenFOAM

OpenFOAM is one of the most famous open-source CFD toolbox, which current version is 1.6. In this version, there are some aspects changed, like: solver syntax, time-dependent vector boundary, integrating some flow models. Here, I will show you how to Continue reading Time-Dependent Vector Boundary Conditions in OpenFOAM

Transient Boundary Syntax Changed in OpenFOAM v1.5

Sometimes, implementing time varying boundary conditions for a transient simulation is interesting. A series of pressure (or other varibles) values should be read from a text file, and update the boundary at each timestep. the boundary scalar value type should Continue reading Transient Boundary Syntax Changed in OpenFOAM v1.5