build_sea_system

Attributes

HERE

SB

T_FLOOR

Functions

fmt(→ str)

all_buses(→ list)

gen_lines(→ list)

businit_lines(→ list)

svc_lines(→ list)

load_lines(→ list)

pss_params(→ str)

_arg_list(→ list)

converter_line(→ str)

Grid-forming / grid-following converter replacing power station gen.

machine_lines(→ list)

write_case(→ None)

run_power_flow(→ dict)

Run the init power flow on the generated file; return bus -> |V|.

main(→ None)

Module Contents

build_sea_system.HERE
build_sea_system.SB = 100.0
build_sea_system.T_FLOOR = 0.001
build_sea_system.fmt(x: float) str
Parameters:

x (float)

Return type:

str

build_sea_system.all_buses() list
Return type:

list

build_sea_system.gen_lines(case: int, v0: dict) list
Parameters:
  • case (int)

  • v0 (dict)

Return type:

list

build_sea_system.businit_lines(case: int, v0: dict) list
Parameters:
  • case (int)

  • v0 (dict)

Return type:

list

build_sea_system.svc_lines(case: int) list
Parameters:

case (int)

Return type:

list

build_sea_system.load_lines(case: int) list
Parameters:

case (int)

Return type:

list

build_sea_system.pss_params(gen: str, case: int) str
Parameters:
  • gen (str)

  • case (int)

Return type:

str

build_sea_system._arg_list(flag: str) list
Parameters:

flag (str)

Return type:

list

build_sea_system.converter_line(gen: str, bus: str, s_agg: float, kind: str) str

Grid-forming / grid-following converter replacing power station gen.

Control parameters follow the IEEE39_bus_inverter fixture (droop GFM / PLL GFL with cascaded voltage/current control); the quasi-static LCL realization matches the static network model. Ratings and dispatch come from the loadflow (sequential init solves the setpoints).

Parameters:
  • gen (str)

  • bus (str)

  • s_agg (float)

  • kind (str)

Return type:

str

build_sea_system.machine_lines(case: int) list
Parameters:

case (int)

Return type:

list

build_sea_system.write_case(case: int, v0: dict, out_dir: pathlib.Path) None
Parameters:
  • case (int)

  • v0 (dict)

  • out_dir (pathlib.Path)

Return type:

None

build_sea_system.run_power_flow(case_dir: pathlib.Path) dict

Run the init power flow on the generated file; return bus -> |V|.

Parameters:

case_dir (pathlib.Path)

Return type:

dict

build_sea_system.main() None
Return type:

None