Exemple #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="name">The name of the voltage source</param>
 /// <param name="pos">The positive node</param>
 /// <param name="neg">The negative node</param>
 /// <param name="dc">The DC value of the source</param>
 public Voltagesource(string name, string pos, string neg, double dc) : base(name, 2)
 {
     Connect(pos, neg);
     VSRCdcValue.Set(dc);
 }
Exemple #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="name">The name of the voltage source</param>
 /// <param name="pos">The positive node</param>
 /// <param name="neg">The negative node</param>
 /// <param name="dc">The DC value</param>
 public Voltagesource(CircuitIdentifier name, CircuitIdentifier pos, CircuitIdentifier neg, double dc) : base(name)
 {
     Connect(pos, neg);
     VSRCdcValue.Set(dc);
 }