1-dimensional FDTD simulation

Source: Internet
Author: User

The principle of FDTD is to write the Maxwell two vector curl equation into a difference form, and use numerical method to find its solution.

Assuming that the electromagnetic field is in the direction of x-axis, the electric field has only the z-axis method component and the magnetic field has only the y-axis direction. Two curl equations can be written in the following form

The electric field and the magnetic field are written down in the form

Continuous equations written in differential form

Where the constant term factor

wherein the characteristic impedance of the free space is 377 ohms, so that the recursive relationship such as

Available representations when implemented

Thus the differential recurrence equation is obtained as follows

Hy (mm) = hy (mm) + (EZ (mm+1)-EZ (mm))/imp0;

EZ (mm) = EZ (mm) + (hy (mm)-hy (mm-1)) *imp0;

%1D FDTD with Source

SIZE = 200;
EZ = Zeros (1,size);
hy = Zeros (1,size);
imp0=377.0;
MaxTime = 10000;

For qtime = 0:1: MaxTime

for mm = 1:1: SIZE-1
Hy (mm) = hy (mm) + (EZ (mm+1)-EZ (mm))/imp0;
End
Figure (1); T_hy = Plot (hy);
Title (' Magnetic Field ');
for mm = 2:1: SIZE
EZ (mm) = EZ (mm) + (hy (mm)-hy (mm-1)) *imp0;
End
Figure (2); T_ez = Plot (EZ);
Title (' Electric Field ')
EZ (+) = EZ (+) + exp (-(qTime-30.0) * (qTime-30.0)/100.0);

% pause (0.01);
% RefreshData (t_hy);
% RefreshData (T_ez);
% Drawnow;
End

1-dimensional FDTD simulation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.