Skip to content

pic-wang/sdfFoam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

sdfFoam

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)

Example:

Calculate the distance from the grid to the surface of the square cylinder.

image

image

Usage

1. Download the source code

  • git clone https://github.com/pic-wang/sdfFoam.git

2. To use sdfFoam, follow these steps:

  • 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 the sdfFoam.C

3. Compile the solver:

  • cd sdfFoam
  • wmake

4. On your caseDict, running sdfFoam:

  • sdfFoam

About

A simple solver for calculating SDF function on given mesh.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published