build_sea_system ================ .. py:module:: build_sea_system Attributes ---------- .. autoapisummary:: build_sea_system.HERE build_sea_system.SB build_sea_system.T_FLOOR Functions --------- .. autoapisummary:: build_sea_system.fmt build_sea_system.all_buses build_sea_system.gen_lines build_sea_system.businit_lines build_sea_system.svc_lines build_sea_system.load_lines build_sea_system.pss_params build_sea_system._arg_list build_sea_system.converter_line build_sea_system.machine_lines build_sea_system.write_case build_sea_system.run_power_flow build_sea_system.main Module Contents --------------- .. py:data:: HERE .. py:data:: SB :value: 100.0 .. py:data:: T_FLOOR :value: 0.001 .. py:function:: fmt(x: float) -> str .. py:function:: all_buses() -> list .. py:function:: gen_lines(case: int, v0: dict) -> list .. py:function:: businit_lines(case: int, v0: dict) -> list .. py:function:: svc_lines(case: int) -> list .. py:function:: load_lines(case: int) -> list .. py:function:: pss_params(gen: str, case: int) -> str .. py:function:: _arg_list(flag: str) -> list .. py:function:: 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). .. py:function:: machine_lines(case: int) -> list .. py:function:: write_case(case: int, v0: dict, out_dir: pathlib.Path) -> None .. py:function:: run_power_flow(case_dir: pathlib.Path) -> dict Run the init power flow on the generated file; return bus -> |V|. .. py:function:: main() -> None