cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Iterative equation and difficulties to pick values in a table for 2D FDTD

CyrilD
4-Participant

Iterative equation and difficulties to pick values in a table for 2D FDTD

Hello,

 

I am trying to program a system of 2D finite differences in time domain. I need to split the program into several parts. The cells on the edges of my table are defined by others equations since they carry boundary conditions.

My problem is the following : 

I use a double "for" loop in order to calculate the value of the temperature in the central cells. However, when I run the program, calculation has been made only for my jmax-1 row, I don't understand why I only have value in that row.

Another problem is that I can't manage to calculate temperature in a specific cell by adding the value of a neighbor cell.

 

If anyone has an idea of what's happeing, you're are more than welcome.

 

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions

May by this pictures help you

18-10-pdesolve-error[1].png18-11-Pde-Plate-Progr[1].png18-12-Counter-Plot[1].png

View solution in original post

1 REPLY 1

May by this pictures help you

18-10-pdesolve-error[1].png18-11-Pde-Plate-Progr[1].png18-12-Counter-Plot[1].png

Top Tags