A Computational Fluid Dynamics (CFD) solver designed in fenics for coupling with festim in order to have an advection field projected onto a hydrogen transport simulation domain.
Two case studies are used for verifcation, the lid driven cavity for testing the cfd solver, and the heat driven cavity for testing buoyancy effects.
The FEniCS project provides a Docker image with FEniCS and its dependencies (python3, UFL, DOLFIN, numpy, sympy...) already installed. See their "FEniCS in Docker" manual.
Get Docker here.
Pull the Docker image and run the container, sharing a folder between the host and container:
For Windows users:
docker run -ti -v ${PWD}:/home/fenics/shared --name cfd_verification quay.io/fenicsproject/stable:latestThe lid driven cavity is a simple cfd solver test case in which the top side of a cavity is given an imposed velocity condition, the location of the vorticies produced can be compared to a reference solution, in this case the reference paper is:
- Zhixiang Liu, et al., A multi-domain decomposition strategy for the lattice Boltzmann method for steady-state flows. Engineering Applications of Computational Fluid Mechanics, 10(1), 2016, DOI: 10.1080/19942060.2015.1092743
The heat driven cavity is a simple cfd solver test case in which the left and right side of a cavity is given imposed temperature conditions, velocity, temperature and pressure fields produced can be compared to a reference solution, in this case the reference paper is:
- B.S.V. Patnaik, C. Wan, G.W. Wei. A New Benchmark quality solution for the buoyancy-driven cavity by discrete singular convolution. Numerical Heat Transfer: Part B: Fundamentals, 40(March):199–228, 2001, DOI: 10.1080/104077901752379620
Install a FESTIM v0.10.0
pip install festim

