# OpenFOAM

## gaussLaplacianScheme(3/3): Adding source terms – fvOptions

Here, we continue the modification of the solver myThermalConductionSolver using fvOptions. Please see the previous post Effect of adding source su =1, sp = 0 case If we keep su=1 in constant/tansportProperties, the source is modified from 9(-150 -80 -80 -70 0 0 -130 -60 -60) to 9(-150.01 -80.01 -80.01 -70.01 -0.01 -0.01 -130.01 -60.01 …

## gaussLaplacianScheme(1/3): Theory and implementation in OpenFOAM

How the discretisation of the laplacian term is done? explicit evaluations, orthogonal corrections … Notes made while reading through report by Jesper Roland. This report has detailed explanation on laplacianScheme abstract class, various macros like TypeName, New,… etc. Options for laplacian scheme A typical system/fvSchemes will read like below: Gauss is the only laplacian scheme …

## gaussLaplacianScheme(2/3): A test case in OpenFOAM

as I learned from the awesome book and from several posts in cfdonline This article is an outcome of an effort to learn programming in OpenFOAM. A basic conduction solver is made for the learning purpose. It is decided to document the same for the future reference. Understanding the fvMatrix (“A” matrix of Ax = …

## High Resolution schemes

HR scheme = Higher Order Scheme + a Convection Boundedness Criterion HR scheme can be obtained by either of the following method Smoothening an unbounded Higher Order scheme with diffusive flux. Enhancing a first order upwind scheme with a limited anti-diffusive flux (TVD schemes). Two frameworks used for convection boundedness are Normalized Variable Formulation (NVF) …

## How I learned to mesh a pipe using blockMesh

All I knew was the mesh generation for cavity case described in the user guide. But a small additional info for generating a curved edge was sufficient to understand how to make a pipe mesh. I came across a tutorial of wolfdynamics.com describing the whole process in a lucid manner. The following is the blockMeshDict …