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