Exemple #1
0
 public static void Energy(ElectricalGridState state)
 {
     // Calculate energy
     state.energy = state.energyProduction - state.energyConsumption;
 }
Exemple #2
0
 public static void EnergyLoss(ElectricalGridState state)
 {
     // Calculate energy loss
     state.energyLoss = state.energy * state.lineLoss;
 }
Exemple #3
0
 public static void LineLoss(ElectricalGridState state)
 {
     // Calculate line loss
     // Save this again is set by user operation, not by calculation, so for now this has no need
 }
Exemple #4
0
 public static void EnergyConsumption(ElectricalGridState state)
 {
     // Calculate energy consumption
     // Save this is set by user operation, not by calculation, so for now this has no need
 }