L-infinity

Computational fluid dynamics, multiphase flows, machine learning, OpenFOAM

24 Feb 2021

Some calculus with torch::autograd

Most neural networks learn by minimizing a scalar-valued error. There is ample information about the back-propagation c...
14 Dec 2020

Training a PyTorch neural network on cell-centered OpenFOAM fields

This post covers the use of the PyTorch C++ API for approximating cell-centered fields (pressure, temperature, density, ...
25 Nov 2020

An almost minimal example of an object-oriented library in OpenFOAM

Computational Fluid Dynamics (CFD) models often share the same data and differ in how this data is processed, which orga...
24 Aug 2020

Learning cos(x) using torch::Sequential from the PyTorch C++ API

This post covers the use of the PyTorch C++ API for approximating a function of a single variable using a Neural Network...