Cizz22 3 months ago
parent a29b058bfa
commit 8b63e0fdc5

@ -266,8 +266,8 @@ def get_asset_batch(location_tags: List[str], nr_location_tags: List[str],
distribution, reldisp1, reldisp2 = get_distribution(item)
results[location_tag]["cmDisType"] = "Normal"
results[location_tag]["cmDisP1"] = 18
results[location_tag]["cmDisP2"] = 6
results[location_tag]["cmDisP1"] = 6
results[location_tag]["cmDisP2"] = 3
results[location_tag]["relDisType"] = distribution
results[location_tag]["relDisP1"] = reldisp1
results[location_tag]["relDisP2"] = reldisp2

@ -263,10 +263,11 @@ async def calculate_plant_eaf(
seasonal_outage = (mo_downtime*24 + po_downtime*24) if is_oh_from_aeros else mo_downtime*24
forced_outage = (plant_calc_data.total_downtime - po_downtime*24) if is_oh_from_aeros else plant_calc_data.total_downtime
total_period_time = plant_calc_data.total_uptime + seasonal_outage + forced_outage
total_uptime = plant_calc_data.total_uptime - mo_downtime*24
total_period_time = total_uptime + seasonal_outage + forced_outage
eaf, efor, sof, edh = calculate_eaf(
available_hours=plant_calc_data.total_uptime,
available_hours=total_uptime,
period_hours=total_period_time,
forced_outage_hours=forced_outage,
seasonal_outage_hours=seasonal_outage,

@ -31,7 +31,7 @@ def calculate_eaf(
try:
# Calculate lost production
max_capacity = 660
max_capacity = 550
# Calculate total equivalent derate and outage hours
edh = calculate_equivalent_derate_hours(plot_data, max_flow_rate=max_capacity)
# Calculate EAF

Loading…
Cancel
Save