2010-04-04 17:48:36 +00:00
|
|
|
function FDTD = InitFDTD(NrTS, endCrit, varargin)
|
2010-04-07 14:31:35 +00:00
|
|
|
% function FDTD = InitFDTD(NrTS, endCrit, varargin)
|
|
|
|
%
|
|
|
|
% possible arguments for useage with openEMS:
|
|
|
|
% OverSampling: nyquist oversampling of time domain dumps
|
|
|
|
%
|
|
|
|
% e.g FDTD = InitFDTD(5e5,1e-6,'OverSampling',10)
|
|
|
|
%
|
|
|
|
% openEMS matlab interface
|
|
|
|
% -----------------------
|
|
|
|
% author: Thorsten Liebig
|
2010-03-22 22:15:04 +00:00
|
|
|
|
|
|
|
FDTD.ATTRIBUTE.NumberOfTimesteps=NrTS;
|
|
|
|
FDTD.ATTRIBUTE.endCriteria=endCrit;
|
|
|
|
|
2010-04-04 17:48:36 +00:00
|
|
|
for n=1:(nargin-2)/2
|
|
|
|
FDTD.ATTRIBUTE.(varargin{2*n-1})=varargin{2*n};
|
|
|
|
end
|
2010-03-22 22:15:04 +00:00
|
|
|
|