Skip to content

Instantly share code, notes, and snippets.

View Beramos's full-sized avatar

Bram De Jaegher Beramos

View GitHub Profile
@Beramos
Beramos / puzzler.jl
Last active January 12, 2020 22:57
Code to solve a specific jigsaw puzzle in Julia
#=
Created on Thu 9 Jan 2020
Last update:
@author: Bram De Jaegher
bram.de.jaegher@gmail.com
@author: Michiel Stock
michielfmstock@gmail.com
@Beramos
Beramos / openFOAM_trickery.md
Last active June 1, 2018 09:49
OpenFOAM_programming_tricksNtips (OF4)

OpenFOAM tricks and Tips

This file documents what I'm learning in OpenFOAM.

Lists

When programming in vanilla c++ one would use std::list for lists. However OpenFOAM has it's own implementation of the List class

Syntax:

List<type> varName (size);
@Beramos
Beramos / shearStressFunctionObject_controlDict
Last active January 19, 2025 15:23
OpenFOAM codedFunctionObject to calculate the shear stress at a wall (excluding normal stresses). More explanation and example case at https://github.com/Beramos/OpenFOAM_extensions/tree/master/wallShearStress_improved/
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;