https://9lib.org/document/zpnd1eoy-gradient-based-optimization-of-flow-through-porous-media.html