A simple OpenFOAM solver for calculating the sign distance function (SDF) on given mesh based on the pre-defined patch.
- Version: Compatible with OpenFOAM7 (WSL2)
git clone https://github.com/pic-wang/sdfFoam.git
- Set up your OpenFOAM case with mesh.
- Specify the boundary patch from which you want to calculate the signed distance field. You can do this by setting the
wallPatchIDvariable in thesdfFoam.C
cd sdfFoamwmake
sdfFoam

