Excitations
SetGaussExcite
- SetGaussExcite(FDTD,f0,fc,varargin);
Full definition:
function FDTD = SetGaussExcite(FDTD,f0,fc,varargin);
f0 : center frequency
fc : 20dB cutoff frequency –> bandwidth is 2*fc
optional key/value arguments:
‘DCFree’, 1 : use a sine instead of a cosine carrier, so the pulse has no DC part and leaves no static charge behind. The spectrum falls to zero at DC below about f0-fc. With f0=0 the pulse is the derivative of the Gaussian, peak at about 0.47*fc.
see also SetSinusExcite SetCustomExcite
e.g
FDTD = SetGaussExcite(FDTD,1e9,1e8);
FDTD = SetGaussExcite(FDTD,1.55e9,1.45e9,'DCFree',1);
author: Thorsten Liebig
SetSinusExcite
- SetSinusExcite(FDTD, f0)
Full definition:
function FDTD = SetSinusExcite(FDTD,f0)
see also SetGaussExcite SetCustomExcite
e.g
FDTD = SetSinusExcite(FDTD,1e9);
author: Thorsten Liebig
SetDiracExcite
- SetDiracExcite(FDTD)
Full definition:
function FDTD = SetDiracExcite(FDTD)
Set a dirac pulse as excitation signal: the full amplitude is applied for one timestep and zero in the next.
The pulse is two timesteps long, so its duration – and with it its bandwidth – depends on the mesh, and it is not band-limited. Unlike SetGaussExcite this function sets no maximum frequency for the simulation, so probes and field dumps are sampled every timestep: with field dumps enabled that is slow and writes very large files, so limit ‘NrTS’ in InitFDTD first. Prefer SetGaussExcite unless an impulse response is really what is wanted.
see also SetGaussExcite SetSinusExcite SetStepExcite SetCustomExcite
e.g
FDTD = InitFDTD('NrTS', 1000);
FDTD = SetDiracExcite(FDTD);
author: Thorsten Liebig
SetStepExcite
- SetStepExcite(FDTD)
Full definition:
function FDTD = SetStepExcite(FDTD)
Set a heaviside step as excitation signal: the full amplitude is applied from the first timestep on and never returns to zero.
Because the excitation never ends, the energy in the simulation domain does not decay and the end criteria is never reached: limit the run with ‘NrTS’ in InitFDTD or with MaxTime. The step is not band-limited either, and as for SetDiracExcite no maximum frequency is set for the simulation, so probes and field dumps are sampled every timestep. For a step with a finite rise time use SetCustomExcite.
see also SetGaussExcite SetSinusExcite SetDiracExcite SetCustomExcite
e.g
FDTD = InitFDTD('NrTS', 10000);
FDTD = SetStepExcite(FDTD);
author: Thorsten Liebig
SetCustomExcite
- SetCustomExcite(FDTD, f0, funcStr)
Full definition:
function FDTD = SetCustomExcite(FDTD,f0,funcStr)
f0 : nyquist rate
funcStr : string describing the excitation function e(t)
see also SetSinusExcite SetGaussExcite
e.g for a ramped sinus excite…
T = 1/f0;
FDTD = SetCustomExcite(FDTD,1e9,..
[ '(1-exp(-1*(t/' num2str(T) ')^2) ) * sin(2*pi*' num2str(f0) '*t)' ]);
author: Thorsten Liebig