psspy.addmodellibrary(HuaweiModelPath + 'MOD_GPM_SB_V7.dll') psspy.addmodellibrary(GridInfoPath + 'GEWTG34.dll') psspy.addmodellibrary(GridInfoPath + 'SMAPPC_B111_34_IVF111.dll') psspy.addmodellibrary(GridInfoPath + 'SMASC_C135_34_IVF111.dll') psspy.dynamics_solution_param_2([_i, _i, _i, _i, _i, _i, _i, _i], [1.000, _f, 0.001, 0.004, _f, _f, _f, _f]) for i in range(0, len(Branch_Outage_List_Start)): for fault_type in range(1, 5): # re - initialize psspy.read(0, GridInfoPath + LoadScenario + "/" + file_name + ".raw") psspy.resq(GridInfoPath + LoadScenario + "/" + file_name + ".seq") psspy.dyre_new([1, 1, 1, 1], GridInfoPath + LoadScenario + "/" + file_name + ".dyr", "", "", "") psspy.dscn(30531) psspy.dscn(36530) psspy.dscn(37530) psspy.dscn(50030) # add for Clenergy project psspy.machine_data_2(30531, r"""12""", [0, _i, _i, _i, _i, _i], [_f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f]) psspy.machine_data_2(37530, r"""12""", [0, _i, _i, _i, _i, _i], [_f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f]) psspy.machine_data_2(101, r"""1""", [_i, _i, _i, _i, _i, _i], [100, _f, 60, -40, 120, _f, 120, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f]) psspy.machine_data_2(102, r"""1""", [_i, _i, _i, _i, _i, _i], [100, _f, 60, -40, 120, _f,120, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f]) psspy.machine_data_2(103, r"""1""", [_i, _i, _i, _i, _i, _i], [100, _f, 60, -40, 120, _f, 120, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f]) psspy.machine_data_2(104, r"""1""", [_i, _i, _i, _i, _i, _i],
# [_f, _f, ReactivePowerSetpoint * S, _f, 120, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f]) # psspy.machine_data_2(104, r"""1""", [_i, _i, _i, _i, _i, _i], # [_f, _f, _f, ReactivePowerSetpoint * S, 120, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, # _f]) psspy.fdns([1, 0, 1, 1, 1, 1, 99, 0]) # psspy.change_plmod_icon(101,r"""1""",r"""GPMPPC""",4,3) # psspy.change_plmod_icon(101,r"""1""",r"""HWS2000""",1,2) # psspy.change_plmod_con(101,r"""1""",r"""GPMPPC""",10, 0.45) # psspy.change_plmod_con(101,r"""1""",r"""GPMPPC""",28, 20000.) # psspy.change_plmod_con(101,r"""1""",r"""GPMPPC""",29, 8000.0) psspy.dynamics_solution_param_2([_i, _i, _i, _i, _i, _i, _i, _i], [1.000, _f, 0.001, 0.004, _f, _f, _f, _f]) # discard disturbance psspy.dscn(30531) psspy.dscn(36530) psspy.dscn(37530) psspy.machine_data_2( 30531, r"""12""", [0, _i, _i, _i, _i, _i], [_f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f]) psspy.machine_data_2( 37530, r"""12""", [0, _i, _i, _i, _i, _i], [_f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f]) psspy.plmod_status(30531, r"""1""", 1, 0) psspy.plmod_status(30531, r"""1""", 6, 0) psspy.plmod_status(30531, r"""1""", 7, 0) psspy.plmod_status(37530, r"""1""", 1, 0) psspy.plmod_status(37530, r"""1""", 6, 0) psspy.plmod_status(37530, r"""1""", 7, 0)
OFSS_HV = [OFSS1_HV, OFSS2_HV, OFSS3_HV, OFSS4_HV] OFSS_LV = [OFSS1_LV, OFSS2_LV, OFSS3_LV, OFSS4_LV] SHORE = [SHORE1, SHORE2, SHORE3, SHORE4] HDD = [HDD1, HDD2, HDD3, HDD4] Case_name = "Larrabee_MW_MVOW_1.0.sav" Results_file = "Energization_Scenario" + str(Scn) + "VPOI" + str(V_POI) psspy.case(Case_name) #################################################################################################### ################################ De-energize####################################################### for i in range(len(WT_num)): # psspy.dscn(ToBus[i]) psspy.dscn(WT_bus[i]) psspy.fdns([0, 0, 0, 1, 1, 0, 0, 0]) for i in range(num_groups): psspy.dscn(ONSS_HV[i]) psspy.dscn(ONSS_LV[i]) psspy.dscn(OFSS_HV[i]) psspy.dscn(OFSS_LV[i]) psspy.dscn(ONSRE_HDD_6[i]) psspy.dscn(ONSRE_HDD_5[i]) psspy.dscn(ONSRE_HDD_4[i]) psspy.dscn(ONSRE_HDD_3[i]) psspy.dscn(ONSRE_HDD_2[i]) psspy.dscn(ONSRE_HDD_1[i]) psspy.dscn(CNCRT_DB[i])