Exemple #1
0
        public string[] getInfo()
        {
            String[] arr = new string[6];
            arr[0] = "SCR";
            double vac = lead_volt[anode] - lead_volt[cnode];
            double vag = lead_volt[anode] - lead_volt[gnode];
            double vgc = lead_volt[gnode] - lead_volt[cnode];

            arr[1] = "Ia = " + SIUnits.Current(ia);
            arr[2] = "Ig = " + SIUnits.Current(ig);
            arr[3] = "Vac = " + SIUnits.Voltage(vac);
            arr[4] = "Vag = " + SIUnits.Voltage(vag);
            arr[5] = "Vgc = " + SIUnits.Voltage(vgc);
            return(arr);
        }
Exemple #2
0
 public static string GetVoltageString(this ICircuitElement elem)
 {
     return(SIUnits.Voltage(elem.getVoltageDelta()));
 }
Exemple #3
0
 public static string GetCurrentString(this ICircuitElement elem)
 {
     return(SIUnits.Current(elem.getCurrent()));
 }