Beruflich Dokumente
Kultur Dokumente
q = −κ∇T (1)
f = aT + bx + cy 2 (2)
where a, b and c are constants, x and y are coordinate variables in the horizontal and vertical
directions, respectively, and the origin of coordinates is at the bottom left.
Derive the governing equation for the problem, including boundary conditions. Use finite volume
to discretize, and write stencils for an arbitrary volume in the center of the domain along with all
boundaries and corners.
Code
Use values of a/κ = −10; b/κ = 8; c/κ = −60; Tref = 20. Ly = 1; Lx = 4. Produce results for
resolutions of 8, 16 and 32 cells in the vertical dimension and four times as many in the horizontal.
For the solver, students in the main section should implement Jacobi iteration, while Honors
students should implement conjugate gradient.