Skip to content

eigenmatt/reverse-sprinkler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains the STL files and OpenFOAM control files that were used for the reverse sprinkler simulations in https://zmatt.net/reverse-sprinkler-part-3/

Basic usage:

  1. Ensure OpenFOAM is installed and in the path, e.g. source /usr/lib/openfoam/openfoam/etc/bashrc. I used ESI OpenFOAM v2406.
  2. Run make at top level to generate meshes for all designs, or run make within a specific geometry directory (e.g. designA/geometry) to generate a mesh for that design.
  3. Run make within a case directory (e.g. designA/steady-100) to run a simulation.
  4. Open the case.foam file in Paraview for analysis.

By design, most files within the case directories are symlinks, for example constant/turbulenceProperties is a symlink to one of the shared/constant/turbulenceProperties.* files, this symlink can be modified to change the turbulence model. In the committed cases, the steady-100 cases use a laminar model (no turbulence). The transient-initial-500 case uses k-omega SST to generate sane initial conditions for transient simulation, and transient-500 then uses k-omega SST DDES (delayed detached eddy simulation) for the actual transient simulation.

The flows are set up to be pressure-driven, with the outlet pressure derived from the target Reynolds number supplied in the params file in each case directory. A correction factor in that file that can be altered to converge on the required flow rate.

The five designs were drawn in Onshape:

If modifying the designs, export to STL, ensuring that STL Format is set to Text and "Export unique parts as individual files" is checked. Then extract the resulting zip file and run the two parts through util/mergeSTL.py to generate designX/constant/triSurface/geometry.stl.

About

Reverse sprinkler simulation files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published