Skip to content

Commit

Permalink
comment of unit
Browse files Browse the repository at this point in the history
  • Loading branch information
jimrojerTNO committed Mar 20, 2024
1 parent 34bcadf commit 20881b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rtctools_heat_network/financial_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ def __variable_operational_cost_constraints(self, ensemble_member):

for demand in self.energy_system_components.get("gas_demand", []):
gas_mass_flow = self.__state_vector_scaled(
f"{demand}.Gas_demand_mass_flow", ensemble_member # kg/hr
f"{demand}.Gas_demand_mass_flow", ensemble_member # g/s
)

variable_operational_cost_var = self._asset_variable_operational_cost_map[demand]
Expand Down Expand Up @@ -960,7 +960,7 @@ def __variable_operational_cost_constraints(self, ensemble_member):
sum += (
variable_operational_cost_coefficient
* power_consumer[i]
* timesteps[i - 1] # gas_mass_flow unit is kg/hr
* timesteps[i - 1] # gas_mass_flow unit is g/s
)

constraints.append(((variable_operational_cost - sum) / nominal, 0.0, 0.0))
Expand Down Expand Up @@ -1237,7 +1237,7 @@ def __revenue_constraints(self, ensemble_member):

if demand in self.energy_system_components.get("gas_demand", []):
energy_flow = self.__state_vector_scaled(
f"{demand}.Gas_demand_mass_flow", ensemble_member # kg/hr
f"{demand}.Gas_demand_mass_flow", ensemble_member # g/s
)

elif demand in self.energy_system_components.get("electricity_demand", []):
Expand Down

0 comments on commit 20881b9

Please sign in to comment.