op3.anchors.extract_anchor_loads_from_moorpy_system

op3.anchors.extract_anchor_loads_from_moorpy_system(system, motion_df: DataFrame, anchor_line_index: int = 0, body_index: int = 0) DataFrame[source]

Solve MoorPy static equilibrium at every timestep of a motion history and return the anchor-side tension + angle.

Parameters:
  • system (moorpy.System) – A pre-configured MoorPy system. Must contain at least one Line whose A-end is the anchor and at least one Body whose motion is prescribed via motion_df.

  • motion_df (pandas.DataFrame) – Columns time_s, surge_m, sway_m, heave_m (others optional). Each row defines the floater body position (relative to its nominal location) for one time step. The yaw/pitch/roll columns are optional.

  • anchor_line_index (int) – Index into system.lineList. Default 0 picks the first line.

  • body_index (int) – Index into system.bodyList. Default 0 picks the first body.

Returns:

Columns time_s, T_kN, angle_deg, H_kN, V_kN.

Return type:

pandas.DataFrame