Professional Documents
Culture Documents
Assignment #1 System of Equations and Finite Difference Method
Assignment #1 System of Equations and Finite Difference Method
Question 1: Set up a system of 3 equations and 3 variables (opt for your own values for the
matrix elements)
a11*x1+a12*x2+a13*x3=b1
a21*x1+a22*x2+a23*x3= b2
a31*x1+a32*x2+a33*x3=b3
Question 2: Refer to the sample program provided. After familiarizing with the same, modify
it to solve the problem
𝑑2𝑉
= 𝛿(𝑥 − 7)
𝑑𝑥 2
with the boundary conditions V(0)=0, and dV/dx =0 at x = L (refer the code for the
parameters). Plot your results and explain why your results make sense
Use your code to address the following problems. For each case, plot the V and electric field
as a function of x, and compare with analytical results (if available). Clearly identify and
discuss the presence of discontinuities/unique features, if any.
𝐹
Use the following parameters, unless otherwise specified 𝜖 = 3.9 × 8.854 × 10−14 𝑐𝑚, 𝐿 =
10−4 𝑐𝑚
(i) Simple parallel plate capacitor. 𝜌 = 0, V(0)=0, and V(L)=1
(ii) Parallel plate capacitor with 𝜌 = 𝛿(𝑥 − 0.7 × 10−4 𝑐𝑚) and two dielectrics as given
below. Note that the grid spacing for each region is also mentioned (V(0)=0, and V(L)=1).
𝐹
for 0 < 𝑥 < 0.5 × 10−4 𝑐𝑚, 𝜖 = 3.9 × 8.854 × 10−14 and grid spacing is 50nm
𝑐𝑚
𝐹
for 0.5 × 10−4 𝑐𝑚 < 𝑥 < 10−4 𝑐𝑚, 𝜖 = 9 × 8.854 × 10−14 𝑐𝑚 and grid spacing is 20nm