Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circuit sharing and pausing for Panels project TEA #119

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 18 additions & 14 deletions bin/run_equipment.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
default_args = {
'start_time': dt.datetime(2018, 1, 1, 0, 0), # year, month, day, hour, minute
'time_res': dt.timedelta(minutes=15),
'duration': dt.timedelta(days=10),
'verbosity': 6, # verbosity of results (1-9)
'save_results': False, # if True, must specify output_path
# 'output_path': os.getcwd(),
'duration': dt.timedelta(days=365),
'verbosity': 7, # verbosity of results (1-9)
'save_results': True, # if True, must specify output_path
# 'output_path': os.path.join(os.getcwd(),'EVProfiles','Level2')
}


Expand Down Expand Up @@ -185,12 +185,15 @@ def run_hvac():
CreateFigures.plt.show()


def run_ev():
def run_ev(seed):
equipment_args = {
# Equipment parameters
'vehicle_type': 'BEV',
'charging_level': 'Level 1',
'mileage': 100,
"vehicle_type": "BEV",
"charging_level": "Level 1",
"equipment_event_file": "pdf_Veh4_Level2.csv",
"capacity": 57.5,
"seed": seed,
"output_path": os.path.join(os.getcwd(), "EVProfiles", "Level2", str(seed)),
**default_args,
}

Expand All @@ -200,10 +203,10 @@ def run_ev():
# Simulate equipment
df = equipment.simulate()

print(df.head())
CreateFigures.plot_daily_profile(df, 'EV Electric Power (kW)', plot_max=False, plot_min=False)
CreateFigures.plot_time_series_detailed((df['EV SOC (-)'],))
CreateFigures.plt.show()
# print(df.head())
# CreateFigures.plot_daily_profile(df, 'EV Electric Power (kW)', plot_max=False, plot_min=False)
# CreateFigures.plot_time_series_detailed((df['EV SOC (-)'],))
# CreateFigures.plt.show()


def run_equipment_from_house_model():
Expand All @@ -229,9 +232,10 @@ def run_equipment_from_house_model():
if __name__ == '__main__':
# Choose a scenario to run:

run_battery()
# run_battery()
# run_battery_controlled()
# run_water_heater()
# run_hvac()
# run_ev()
for i in range(1,1001):
run_ev(i)
# run_equipment_from_house_model()