Skip to content

Commit

Permalink
accounted for lack of hvac power during heating
Browse files Browse the repository at this point in the history
  • Loading branch information
calbaker committed Jan 30, 2025
1 parent 9386817 commit eea7f96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cal_and_val/thermal/cal_hev.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,11 @@ def get_mod_pwr_hvac(sd_dict):
return np.array(sd_dict['veh']['hvac']['LumpedCabin']['history']['pwr_aux_for_hvac_watts'])

def get_exp_pwr_hvac(df):
return df["HVAC_Power_Hioki_P3[W]"]
if df["Cell_Temp[C]"].mean() < 15:
pwr_hvac = [0] * len(df)
else:
pwr_hvac = df["HVAC_Power_Hioki_P3[W]"]
return pwr_hvac

save_path = Path(__file__).parent / "pymoo_res" / Path(__file__).stem
save_path.mkdir(exist_ok=True, parents=True)
Expand Down

0 comments on commit eea7f96

Please sign in to comment.