In the CFDPython series I showed the components of the Navier-Stokes equations and I've solved them one by one; this helped a lot in understanding the complexity of the momentum equations.
In this post I will show the effects of diffusion and convection in a passive scalar transport problem solved with OpenFOAM. The domain and mesh is taken from the shock tube problem.
The scalar is initiated with zero everywhere but for a 1 m strip at the middle of the domain, where the scalar has value 1; initialization is made with the setFields dictionary.
The required files for this type of analysis can be copied from the scalarTransportFoam tutorial, but need some editing.
In this post I will show the effects of diffusion and convection in a passive scalar transport problem solved with OpenFOAM. The domain and mesh is taken from the shock tube problem.
The scalar is initiated with zero everywhere but for a 1 m strip at the middle of the domain, where the scalar has value 1; initialization is made with the setFields dictionary.
The required files for this type of analysis can be copied from the scalarTransportFoam tutorial, but need some editing.