Lid driven cavity problem solved using stream function vorticity approach. Buoyant forces are considered and energy equation is also solved on top of transport and continuity equations. The final form of the nondimensionalized equations which are solved for here are:
Where
Boundary conditions are
Also for Reynolds number and Prandtl we have the definitions stated below:
The results are written to a .VTK format and can be post-processed via Paraview. To run the code simply use:
g++ -ggdb3 -O1 -std=c++23 -Wall -Wextra -pedantic -o sfvEnergyCavity.out sfvEnergyCavity.cc