A simple solver for calculating sign distance function (SDF) on given mesh based on defined patch.
- Version: Compatible with openfoam7 (WSL2)
git clone https://github.com/picpic117/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
wallPatchID
variable in thesdfFoam.C
cd sdfFoam
wmake
sdfFoam