flaport / fdtd

A 3D electromagnetic FDTD simulator written in Python with optional GPU support
https://fdtd.readthedocs.io
MIT License
454 stars 116 forks source link

Where to obtain Total field Array #67

Closed akrabawi closed 7 months ago

akrabawi commented 7 months ago

The total field array is _E which has the dimensions [Nx, Ny, Nz, 3] with Ex = [:, :, :, 0] Ey = [:, :, :, 1] Ez = [:, :, :, 2] Where in the code we combine them to have a single array for the total field? like _E = np.sum(_E, axis=3) will this be accurate to do ?

flaport commented 7 months ago

We never combine them. The three components are independent of each other.