fungyong
Newbie level 3
matlab permittivity of free space
Hi ppl,
I am new to this FDTD subject. Got a task to write a matlab code for 1 dimension. I don't really know how to start this coding.
Can someone help me?
The question is:
The equation is in a pdf file.
These two equations are readily programmed for solution by iteration.
For stability purposes Δx and Δt must be selected appropriately. Field values must
affect nearest neighbours only and a conservative choice is cΔt = 0.5Δx .
Use a geometry with 512 layers (or at least 400). The medium is free space
( ε0,µ0,σ = 0 ) except for layers 250-309 which are some type of dielectric
( εr,µ0,σ) . Each layer ( Δx) is 1.5 mm thick, so the dielectric is 90 mm thick.
Write a program that will show a sequence of plots of electric field versus cell
position for an incident 400 ps (to 0.001amplitude) Gaussian pulse at different
time steps. The dielectric slab should have a dielectric constant of 4 with = 0.
Show a plot of the field as a function of position after time steps of (a) 50 time
steps (b) 175 time steps (c) 300 time steps (d) 425 time steps (e) 450 time steps
and (f) 550 time steps.
If we take the Gaussian pulse width of 400 ps (w =40) and set xp = 0.2625, then
after 50 time steps the incident field should be at layer 200 (just in front of the
dielectric). This will ensure that all plots are the same for the same number of
time steps.
Hi ppl,
I am new to this FDTD subject. Got a task to write a matlab code for 1 dimension. I don't really know how to start this coding.
Can someone help me?
The question is:
The equation is in a pdf file.
These two equations are readily programmed for solution by iteration.
For stability purposes Δx and Δt must be selected appropriately. Field values must
affect nearest neighbours only and a conservative choice is cΔt = 0.5Δx .
Use a geometry with 512 layers (or at least 400). The medium is free space
( ε0,µ0,σ = 0 ) except for layers 250-309 which are some type of dielectric
( εr,µ0,σ) . Each layer ( Δx) is 1.5 mm thick, so the dielectric is 90 mm thick.
Write a program that will show a sequence of plots of electric field versus cell
position for an incident 400 ps (to 0.001amplitude) Gaussian pulse at different
time steps. The dielectric slab should have a dielectric constant of 4 with = 0.
Show a plot of the field as a function of position after time steps of (a) 50 time
steps (b) 175 time steps (c) 300 time steps (d) 425 time steps (e) 450 time steps
and (f) 550 time steps.
If we take the Gaussian pulse width of 400 ps (w =40) and set xp = 0.2625, then
after 50 time steps the incident field should be at layer 200 (just in front of the
dielectric). This will ensure that all plots are the same for the same number of
time steps.