/// <summary> /// Constructor /// </summary> /// <param name="name">The name of the simulation</param> /// <param name="source">The name of the swept source</param> /// <param name="start">The starting value</param> /// <param name="stop">The stopping value</param> /// <param name="step">The step value</param> public DC(Identifier name, Identifier source, double start, double stop, double step) : base(name) { var config = new DcConfiguration(); SweepConfiguration s = new SweepConfiguration(source, start, stop, step); config.Sweeps.Add(s); ParameterSets.Add(config); }
/// <summary> /// Constructor /// </summary> /// <param name="name">Name</param> /// <param name="sweeps">Sweeps</param> public DC(Identifier name, IEnumerable <SweepConfiguration> sweeps) : base(name) { if (sweeps == null) { throw new ArgumentNullException(nameof(sweeps)); } var dcconfig = new DcConfiguration(); foreach (var sweep in sweeps) { dcconfig.Sweeps.Add(sweep); } ParameterSets.Add(dcconfig); }
/// <summary> /// Constructor /// </summary> /// <param name="name">The simulation name</param> public DC(Identifier name) : base(name) { var config = new DcConfiguration(); ParameterSets.Add(config); }