Exemplo n.º 1
0
 public static void Energy(ElectricalGridState state)
 {
     // Calculate energy
     state.energy = state.energyProduction - state.energyConsumption;
 }
Exemplo n.º 2
0
 public static void EnergyLoss(ElectricalGridState state)
 {
     // Calculate energy loss
     state.energyLoss = state.energy * state.lineLoss;
 }
Exemplo n.º 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
 }
Exemplo n.º 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
 }