public static MeepSource CreateGaussianSource(Component component, MeepVector3 center, double wavelength, double width) { MeepSource res = new MeepSource( component, center, wavelength ); res.Type = SourceType.Gaussian; res.EndTime = double.NaN; res.Width = width; res.Cutoff = 5; return res; }
public static MeepSource CreateContinuousSource(Component component, MeepVector3 center, double wavelength) { MeepSource res = new MeepSource( component, center, wavelength ); res.Type = SourceType.Continuous; res.EndTime = double.PositiveInfinity; res.Width = 0; res.Cutoff = 3; return res; }
public static MeepSource CreateGaussianSource(Component component, MeepVector3 center, double wavelength, double width) { MeepSource res = new MeepSource(component, center, wavelength); res.Type = SourceType.Gaussian; res.EndTime = double.NaN; res.Width = width; res.Cutoff = 5; return(res); }
public static MeepSource CreateContinuousSource(Component component, MeepVector3 center, double wavelength) { MeepSource res = new MeepSource(component, center, wavelength); res.Type = SourceType.Continuous; res.EndTime = double.PositiveInfinity; res.Width = 0; res.Cutoff = 3; return(res); }