コード例 #1
0
		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;
			}
コード例 #2
0
		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;
			}
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }