Running PyTorch models in OpenFOAM – basic setup and examples

Why PyTorch Docker image with OpenFOAM and PyTorch Local installation of LibTorch Setting up Visual Studio Code Compiling examples using wmake and CMake Additional links to resources Summary Incorporating data-driven workflows in computational fluid dynamics (CFD) is currently a hot topic, and it will undoubtedly gain even more traction over the months and years to …

Running PyTorch models in OpenFOAM – basic setup and examples Read More »

Minimizing the size of Docker images using multi-stage builds

A multi-stage build version of hello world Single-stage build of dummyFoam Analyzing library dependencies Multi-stage build of dummyFoam Summary When compiling a new high-level application or utility that will be shipped as a container, ideally, you want to start from a base image that comes as close as possible to the build-environment you need to …

Minimizing the size of Docker images using multi-stage builds Read More »

A detailed look at the OpenFOAM-plus Docker workflow

This article is all about what the installOpenFOAM script does, what the startOpenFOAM script does, and ways to ship your OpenFOAM/solvers/utilities using Docker. The quickest way to get a running OpenFOAM installation on any Linux distribution (or even Mac and Windows) is probably via a Docker image. In case you have never heard of Docker, …

A detailed look at the OpenFOAM-plus Docker workflow Read More »

3 ways to run tutorials in OpenFOAM

Tutorial Requirements a working installation of OpenFOAM (very) basic knowledge of Linux and the Shell Tutorials – The starting point of almost every simulation Tutorials are an interactive way of transferring knowledge. They are a kind of recipe that provides you with the necessary steps to complete a particular task. The maintainers of OpenFOAM deliver …

3 ways to run tutorials in OpenFOAM Read More »