en:cs:modelling_multi-phased_electrical_system_interconnexion

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

en:cs:modelling_multi-phased_electrical_system_interconnexion [2020/09/17 15:26] fraggleen:cs:modelling_multi-phased_electrical_system_interconnexion [2021/12/27 18:25] (Version actuelle) – modification externe 127.0.0.1
Ligne 66: Ligne 66:
  
 <code javascript> <code javascript>
-export class ElectricityUtils +/** 
-  public static calculateAmpTotal(nbOfPhases: number, Iph: number): number {+ * Targeted to AC related values calculation. 
 + */ 
 +export class ACElectricUtils 
 +  static amperageTotal(nbOfPhases: number, Iph: number): number {
     return nbOfPhases * Iph;     return nbOfPhases * Iph;
   }   }
  
-  public static calculatePowerPerPhase(V: number, Iph: number, cosPhi = 1): number {+  static powerPerPhase(V: number, Iph: number, cosPhi = 1): number {
     const powerPerPhase = V * Iph * cosPhi;     const powerPerPhase = V * Iph * cosPhi;
     if (cosPhi === 1) {     if (cosPhi === 1) {
Ligne 79: Ligne 82:
   }   }
  
-  public static calculatePowerTotal(nbOfPhases: number, V: number, Iph: number, cosPhi = 1): number { +  static powerTotal(nbOfPhases: number, V: number, Iph: number, cosPhi = 1): number { 
-    return nbOfPhases * ElectricalUtils.calculatePowerPerPhase(V, Iph, cosPhi);+    return nbOfPhases * ACElectricUtils.powerPerPhase(V, Iph, cosPhi);
   }   }
  
-  public static calculateAmpPerPhaseFromPower(nbOfPhases: number, P: number, V: number, cosPhi = 1): number { +  static amperageTotalFromPower(P: number, V: number, cosPhi = 1): number { 
-    const power ElectricalUtils.calculateAmpTotalFromPower(P, VcosPhi)+    const amperage P / (V cosPhi); 
-    const powerPerPhase = power / nbOfPhases+    if (cosPhi === 1 && P === 0) { 
-    if (power nbOfPhases === 0) { +      return amperage;
-      return powerPerPhase;+
     }     }
-    return Math.round(powerPerPhase);+    return Math.round(amperage);
   }   }
  
-  public static calculateAmpTotalFromPower(P: number, V: number, cosPhi = 1): number { +  static amperagePerPhaseFromPower(nbOfPhases: number, P: number, V: number, cosPhi = 1): number { 
-    const power P / (V cosPhi); +    const amperage ACElectricUtils.amperageTotalFromPower(P, VcosPhi)
-    if (cosPhi === 1 && P === 0) { +    const amperagePerPhase = amperage / nbOfPhases
-      return power;+    if (amperage nbOfPhases === 0) { 
 +      return amperagePerPhase;
     }     }
-    return Math.round(power);+    return Math.round(amperagePerPhase); 
 +  } 
 +
 + 
 +/** 
 + * Targeted to DC related values calculation. 
 + */ 
 +export class DCElectricUtils { 
 +  static power(V: number, I: number): number { 
 +    return V * I; 
 +  } 
 + 
 +  static amperage(P: number, V: number): number { 
 +    const amperage = P / V; 
 +    if (P % V === 0) { 
 +      return amperage; 
 +    } 
 +    return Math.round(amperage);
   }   }
 } }
Ligne 105: Ligne 125:
  
 <code javascript> <code javascript>
-interface ElectricalACComponent {+interface ElectricACComponent {
   nPhases: number;   nPhases: number;
   Iph: number;   Iph: number;
Ligne 130: Ligne 150:
 }; };
  
-function getCombinedElectricalObject(Car, ChargingStation): ElectricalACComponent {+function getCombinedElectricObject(Car, ChargingStation): ElectricACComponent {
   return {   return {
     nPhases: Math.min(Car.nPhases, ChargingStation.nPhases),     nPhases: Math.min(Car.nPhases, ChargingStation.nPhases),
     Iph: Math.min(Car.Iph, ChargingStation.Iph),     Iph: Math.min(Car.Iph, ChargingStation.Iph),
     V: Math.min(Car.V, ChargingStation.V),     V: Math.min(Car.V, ChargingStation.V),
-    I: ElectricityUtils.calculateAmpTotal(this.nPhases, this.Iph), +    I: ACElectricUtils.amperageTotal(this.nPhases, this.Iph), 
-    P: ElectricityUtils.calculatePowerTotal(this.nPhases, this.Iph, this.V),+    P: ACElectricUtils.powerTotal(this.nPhases, this.Iph, this.V),
   };   };
 } }
Ligne 148: Ligne 168:
 const ChargingSchedulePeriod = { const ChargingSchedulePeriod = {
   startPeriod: 60,   startPeriod: 60,
-  limit: 15, // Sanity check: ensure the limit is below getCombinedElectricalObject(Car, ChargingStation).Iph +  limit: 15, // Sanity check: ensure the limit is below getCombinedElectricObject(Car, ChargingStation).Iph 
-  numberPhases: getCombinedElectricalObject(Car, ChargingStation).nPhases,+  numberPhases: getCombinedElectricObject(Car, ChargingStation).nPhases,
 }; };
  
Ligne 155: Ligne 175:
 ====== Modelling multi-phased AC/DC electrical system ====== ====== Modelling multi-phased AC/DC electrical system ======
  
 +===== AC modelling =====
 +See first section. 
 ===== Rectifier modelling ===== ===== Rectifier modelling =====
- 
 FIXME FIXME
 +===== DC modelling ===== 
 +FIXME
 ====== Modelling multi-phased DC/AC electrical system ====== ====== Modelling multi-phased DC/AC electrical system ======
  
 +===== DC modelling =====
 +FIXME
 ===== Inverter modelling ===== ===== Inverter modelling =====
- 
 FIXME FIXME
 +===== AC modelling ===== 
 +See first section.
 ====== References ====== ====== References ======
  
 Composants symétriques : https://fr.qwe.wiki/wiki/Symmetrical_components Composants symétriques : https://fr.qwe.wiki/wiki/Symmetrical_components
  • en/cs/modelling_multi-phased_electrical_system_interconnexion.1600349196.txt.gz
  • Dernière modification : 2021/12/27 18:25
  • (modification externe)