Professional Documents
Culture Documents
HPC - Last Assignment Tips
HPC - Last Assignment Tips
hhhh
wow
hhhhhhh
i am a c++ fan
if c++ is the meaning of life, i'm not entirely sure I want to love anymore
Should we set the time step to be as small as 10^(-12) in order to get the 12 digits accuracy t*? But in
this case, we should iterate for about 4.24*10^11 times to reach t* = 0.424... My computer cannot do
that many iterations.
Should we apply Neuman boundary condition at the three boundaries without heating?
To get higher accuracy, we need more computing time. What should we choose?
Bye.
I don't understand what you mean. You have a square and you measure the value u at the centre of it,
and you ask when is this value going to be 1.
Are we only required to use forward and backward euler or are we also expected to experiment with
more complicated finite difference schemes?
You are not setting u. u is the temperature distribution over your domain at each timestep. It is a
function u(x, t).
You are only required to use forward and backward Euler. If you want to impress us, try something else
as well.
so each time step I calculate u_i and use it to calculate u_i+1, stop until the centre of u = 1.we can get t
base on the steps
Thank you
I considered the easiest case(N=3) when it only contains (0,0) the center as interior point. But the time I
calculate is 0.2...
Just to be clear, the Del u is the Laplacian which we approximate with the 5-point stencil?
I see. Nice idea. But it is not enough to get a physically relevant approximation.
@Tomo. Yes.
Thank you
Does it mean N must be big enough if we want to get the correct approximation?
the discretization points means we need increase the grid size of plane of the delta t?
the discretization points means we need increase the grid size of plane or the delta t?
From Timo Betcke to Everyone: 12:29 PM
@Yue. You have two discretisations, one in t and the other one in x. You need to refine both.
And are we expected to show the mathematical process for approximation method?
Not sure what you mean. You should well describe what you are doing, as always.
Should we explain both code and the theoretical idea behind it?
Thank you.
I want to discuss more about the value of x and y. They should belong to [-1,1]. Now I only know how to
set the width and length of the plate to be 2, but don't know how to set them exactly between -1 and 1.
@Tiantian. You discretise the plate with a finite difference grid. We have done exactly this many times.
The only difference is that we have chosen until now the square [0, 1]\times [0, 1]
Your choice.
Yeah, because it seems to be a lot of variable here. And I worried about the total processing time .
Why? If you have the discretisation matrix $A$ for the Laplacian as sparse matrix, each time-step is very
fast.
From Yue Zhang to Everyone: 12:39 PM
Yeah, because it seems to be a lot of variable here. And I worried about the total processing time .
Why? If you have the discretisation matrix $A$ for the Laplacian as sparse matrix, each time-step is very
fast.
Yeah, I will do more testing! Maybe it is a signal that I need to change my computer ,haha
The matrix A that discretises the Laplacian is the same for each timestep. So you only do this once. You
can take as template for example the discretise_poisson function. Just be careful with the sign and the
boundary conditions.
thank you!
No. Your initial condition is u=0. One boundary side has the value u=5. The other ones have the values
u=0.
I see, thanks
I don’t know where should I put x,y with [-1, 1] interval, as we use discretise_poission function, I only
need to set the input vector, where should I set the x and y.
we should have u=5 for one boundary and 0 for the rest boundaries. Does that mean they equal to 5 (or
0 ) at any t?
and also, do the two vertexes of the boundary (u=5) equal to 5 or 0? thank you!
From Timo Betcke to Everyone: 12:55 PM
Yes. The sides always equal 5 or 0, depending on where you are. The corner point is a good question.
There is some good mathematics involved. In principle, for us it does not matter. Just choose.