Outline

Automate simulations is very effective. Have something like an optimizer feeding the simulations with parameters and evaluate the results even better.

In this tutorial I will show how to optimize a pipe bend using the following software:

Geometry creation – Ruby (japanese Python) https://www.ruby-lang.org/en/
Volume mesh – cfMesh https://sourceforge.net/projects/cfmesh/
CFD simulation -ESI OpenFOAM (simpleFoam solver) https://www.openfoam.com/
Optimizer – several different from R https://www.r-project.org

The optimization will be set up using scripts. It’s a very flexible approach and often much better than a GUI-based approach. If you’re using a GUI-based program you will eventually have to wait for next release at some point. Then the feature you want will be implemented (if you are lucky). If you script and program you will never reach a dead end.

Geometry creation will be described within a couple of days.