python代写-SCEE09004
时间:2022-02-16
SCEE09004 Partial Differential Equations 3 Coursework 1
The following coursework is to be handed in to the ETO online dropbox by 16:00 on
Thursday the 17th of February 2022. This is coursework number 1 of 2. Each
coursework is worth 20% of the final mark.
You should submit the solution to this coursework in the form of a short report on
Learn. This report must be typed, with at least 2cm margins, a font size of 11pt and line
spacing of at least 1, and must not be longer than 8 pages. The title page does not count
towards the page limit.
The marks for this coursework will be awarded for the correctness of the solution
as well as for the clarity and logical progression of the solution. Details on laying out
mathematical calculations and general guidelines for the coursework are given on Learn.
1. [50]Consider an insulated pipe whose cross section is given by the following figure.
The temperature distribution in the red pipe can be described by the nondimensional
Laplace equation in cylindrical coordinates which is given by
∂2u
∂r2
+
1
r
∂u
∂r
+
1
r2
∂2u
∂θ2
= 0
The boundary conditions on the inside and outside of the pipe are given by
u(1, θ) = 0, 0 ≤ θ ≤ 2pi (1)
∂u
∂r
(3, θ) =
{
0, 0 ≤ θ < pi
1, pi ≤ θ < 2pi (2)
(a) [8]Describe the heat transfer situation given by the boundary conditions 1 and 2
and bring it into the context of a physical problem.
(b) [32]Calculate the analytical solution of the Laplace equation on the annulus with
the given boundary conditions.
Page 1 of 2 Continued
SCEE09004 Partial Differential Equations 3 Coursework 1
(c) [10]Plot the analytical solution and discuss the convergence of the Fourier series.
Remarks:
• Have a look at the exercise sheets and examples to get started.
• The combined solution needs to fulfil the boundary conditions.
2. [50]Using the Grid class defined in the Laplace-polar Jupyter notebook, complete
the function PolarLaplaceSolver to produce a numerical solution to the coursework
PDE using the bi-conjugate gradient solver from the scipy library.
You are reminded that your Python code will need to assemble both the A matrix
and the~b RHS vector so that the coefficients are those for the discretised version of the
nondimensional Laplace equation in cylindrical coordinates. You are also reminded
that their is a periodic boundary condition u(r, 0) = u(r, 2pi) which has implications
for the structure of the A matrix.
Write a short report in which you need to explain what you are doing, compare the
solution against the analytical solution, perform a grid convergence analysis and plot
the solution.
Your report should include the derivation of the stencil.
It should not include the whole Python code, but must include code fragments
implementing the periodic boundary, the Neumann boundary condition at r = 3 and
showing how the coefficients are calculated for the computational stencil needed for
the cylindrical coordinate version of the Laplace equation.
Page 2 of 2 END


essay、essay代写