Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FrequencySimulation"/> class.
        /// </summary>
        /// <param name="name">The identifier of the simulation.</param>
        /// <param name="frequencySweep">The frequency sweep.</param>
        protected FrequencySimulation(string name, Sweep <double> frequencySweep) : base(name)
        {
            Configurations.Add(new FrequencyConfiguration(frequencySweep));
            FrequencySimulationStatistics = new ComplexSimulationStatistics();
            Statistics.Add(typeof(ComplexSimulationStatistics), FrequencySimulationStatistics);

            // Add behavior types in the order they are (usually) called
            BehaviorTypes.Add(typeof(IFrequencyBehavior));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FrequencySimulation"/> class.
 /// </summary>
 /// <param name="name">The name of the simulation.</param>
 /// <exception cref="ArgumentNullException">Thrown if <paramref name="name"/> is <c>null</c>.</exception>
 protected FrequencySimulation(string name)
     : base(name)
 {
     ModifiedNodalAnalysisHelper <Complex> .Magnitude = ComplexMagnitude;
     Statistics = new ComplexSimulationStatistics();
 }