An open-source constrained turbulence generator