InitFDTD
- InitFDTD(varargin)
Full definition:
function FDTD = InitFDTD(varargin)
Initialize the FDTD data-structure.
optional field arguments for usage with openEMS:
NrTS: max. number of timesteps to simulate (e.g. default=1e9)
EndCriteria: end criteria, e.g. 1e-5, simulations stops if energy has decayed by this value (<1e-4 is recommended, default=1e-5)
MaxTime: max. real time in seconds to simulate
OverSampling: nyquist oversampling of time domain dumps
CoordSystem: choose coordinate system (0 Cartesian, 1 Cylindrical)
MultiGrid: define a cylindrical sub-grid radius
TimeStep: force to use a given timestep (dangerous!)
TimeStepFactor: reduce the timestep by a given factor (>0 to <=1)
TimeStepMethod: 1 or 3 chose timestep method (1=CFL, 3=Rennigs (default))
CellConstantMaterial: set to 1 to assume a material is constant inside a cell (material probing in cell center)
examples:
%default init with 1e9 max. timesteps and -50dB end-criteria
FDTD = InitFDTD();
%init with 1e6 max. timesteps and -60dB end-criteria
FDTD = InitFDTD('NrTS', 1e6, 'EndCriteria', 1e-6);
%cylindrical FDTD simulation
FDTD = InitFDTD('CoordSystem', 1);
See also InitCSX
author: Thorsten Liebig (c) 2010-2013