Skip to content
Snippets Groups Projects
Commit e37c2c93 authored by Christoph von Oy's avatar Christoph von Oy
Browse files

Removed FixedCapacity logic

Can be expressed by setting min_capacity and max_capacity to the same
value
parent 30957dad
No related branches found
No related tags found
No related merge requests found
Subproject commit 78fd0af070bffc2bef76d1e12707928f8459b8d0 Subproject commit beef809b18396d8a3c74d8d751375a2dbfa501c2
...@@ -304,14 +304,6 @@ ...@@ -304,14 +304,6 @@
"input": 1 "input": 1
} }
] ]
},
"bus_1_moter_inverter_capacity": {
"type": "FixedCapacity",
"component": "bus_1_motor_inverter"
},
"bus_2_moter_inverter_capacity": {
"type": "FixedCapacity",
"component": "bus_1_motor_inverter"
} }
} }
} }
\ No newline at end of file
...@@ -79,16 +79,24 @@ with open( ...@@ -79,16 +79,24 @@ with open(
prosumer_dict["LaTreille"]["components"]["bus_1_motor_inverter"]["model"] prosumer_dict["LaTreille"]["components"]["bus_1_motor_inverter"]["model"]
) as f: ) as f:
inverter_1_efficiency = json.load(f)["efficiency"] inverter_1_efficiency = json.load(f)["efficiency"]
prosumer_dict["LaTreille"]["additional_model_logic"]["bus_1_moter_inverter_capacity"][ bus_1_moter_inverter_capacity = max_driving_consumpion / inverter_1_efficiency
"capacity" prosumer_dict["LaTreille"]["components"]["bus_1_motor_inverter"][
] = (max_driving_consumpion / inverter_1_efficiency) "min_capacity"
] = bus_1_moter_inverter_capacity
prosumer_dict["LaTreille"]["components"]["bus_1_motor_inverter"][
"max_capacity"
] = bus_1_moter_inverter_capacity
with open( with open(
prosumer_dict["LaTreille"]["components"]["bus_2_motor_inverter"]["model"] prosumer_dict["LaTreille"]["components"]["bus_2_motor_inverter"]["model"]
) as f: ) as f:
inverter_2_efficiency = json.load(f)["efficiency"] inverter_2_efficiency = json.load(f)["efficiency"]
prosumer_dict["LaTreille"]["additional_model_logic"]["bus_2_moter_inverter_capacity"][ bus_2_moter_inverter_capacity = max_driving_consumpion / inverter_2_efficiency
"capacity" prosumer_dict["LaTreille"]["components"]["bus_2_motor_inverter"][
] = (max_driving_consumpion / inverter_2_efficiency) "min_capacity"
] = bus_2_moter_inverter_capacity
prosumer_dict["LaTreille"]["components"]["bus_2_motor_inverter"][
"max_capacity"
] = bus_2_moter_inverter_capacity
prosumer_main = ProsumerMain(prosumer_dict, dynamic) prosumer_main = ProsumerMain(prosumer_dict, dynamic)
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment