High Performance Computing
Coursework 2
Problem Domain
• Coursework taken from the field of Computational Fluid Dynamics (CFD)
Fluid dynamics based on three fundamental principles: (i) mass is conserved; (ii) Newton’s second law ;(iii) energy is conserved
Expressed as partial differential equations, showing how velocity and pressure are related, etc. (called governing equations).
Governing Equations
Problem Domain
• Coursework taken from the field of Computational Fluid Dynamics (CFD)
Fluid dynamics based on three fundamental principles: (i) mass is conserved; (ii) Newton’s second law ;(iii) energy is conserved
Expressed as partial differential equations, showing how velocity and pressure are related, etc. (called governing equations).
The coordinates and time are independent variables while velocity and pressure are dependent variables
• Computational Fluid Dynamics is the science of finding the numerical solution to the governing equations of fluid flow, over the discretized space or time
CFD code
The code in the coursework, called Karman, calculates the velocity and pressure of a 2D flow
The code writes the solution values into a binary file
➢ Understand the solution image
➢ varying shades
• Dark: low velocity, light: high velocity
➢ Adverse pressure near the surface of the obstacle
➢ Vortex: swirling region of rotating fluid
➢ Whitest areas at the topmost and bottommost points of the obstacle
➢ Wavy pattern in the downstream after the obstacle
➢ Wake region: a zone of low velocity and low pressure
Currently the code is sequential
The purpose of the coursework is to parallelize the code
Data and stencil
The area represented as a 2D Grid (discretize)
Calculate one point in each cell