Question: Please solve this problem using Matlab. Please show the modified code to get to the answers. Thanks in advance!! CP 6 [ 6 marks ]
Please solve this problem using Matlab. Please show the modified code to get to the answers. Thanks in advance!!
CP marks Consider the complex Ginzburg Landau GL equation
which arises in superconductor theory, quantum theory, and string theory. In this problem we aim to solve this GL
equation in the box with periodic boundary conditions in space and white noise as an initial condition.
Using a finite difference approximations of and gradu, we arrive at the semiimplicit discretisation
where is a suitably scaled version of the Poisson matrix. Notice we are treating the linear parts implicitly and the
nonlinear parts explicitly, which provides a good balance of stability and efficiency.
Starting from the initial condition we must solve at each time step
where A and
The code below
implements this method for a a certain choice of parameters and with
Howevever, the code is inefficient and too slow.
a Modify the code to improve it as best you can, using a builtin direct method to solve any required linear systems of
equations. Hints: Consider sparsity, factorisations, and block operators. Show your computing at and report on
both the original and improved timings to compute it
b Repeat a but now using a suitable iterative method to solve the linear systems. Compare with the timings from a
Hint: It's very easy to make the code fast if you are willing to get a nonsense answer! This solutions using your modified
code should look at least qualitatively similar to those in the original version. If they don't, that's a good indication that
you've done something wrong!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
