From 23edc4f87a0f93625c28fe70c09b4df0ca9340f6 Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Wed, 18 Nov 2026 06:25:36 +0900 Subject: [PATCH] fix: CableDyn reader reads meshes the static solve refined read_cabledyn_sections rejected every run whose static solve refined the mesh of a finite-EI line (adaptive_mesh, tensile_safety or the automatic refinement) with "mesh of line ... differs from the deck sections". .static.out, .elements.out and the per-line files list every node of the refined mesh, while the node channels name the deck nodes (CableDyn 0.2.0 and later). The current CableDyn refines the 24 deck elements of the test deck lw24.dat to 43, so that run could not be read. The reader now locates the deck nodes among the mesh nodes by the DeckNode column of .static.out or the "# DeckNode" line of .Line.p.out (failing both, by their arc lengths in .elements.out), reads the node channels at the deck nodes and the positions and segment tensions on the refined mesh, and records the mesh in checks["mesh"]. A deck that does not match the output is still rejected: every file must list the same number of nodes, every DeckNode numbering must name the deck nodes in order and agree with the others, and the deck nodes must lie at the deck-section arc lengths of .elements.out. Without .elements.out the positions are read at the deck nodes, the "auto" tension source takes the node channels, and segment tensions or chord tangents are refused by name. adaptive_mesh without .elements.out is no longer refused, and .elements.out without rows of an EI = 0 line is skipped for that line. tests/data/cabledyn/lw24r.* is CableDyn 0.4.2 output (development build 4b94321) of the lw24 deck for 1 s with tangent channels: from the refined positions the curvature meets every Curv channel within the default 5 %. Signed-off-by: Jae Hoon Seo --- CHANGELOG.md | 18 + doc/global_local_guide.md | 27 +- src/cablexsec/io/cabledyn.py | 612 +++++++++++++++++++------ tests/data/cabledyn/lw24r.Line1.p.out | 14 + tests/data/cabledyn/lw24r.Line1.t.out | 13 + tests/data/cabledyn/lw24r.dat | 99 ++++ tests/data/cabledyn/lw24r.elements.out | 46 ++ tests/data/cabledyn/lw24r.out | 13 + tests/data/cabledyn/lw24r.static.out | 47 ++ tests/test_cabledyn_inputs.py | 39 +- tests/test_cabledyn_reader.py | 163 ++++++- validation/validation_report.md | 2 +- 12 files changed, 942 insertions(+), 151 deletions(-) create mode 100644 tests/data/cabledyn/lw24r.Line1.p.out create mode 100644 tests/data/cabledyn/lw24r.Line1.t.out create mode 100644 tests/data/cabledyn/lw24r.dat create mode 100644 tests/data/cabledyn/lw24r.elements.out create mode 100644 tests/data/cabledyn/lw24r.out create mode 100644 tests/data/cabledyn/lw24r.static.out diff --git a/CHANGELOG.md b/CHANGELOG.md index 51f45f1..86c4fa4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -397,6 +397,24 @@ All notable changes to CableXSec are recorded in this file. The format follows its plane stays planar. Over the 1 203 tests that reach the planarity test and the shipped fatigue examples and tutorials, no path other than the new checks changes its verdict. +- `read_cabledyn_sections` reads runs whose static solve refined the mesh of a finite-EI line + (`adaptive_mesh`, `tensile_safety` or CableDyn's automatic refinement). It rejected them with + "mesh of line … differs from the deck sections": `.static.out`, `.elements.out` and the + per-line files list every node of the refined mesh, while the node channels name the deck + nodes. The current CableDyn refines the 24 deck elements of the test deck `lw24.dat` to 43, so + that run could not be read. The reader now locates the deck nodes among the mesh nodes by the + `DeckNode` column of `.static.out` or the `# DeckNode` line of `.Line.p.out` (failing both, + by their arc lengths in `.elements.out`), reads the node channels at the deck nodes and the + positions and segment tensions on the refined mesh, and records the mesh in + `checks["mesh"]`. A deck that does not match the output is still rejected: the files must + list the same number of nodes, every `DeckNode` numbering must name the deck nodes in order + and agree with the others, and the deck nodes must lie at the arc lengths of the deck sections + in `.elements.out`. Without `.elements.out` (no placement of the added nodes) the positions are + read at the deck nodes, `tension_source="auto"` takes the node channels and + `tension_source="segments"` or chord tangents are refused by name. `adaptive_mesh` without + `.elements.out` is no longer refused: the files show whether the mesh was refined. Real + CableDyn 0.4.2 output of the refined run is in `tests/data/cabledyn/lw24r.*`; from the refined + positions the curvature meets every `Curv` channel within the default 5 %. - `read_cabledyn_sections` closes every output file it reads. The per-line `.p.out` and `.t.out` readers were left open after a read (and after a failed one) until garbage collection, which raised `ResourceWarning`. The files of one run must now also end on the same diff --git a/doc/global_local_guide.md b/doc/global_local_guide.md index 8541ee5..40626eb 100644 --- a/doc/global_local_guide.md +++ b/doc/global_local_guide.md @@ -19,8 +19,9 @@ bend stiffener); the hysteretic two-way element is stage 2 (Section 7). From the CableDyn manual (`doc/driver_format.md`, `doc/outputs.rst`, `doc/theory.rst`) for CableDyn 0.4.x. The genuine runs in `tests/data/cabledyn/` -were written by the CableDyn 0.1.0 driver; where a later release changed a -channel, the item says so. +were written by the CableDyn 0.1.0 driver (`lw24`, `lw128_v010`) and a +CableDyn 0.4.2 build (`lw128`, and `lw24r` on a mesh the static solve +refined); where a later release changed a channel, the item says so. - **Files.** Standalone driver: `.out` (title line, header `Time(s)` and the deck `OUTPUTS` tokens, no units row); @@ -157,8 +158,9 @@ included). `true_tension_N(A_o)` returns `T_e − p_o A_o`. OpenFAST units are checked per channel; a missing file or channel raises `CableSchemaError` naming it (for example the `Dec`/`Azi` nodes of the spline window, `TenN`, the `p` flag for the arc frame, `Twist` on a restrained -line). The reader also requires: mesh of `.elements.out` equal to the deck -sections (an adaptive mesh needs that file); first position row equal to +line). The reader also requires: every file of the run listing the same +nodes of the line, and the deck nodes at the arc lengths of the deck +sections (below); first position row equal to the static profile (files of one run); element chord within −2% to +5% of its reference length at `t = 0`; uniform output step equal to `dtM`; `.t.out` order fitting the `Ten` channels better than its mirror; and the @@ -168,6 +170,23 @@ CableDyn reports the end element's curvature with its clamped or pinned end condition). A mesh too coarse for the curvature fails this check; state a tolerance or refine the mesh. +**Refined meshes.** The static solve may refine a finite-EI line +(`adaptive_mesh`, `tensile_safety` or the automatic refinement). Each deck +node stays a node of the refined mesh at its own unstretched arc length; the +`` of every node channel names a deck node, while `.static.out`, +`.elements.out` and the per-line files list every node of the refined mesh +(CableDyn `doc/outputs.rst`, node channels on a refined line). The reader +locates the deck nodes by the `DeckNode` column of `.static.out` or the +`# DeckNode` line of `.Line.p.out` (failing both, by their arc lengths in +`.elements.out`); every numbering must name the deck nodes in order and agree +with the others, and the deck nodes must lie at the deck-section arc lengths +of `.elements.out`. Positions and segment tensions are read on the refined +mesh, the node channels at the deck nodes; `checks["mesh"]` records the node +counts and the source of the numbering. Without `.elements.out` the added +nodes cannot be placed: the positions are read at the deck nodes, +`tension_source="auto"` takes the node channels, and +`tension_source="segments"` or `tangent_placement="chord"` is refused. + **Deck outputs.** `section_channels(deck, sections)` lists the `OUTPUTS` channels the tangent source needs for the section frame: `Dec`/`Azi` on the window, `Ten`, `Curv` and `p{x,y,z}` at the bracketing nodes, and diff --git a/src/cablexsec/io/cabledyn.py b/src/cablexsec/io/cabledyn.py index 1cf4874..8b40bbe 100644 --- a/src/cablexsec/io/cabledyn.py +++ b/src/cablexsec/io/cabledyn.py @@ -42,6 +42,23 @@ Curvature is per unit deformed length; the stretch enters only through the spline parameter (relative effect of order of the axial strain). +Refined meshes +-------------- +The static solve may refine the mesh of a finite-EI line (``adaptive_mesh``, +``tensile_safety`` or the automatic refinement; CableDyn ``doc/outputs.rst``, +node channels on a refined line). Refinement splits deck elements, so every +deck node stays a mesh node at its own unstretched arc length. The ```` of +the node channels names a deck node (since CableDyn 0.2.0); ``.static.out``, +``.elements.out`` and the per-line files list every node of the refined mesh. +The reader locates the deck nodes by the ``DeckNode`` column of +``.static.out`` or the ``# DeckNode`` line of ``.Line.p.out`` (failing both, +by their arc lengths in ``.elements.out``), requires every file to list the +same nodes and the deck nodes to lie at the arc lengths of the deck sections, +and reads positions and segment tensions on the refined mesh, which +``.elements.out`` places. Without that file the positions are read at the deck +nodes only and the segment tensions not at all (``tension_source="auto"`` +then takes the node channels). + Frames and signs ---------------- The global frame is CableDyn's: right-handed, :math:`z` up, still water at @@ -639,8 +656,18 @@ def _main_table(path: Path) -> _Table: return _Table(path, 2, header, units) -def _line_table(path: Path, title_word: str, columns: Sequence[str]) -> _Table: - head = _head(path, 2) +@dataclass(frozen=True) +class _LineHead: + """Title, optional ``# DeckNode`` line and header row of a per-line table.""" + + path: Path + header: tuple[str, ...] + deck_nodes: tuple[int, ...] | None + skip: int + + +def _line_head(path: Path, title_word: str) -> _LineHead: + head = _head(path, 3) if len(head) < 2 or not head[0].startswith("# CableDyn"): raise CableSchemaError(f"{path.name}: not a CableDyn per-line table") title = head[0].casefold() @@ -651,7 +678,30 @@ def _line_table(path: Path, title_word: str, columns: Sequence[str]) -> _Table: ) if "static" in title: raise CableSchemaError(f"{path.name}: a static table has no time history") - header = tuple(cell.strip() for cell in head[1].split("\t")) + deck_nodes = None + header_row, skip = head[1], 2 + if head[1].startswith("#"): + # A line whose mesh the static solve refined: the deck node of every + # node, 0 for a node the refinement added (CableDyn doc/outputs.rst). + tokens = head[1].split() + if tokens[:2] != ["#", "DeckNode"] or len(head) < 3: + raise CableSchemaError( + f"{path.name}: unexpected second comment line {head[1][:40]!r}; " + "a CableDyn per-line table has only a '# DeckNode' line there" + ) + try: + deck_nodes = tuple(int(token) for token in tokens[2:]) + except ValueError: + raise CableSchemaError( + f"{path.name}: malformed '# DeckNode' line" + ) from None + header_row, skip = head[2], 3 + header = tuple(cell.strip() for cell in header_row.split("\t")) + return _LineHead(path, header, deck_nodes, skip) + + +def _line_table(head: _LineHead, columns: Sequence[str]) -> _Table: + path, header = head.path, head.header expected = ("Time(s)", *columns) if header != expected: mismatch = next( @@ -665,7 +715,7 @@ def _line_table(path: Path, title_word: str, columns: Sequence[str]) -> _Table: raise CableSchemaError( f"{path.name}: header does not match the line: {mismatch}" ) - return _Table(path, 2, header, None) + return _Table(path, head.skip, header, None) def _chunks( @@ -985,11 +1035,12 @@ class _Plan: """Static data of one section (or a curvature probe at a node).""" name: str - arc: float - element: int # 0-based element containing the arc - window: list[int] # 0-based nodes of the curvature spline + arc: float # on the grid of the curvature source + elem_deck: int # 0-based deck element containing the arc (node channels) + elem_pos: int # 0-based element of the position grid containing the arc + window: list[int] # 0-based nodes of the curvature spline (its grid) probe: bool = False - node: int = -1 # 0-based node of a curvature probe + node: int = -1 # 0-based deck node of a curvature probe data: dict[str, list[FloatArray]] = field(default_factory=dict) @@ -1041,8 +1092,11 @@ def _discover(out_root: Path, line_id: int) -> dict[str, Path]: return files -def _static_profile(path: Path, line_id: int) -> FloatArray: - """X, Y, Z of the line's nodes from a static profile table.""" +def _static_profile( + path: Path, line_id: int +) -> tuple[FloatArray, tuple[int, ...] | None]: + """X, Y, Z of the line's nodes from a static profile table, and the + ``DeckNode`` column when the profile has one (a refined mesh in the run).""" rows = path.read_text(encoding="utf-8").splitlines() if len(rows) < 4: raise CableSchemaError(f"{path.name}: incomplete static profile") @@ -1057,17 +1111,172 @@ def _static_profile(path: Path, line_id: int) -> FloatArray: ): if name not in header or units[header.index(name)] != unit: raise CableSchemaError(f"{path.name}: static column {name} {unit} missing") - take = [header.index(name) for name in ("LineID", "Node", "X", "Y", "Z")] + names = ["LineID", "Node", "X", "Y", "Z"] + if "DeckNode" in header: + if units[header.index("DeckNode")] != "(-)": + raise CableSchemaError(f"{path.name}: static column DeckNode (-) missing") + names.append("DeckNode") + take = [header.index(name) for name in names] data = np.array( [[float(row.split("\t")[i]) for i in take] for row in rows[3:] if row.strip()] ) mine = data[data[:, 0] == line_id] if mine.size == 0 or np.any(np.diff(mine[:, 1]) != 1) or mine[0, 1] != 1: raise CableSchemaError(f"{path.name}: line {line_id} rows missing or unordered") - return np.asarray(mine[:, 2:5]) + deck_nodes = None + if "DeckNode" in names: + column = mine[:, 5] + if np.any(column != np.round(column)): + raise CableSchemaError(f"{path.name}: DeckNode values must be integers") + deck_nodes = tuple(int(value) for value in column) + return np.asarray(mine[:, 2:5]), deck_nodes + + +@dataclass(frozen=True) +class _Mesh: + """Nodes of the per-line files (the line's final mesh) and its deck nodes. + + ``deck_rows[j]`` is the 0-based mesh node of deck node ``j + 1``, the node + the ```` of the node channels names (CableDyn 0.2.0 and later). + ``arcs`` is ``None`` when a refined mesh has no ``.elements.out`` to place + the nodes the refinement added. + """ + + n_nodes: int + arcs: FloatArray | None + deck_rows: tuple[int, ...] + refined: bool + map_source: str + + +def _deck_rows( + deck_nodes: Sequence[int], n_deck: int, where: str, line_id: int +) -> tuple[int, ...]: + """Mesh rows of the deck nodes from a ``DeckNode`` numbering.""" + numbered = [(row, value) for row, value in enumerate(deck_nodes) if value != 0] + if ( + any(value < 0 for value in deck_nodes) + or [value for _, value in numbered] != list(range(1, n_deck + 1)) + or not deck_nodes + or deck_nodes[0] != 1 + or deck_nodes[-1] != n_deck + ): + named = max((value for _, value in numbered), default=0) + raise CableSchemaError( + f"{where}: the DeckNode numbering of line {line_id} does not name the " + f"{n_deck} deck nodes of the deck sections in order, End A first and " + f"End B last (largest deck node named: {named}): the deck and the " + "output differ" + ) + return tuple(row for row, _ in numbered) + + +def _line_mesh( + line: CableDynLine, + deck_arcs: FloatArray, + finite_ei: bool, + element_arcs: tuple[Path, FloatArray] | None, + static: tuple[Path, int, tuple[int, ...] | None] | None, + heads: Sequence[tuple[_LineHead, int]], +) -> _Mesh: + """The mesh of the per-line files and the mesh row of every deck node. + + A static solve that refines a finite-EI line (``adaptive_mesh``, + ``tensile_safety`` or the automatic refinement) splits deck elements, so + every deck node stays a mesh node at its own unstretched arc length. The + node channels name deck nodes; ``.static.out``, ``.elements.out`` and the + per-line files list every mesh node. The deck nodes are located by the + ``DeckNode`` column of ``.static.out`` or the ``# DeckNode`` line of + ``.Line.p.out`` and, failing both, by their arc lengths in + ``.elements.out``; every source present must agree. + """ + line_id = line.line_id + n_deck = int(deck_arcs.size) + tol = 1e-6 * max(1.0, line.length_m) + counts: dict[str, int] = {} + maps: dict[str, tuple[int, ...]] = {} + if element_arcs is not None: + counts[element_arcs[0].name] = int(element_arcs[1].size) + if static is not None: + counts[static[0].name] = static[1] + if static[2] is not None: + maps[static[0].name] = static[2] + for head, n_nodes in heads: + counts[head.path.name] = n_nodes + if head.deck_nodes is not None: + maps[head.path.name] = head.deck_nodes + if len(set(counts.values())) > 1: + raise CableSchemaError( + f"the output files list different numbers of nodes of line {line_id} " + f"({counts}): files from different runs?" + ) + n_mesh = next(iter(counts.values()), n_deck) + for name, numbering in maps.items(): + if len(numbering) != n_mesh: + raise CableSchemaError( + f"{name}: the DeckNode numbering of line {line_id} has " + f"{len(numbering)} entries for {n_mesh} nodes" + ) + if len(set(maps.values())) > 1: + raise CableSchemaError( + f"the DeckNode numberings of line {line_id} differ between " + f"{sorted(maps)}: files from different runs?" + ) + if maps: + source, numbering = next(iter(maps.items())) + deck_rows = _deck_rows(numbering, n_deck, source, line_id) + map_source = f"DeckNode of {', '.join(sorted(maps))}" + elif n_mesh == n_deck: + deck_rows = tuple(range(n_deck)) + map_source = "deck mesh (not refined)" + elif element_arcs is not None: + # No numbering: each deck node is the mesh node at its arc length. + mesh = element_arcs[1] + rows = np.searchsorted(mesh, deck_arcs - tol) + found = (rows < mesh.size) & ( + np.abs(mesh[np.minimum(rows, mesh.size - 1)] - deck_arcs) <= tol + ) + if not found.all(): + raise CableSchemaError( + f"{element_arcs[0].name}: mesh of line {line_id} differs from the " + f"deck sections ({mesh.size} nodes, deck node at " + f"{float(deck_arcs[int(np.argmin(found))]):.6g} m not among them)" + ) + deck_rows = tuple(int(row) for row in rows) + map_source = f"arc lengths of {element_arcs[0].name}" + else: + raise CableSchemaError( + f"the output files list {n_mesh} nodes of line {line_id}, the deck " + f"sections {n_deck}, and no DeckNode numbering locates the deck nodes " + f"among them ({sorted(counts)}): the deck and the output differ" + ) + refined = n_mesh != n_deck + if refined and not finite_ei: + raise CableSchemaError( + f"line {line_id} has no finite-EI section, so its mesh is never refined, " + f"but the output lists {n_mesh} nodes against {n_deck} deck nodes: the " + "deck and the output differ" + ) + arcs: FloatArray | None = None + if element_arcs is not None: + mesh = element_arcs[1] + if not np.allclose(mesh[list(deck_rows)], deck_arcs, rtol=0.0, atol=tol): + worst = int(np.argmax(np.abs(mesh[list(deck_rows)] - deck_arcs))) + raise CableSchemaError( + f"{element_arcs[0].name}: mesh of line {line_id} differs from the " + f"deck sections (deck node {worst + 1} at " + f"{float(mesh[deck_rows[worst]]):.6g} m against " + f"{float(deck_arcs[worst]):.6g} m in the deck)" + ) + arcs = mesh + elif not refined: + arcs = deck_arcs + return _Mesh(n_mesh, arcs, deck_rows, refined, map_source) -def _element_arcs(path: Path, line_id: int) -> FloatArray: +def _element_arcs(path: Path, line_id: int, *, required: bool) -> FloatArray | None: + """Reference arc lengths of the line's element ends, End A first; ``None`` + when the file has no rows of an ``EI = 0`` line (``required=False``).""" rows = path.read_text(encoding="utf-8").splitlines() header = [cell.strip() for cell in rows[1].split("\t")] units = [cell.strip() for cell in rows[2].split("\t")] @@ -1083,7 +1292,9 @@ def _element_arcs(path: Path, line_id: int) -> FloatArray: data = np.array( [[float(row.split("\t")[i]) for i in take] for row in rows[3:] if row.strip()] ) - mine = data[data[:, 0] == line_id] + mine = data[data[:, 0] == line_id] if data.size else data.reshape(0, 4) + if mine.size == 0 and not required: + return None if mine.size == 0 or np.any(np.diff(mine[:, 1]) != 1): raise CableSchemaError(f"{path.name}: elements of line {line_id} unordered") if np.any(np.abs(mine[1:, 2] - mine[:-1, 3]) > 1e-6 * max(1.0, float(mine[-1, 3]))): @@ -1194,68 +1405,121 @@ def read_cabledyn_sections( paths = _discover(root, line_id) checks: dict[str, Any] = {"deck_defaults_used": list(deck_obj.defaults_used)} - arcs = line.node_arc_lengths() - if "elements" in paths: - element_arcs = _element_arcs(paths["elements"], line_id) - if element_arcs.size != arcs.size or not np.allclose( - element_arcs, arcs, rtol=0.0, atol=1e-6 * max(1.0, line.length_m) + deck_arcs = line.node_arc_lengths() + n_deck = int(deck_arcs.size) + finite_ei = any( + deck_obj.line_type(sec.line_type).ei_Nm2 > 0.0 for sec in line.sections + ) + for name, arc in sections.items(): + if ( + not name.strip() + or not math.isfinite(arc) + or not 0.0 <= arc <= deck_arcs[-1] ): raise CableSchemaError( - f"{paths['elements'].name}: mesh of line {line_id} differs from the " - f"deck sections ({element_arcs.size} against {arcs.size} nodes)" + f"section {name!r} at {arc} m is outside line {line_id} " + f"(0 to {deck_arcs[-1]:.6g} m)" ) - arcs = element_arcs - checks["arc_lengths"] = "deck sections, confirmed by .elements.out" - elif deck_obj.adaptive_mesh: - raise CableSchemaError( - "adaptive_mesh may change the mesh; the .elements.out file is needed " - "to locate the nodes" + + # The node channels name deck nodes; .static.out, .elements.out and the + # per-line files list every node of the line's final mesh, which the static + # solve may have refined. + heads: list[tuple[_LineHead, int]] = [] + positions_head: _LineHead | None = None + tensions_head: _LineHead | None = None + if "positions" in paths: + positions_head = _line_head(paths["positions"], "node positions") + n_columns = len(positions_head.header) - 1 + if n_columns < 6 or n_columns % 3: + raise CableSchemaError( + f"{paths['positions'].name}: expected Time(s) and X, Y, Z columns " + "of at least two nodes" + ) + heads.append((positions_head, n_columns // 3)) + if "tensions" in paths: + tensions_head = _line_head(paths["tensions"], "segment tensions") + if len(tensions_head.header) < 2: + raise CableSchemaError(f"{paths['tensions'].name}: no segment columns") + heads.append((tensions_head, len(tensions_head.header))) + static_profile = ( + _static_profile(paths["static"], line_id) if "static" in paths else None + ) + # .elements.out may list the finite-EI lines of the run only. + element_arcs = None + if "elements" in paths: + found = _element_arcs(paths["elements"], line_id, required=finite_ei) + if found is not None: + element_arcs = (paths["elements"], found) + mesh = _line_mesh( + line, + deck_arcs, + finite_ei, + element_arcs, + None + if static_profile is None + else (paths["static"], static_profile[0].shape[0], static_profile[1]), + heads, + ) + mesh_arcs = mesh.arcs + n_mesh = mesh.n_nodes + checks["mesh"] = { + "deck_nodes": n_deck, + "output_nodes": n_mesh, + "refined": mesh.refined, + "deck_nodes_located_by": mesh.map_source, + } + if element_arcs is not None: + checks["arc_lengths"] = ( + "refined mesh of .elements.out; deck nodes at the deck-section arcs" + if mesh.refined + else "deck sections, confirmed by .elements.out" + ) + elif mesh.refined: + checks["arc_lengths"] = ( + "deck sections at the deck nodes; the nodes the refinement added are " + "not placed (no .elements.out)" ) else: checks["arc_lengths"] = "deck sections" - n_nodes = arcs.size - for name, arc in sections.items(): - if not name.strip() or not math.isfinite(arc) or not 0.0 <= arc <= arcs[-1]: - raise CableSchemaError( - f"section {name!r} at {arc} m is outside line {line_id} " - f"(0 to {arcs[-1]:.6g} m)" - ) main = _main_table(paths["main"]) channels = _channel_index(main) positions_table = None - if "positions" in paths: - columns = [f"Node{j}{axis}(m)" for j in range(1, n_nodes + 1) for axis in "XYZ"] - positions_table = _line_table(paths["positions"], "node positions", columns) + if positions_head is not None: + columns = [f"Node{j}{axis}(m)" for j in range(1, n_mesh + 1) for axis in "XYZ"] + positions_table = _line_table(positions_head, columns) tensions_table = None - if "tensions" in paths: - columns = [f"Segment{k}Tension(N)" for k in range(1, n_nodes)] - tensions_table = _line_table(paths["tensions"], "segment tensions", columns) - - plans = [ - _Plan( - name, - float(arc), - (e := _element_of(arcs, arc)), - _window(e, n_nodes, window_nodes), - ) - for name, arc in sections.items() - ] - for key in sorted(k for k in channels if k[0] == "curv" and k[1] == line_id): - node = key[2] - 1 - if 0 <= node < n_nodes: - element = min(node, n_nodes - 2) - plans.append( - _Plan( - f"Curv{line_id}N{key[2]}", - float(arcs[node]), - element, - _window(element, n_nodes, window_nodes), - probe=True, - node=node, + if tensions_head is not None: + columns = [f"Segment{k}Tension(N)" for k in range(1, n_mesh)] + tensions_table = _line_table(tensions_head, columns) + if mesh_arcs is None: + # The segments of a refined mesh cannot be placed along the line. + if tension_source == "segments": + raise CableSchemaError( + f"tension_source='segments': the segments of " + f"{paths['tensions'].name} lie on the refined mesh of line " + f"{line_id}, which {root.name}.elements.out places; it is missing" ) + tensions_table = None + checks["tension_file_skipped"] = ( + f"{paths['tensions'].name}: refined mesh without .elements.out" ) + # Grid of the node positions: every mesh node of .Line.p.out when the + # mesh is placed, the deck nodes otherwise (channels, or the deck-node + # columns of .p.out). pos_rows: mesh row of each grid node (.p.out column + # and .static.out row). + if positions_table is not None and mesh_arcs is not None: + pos_arcs = mesh_arcs + pos_rows = list(range(n_mesh)) + pos_on_mesh = True + else: + pos_arcs = deck_arcs + pos_rows = list(mesh.deck_rows) + pos_on_mesh = False + n_pos = int(pos_arcs.size) + pos_l0 = np.diff(pos_arcs) + def has_tangent(node: int) -> bool: return all((kind, line_id, node + 1) in channels for kind in ("dec", "azi")) @@ -1264,34 +1528,77 @@ def has_position(node: int) -> bool: (kind, line_id, node + 1) in channels for kind in ("px", "py", "pz") ) - sections_plans = [plan for plan in plans if not plan.probe] + # Sections and curvature probes: (name, deck arc, grid arc, deck element, + # grid element, deck node of a probe or -1). + specs: list[tuple[str, float, float, int, int, int]] = [ + ( + name, + float(arc), + float(arc), + _element_of(deck_arcs, arc), + _element_of(pos_arcs, arc), + -1, + ) + for name, arc in sections.items() + ] + for key in sorted(k for k in channels if k[0] == "curv" and k[1] == line_id): + node = key[2] - 1 + if 0 <= node < n_deck: + row = mesh.deck_rows[node] if pos_on_mesh else node + specs.append( + ( + f"Curv{line_id}N{key[2]}", + float(deck_arcs[node]), + float(pos_arcs[row]), + min(node, n_deck - 2), + min(row, n_pos - 2), + node, + ) + ) + section_specs = [spec for spec in specs if spec[5] < 0] if curvature_source == "auto": - tangent_ok = all(has_tangent(j) for plan in sections_plans for j in plan.window) + tangent_ok = all( + has_tangent(j) + for spec in section_specs + for j in _window(spec[3], n_deck, window_nodes) + ) source = "tangent" if tangent_ok else "positions" else: source = curvature_source needed_curvature = has_tangent if source == "tangent" else has_position - for plan in sections_plans: - missing = [j + 1 for j in plan.window if not needed_curvature(j)] - if missing: + plans: list[_Plan] = [] + for name, arc_deck, arc_pos, elem_deck, elem_pos, node in specs: + window = ( + _window(elem_deck, n_deck, window_nodes) + if source == "tangent" + else _window(elem_pos, n_pos, window_nodes) + ) + missing = [j + 1 for j in window if not needed_curvature(j)] + if missing and node < 0: what = ( f"L{line_id}NDec and L{line_id}NAzi channels" if source == "tangent" else f".Line{line_id}.p.out or L{line_id}Np{{x,y,z}} channels" ) raise CableSchemaError( - f"section {plan.name!r}: curvature from {source} needs {what} " + f"section {name!r}: curvature from {source} needs {what} " f"at nodes {missing}" ) - plans = [ - plan - for plan in plans - if not plan.probe or all(needed_curvature(j) for j in plan.window) - ] + if missing: + continue # a probe without its window is not checked + plans.append( + _Plan( + name, + arc_deck if source == "tangent" else arc_pos, + elem_deck, + elem_pos, + window, + probe=node >= 0, + node=node, + ) + ) + sections_plans = [plan for plan in plans if not plan.probe] checks["curvature_source"] = source - finite_ei = any( - deck_obj.line_type(sec.line_type).ei_Nm2 > 0.0 for sec in line.sections - ) if source == "tangent": if tangent_placement == "chord": checks["tangent_placement"] = ( @@ -1304,17 +1611,17 @@ def has_position(node: int) -> bool: else: checks["tangent_placement"] = "chord mid-arc (EI = 0 line)" - # Nodes whose positions are needed: frame transport (arc), elevation. + # Position-grid nodes needed: frame transport (arc), curvature, elevation. pos_nodes: set[int] = set() if frame == "arc": - last = max(plan.element for plan in sections_plans) + 1 + last = max(plan.elem_pos for plan in sections_plans) + 1 pos_nodes.update(range(0, last + 1)) if source == "positions": for plan in plans: pos_nodes.update(plan.window) if pressure == "hydrostatic": for plan in sections_plans: - pos_nodes.update((plan.element, plan.element + 1)) + pos_nodes.update((plan.elem_pos, plan.elem_pos + 1)) missing_positions = [j + 1 for j in sorted(pos_nodes) if not has_position(j)] if missing_positions: reason = ( @@ -1351,13 +1658,13 @@ def has_position(node: int) -> bool: ) if not use_segments: for plan in sections_plans: - for node in (plan.element, plan.element + 1): + for node in (plan.elem_deck, plan.elem_deck + 1): if ("ten", line_id, node + 1) not in channels: raise CableSchemaError( f"section {plan.name!r}: tension needs .Line{line_id}.t.out " f"or Ten{line_id}N{node + 1} in the main output" ) - torsion_nodes = [(plan.element, plan.element + 1) for plan in sections_plans] + torsion_nodes = [(plan.elem_deck, plan.elem_deck + 1) for plan in sections_plans] twist_available = all( ("twist", line_id, n + 1) in channels for pair in torsion_nodes for n in pair ) @@ -1389,27 +1696,28 @@ def want(kind: str, node: int) -> None: want(kind, node) if not use_segments: for plan in sections_plans: - want("ten", plan.element) - want("ten", plan.element + 1) + want("ten", plan.elem_deck) + want("ten", plan.elem_deck + 1) if twist_available: for plan in sections_plans: - want("twist", plan.element) - want("twist", plan.element + 1) + want("twist", plan.elem_deck) + want("twist", plan.elem_deck + 1) if torque_available: for plan in sections_plans: - want("torq", plan.element) - want("torq", plan.element + 1) + want("torq", plan.elem_deck) + want("torq", plan.elem_deck + 1) probe_nodes = [plan.node for plan in plans if plan.probe] for node in probe_nodes: want("curv", node) - tension_check_nodes = [] + # Interior deck nodes with a Ten channel, paired with their mesh node. + tension_check_nodes: list[tuple[int, int]] = [] if tensions_table is not None: tension_check_nodes = [ - k[2] - 1 + (k[2] - 1, mesh.deck_rows[k[2] - 1]) for k in channels - if k[0] == "ten" and k[1] == line_id and 1 < k[2] < n_nodes + if k[0] == "ten" and k[1] == line_id and 1 < k[2] < n_deck ] - for node in tension_check_nodes: + for node, _ in tension_check_nodes: want("ten", node) streams: list[Generator[FloatArray, None, None]] = [ @@ -1417,39 +1725,62 @@ def want(kind: str, node: int) -> None: ] if positions_table is not None and pos_order: pos_cols = [0] + [ - 1 + 3 * node + axis for node in pos_order for axis in range(3) + 1 + 3 * pos_rows[node] + axis for node in pos_order for axis in range(3) ] streams.append(_chunks(positions_table, pos_cols, chunk_rows)) elem_t: FloatArray = np.empty((0, 0)) ten_slot: dict[int, int] = {} + seg_elem: dict[str, int] = {} + mesh_l0: FloatArray = np.empty(0) + midpoints: FloatArray = np.empty(0) if tensions_table is not None: - mirror = [n_nodes - 1 - node for node in tension_check_nodes] + assert mesh_arcs is not None # a table on an unplaced mesh was dropped + mesh_l0 = np.diff(mesh_arcs) + midpoints = 0.5 * (mesh_arcs[:-1] + mesh_arcs[1:]) + seg_elem = { + plan.name: _element_of(mesh_arcs, plan.arc) for plan in sections_plans + } + mirror = [n_mesh - 1 - row for _, row in tension_check_nodes] elements = sorted( { e - for plan in sections_plans - for e in (plan.element - 1, plan.element, plan.element + 1) - if 0 <= e < n_nodes - 1 + for element in seg_elem.values() + for e in (element - 1, element, element + 1) + if 0 <= e < n_mesh - 1 + } + | { + e + for row in [row for _, row in tension_check_nodes] + mirror + for e in (row - 1, row) } - | {e for node in tension_check_nodes + mirror for e in (node - 1, node)} ) ten_slot = {e: i for i, e in enumerate(elements)} streams.append( _chunks(tensions_table, [0] + [1 + e for e in elements], chunk_rows) ) - reference_l0 = np.diff(arcs) - midpoints = 0.5 * (arcs[:-1] + arcs[1:]) + deck_l0 = np.diff(deck_arcs) # Arc length of each Dec/Azi value: the node's own tangent of a finite-EI # line (CableDyn 0.4.2+) at the node; a chord (central, one-sided at the - # ends) at its mid-arc, the point of a smooth arc whose tangent it is. - if tangent_placement == "auto" and finite_ei: - tangent_arcs = arcs - else: + # ends) at its mid-arc, the point of a smooth arc whose tangent it is. On a + # refined line a deck node's chord joins its neighbours on the refined mesh. + tangent_arcs = deck_arcs + if source == "tangent" and not (tangent_placement == "auto" and finite_ei): + if not mesh.refined: + chord_arcs, chord_rows = deck_arcs, list(range(n_deck)) + elif mesh_arcs is not None: + chord_arcs, chord_rows = mesh_arcs, list(mesh.deck_rows) + else: + raise CableSchemaError( + f"tangent_placement='chord' on the refined line {line_id} places each " + "chord on the refined mesh, which " + f"{root.name}.elements.out locates; it is missing" + ) + last_row = int(chord_arcs.size) - 1 tangent_arcs = np.array( [ - 0.5 * (arcs[max(j - 1, 0)] + arcs[min(j + 1, n_nodes - 1)]) - for j in range(n_nodes) + 0.5 * (chord_arcs[max(m - 1, 0)] + chord_arcs[min(m + 1, last_row)]) + for m in chord_rows ] ) state_a: FloatArray | None = None @@ -1504,15 +1835,15 @@ def append(plan: _Plan, key: str, values: FloatArray) -> None: if tensions_table is not None: elem_t = chunk[-1][:, 1:] if first: - if "static" in paths and pos_order: - static = _static_profile(paths["static"], line_id) - if static.shape[0] != n_nodes: - raise CableSchemaError( - f"{paths['static'].name}: {static.shape[0]} nodes, " - f"expected {n_nodes}" - ) + if static_profile is not None and pos_order: + static = static_profile[0] max_t0_error = float( - np.max(np.abs(static[pos_order] - positions[0])) + np.max( + np.abs( + static[[pos_rows[node] for node in pos_order]] + - positions[0] + ) + ) ) if max_t0_error > 2e-6 * max(1.0, float(np.max(np.abs(static)))): raise CableSchemaError( @@ -1531,7 +1862,7 @@ def append(plan: _Plan, key: str, values: FloatArray) -> None: for j in contiguous ] ) - stretch = chord / reference_l0[contiguous] - 1.0 + stretch = chord / pos_l0[contiguous] - 1.0 stretch_range = (float(stretch.min()), float(stretch.max())) if stretch_range[0] < -0.02 or stretch_range[1] > 0.05: raise CableSchemaError( @@ -1543,16 +1874,16 @@ def append(plan: _Plan, key: str, values: FloatArray) -> None: position_floor = ( 0.5 * 10.0 ** (math.floor(math.log10(max(magnitude, 1e-30))) - 7) - / float(np.min(reference_l0)) ** 2 + / float(np.min(pos_l0)) ** 2 ) # Element tension consistency (ordering check). if tensions_table is not None and tension_check_nodes: - for node in tension_check_nodes: + for node, row in tension_check_nodes: channel = values[:, slot[("ten", node)]] scale = np.maximum(np.abs(channel), 1.0) - for j, label in ((node, "match"), (n_nodes - 1 - node, "mirror")): + for j, label in ((row, "match"), (n_mesh - 1 - row, "mirror")): left, right = elem_t[:, ten_slot[j - 1]], elem_t[:, ten_slot[j]] - w_left, w_right = reference_l0[j - 1], reference_l0[j] + w_left, w_right = mesh_l0[j - 1], mesh_l0[j] mean = (w_left * left + w_right * right) / (w_left + w_right) error = np.abs(channel - mean) / scale if label == "match": @@ -1563,7 +1894,7 @@ def append(plan: _Plan, key: str, values: FloatArray) -> None: # Frame transport along the arc (all sections share it). arc_e1: dict[int, FloatArray] = {} if frame == "arc": - last = max(plan.element for plan in sections_plans) + last = max(plan.elem_pos for plan in sections_plans) chords = _unit( positions[:, [pos_slot[j + 1] for j in range(last + 1)]] - positions[:, [pos_slot[j] for j in range(last + 1)]], @@ -1601,8 +1932,8 @@ def append(plan: _Plan, key: str, values: FloatArray) -> None: tangent = _unit(value, "section tangent") kappa = np.cross(tangent, d1) else: - window = positions[:, [pos_slot[j] for j in plan.window]] - value, d1, d2 = _spline(arcs[plan.window], window, plan.arc) + window_xyz = positions[:, [pos_slot[j] for j in plan.window]] + value, d1, d2 = _spline(pos_arcs[plan.window], window_xyz, plan.arc) speed = np.linalg.norm(d1, axis=-1, keepdims=True) tangent = d1 / speed kappa = np.cross(d1, d2) / speed**3 @@ -1614,7 +1945,7 @@ def append(plan: _Plan, key: str, values: FloatArray) -> None: continue if frame == "arc": axis1 = _transport( - arc_e1[plan.element], chords[:, plan.element], tangent + arc_e1[plan.elem_pos], chords[:, plan.elem_pos], tangent ) else: axis1, state = _time_transport( @@ -1625,11 +1956,18 @@ def append(plan: _Plan, key: str, values: FloatArray) -> None: ) state_section[plan.name] = state axis2 = np.cross(tangent, axis1) - weight = (plan.arc - arcs[plan.element]) / reference_l0[plan.element] + # Linear weights between the bracketing deck nodes (node + # channels) and position-grid nodes (positions). + weight = (plan.arc - deck_arcs[plan.elem_deck]) / deck_l0[ + plan.elem_deck + ] + weight_pos = (plan.arc - pos_arcs[plan.elem_pos]) / pos_l0[ + plan.elem_pos + ] if twist_available: twist = np.radians( - (1 - weight) * values[:, slot[("twist", plan.element)]] - + weight * values[:, slot[("twist", plan.element + 1)]] + (1 - weight) * values[:, slot[("twist", plan.elem_deck)]] + + weight * values[:, slot[("twist", plan.elem_deck + 1)]] ) cos, sin = np.cos(twist)[:, None], np.sin(twist)[:, None] axis1, axis2 = cos * axis1 + sin * axis2, -sin * axis1 + cos * axis2 @@ -1638,28 +1976,28 @@ def append(plan: _Plan, key: str, values: FloatArray) -> None: append( plan, "torque", - (1 - weight) * values[:, slot[("torq", plan.element)]] - + weight * values[:, slot[("torq", plan.element + 1)]], + (1 - weight) * values[:, slot[("torq", plan.elem_deck)]] + + weight * values[:, slot[("torq", plan.elem_deck + 1)]], ) append(plan, "kx", np.sum(kappa * axis1, axis=-1)) append(plan, "ky", np.sum(kappa * axis2, axis=-1)) if ( pos_order - and plan.element in pos_slot - and plan.element + 1 in pos_slot + and plan.elem_pos in pos_slot + and plan.elem_pos + 1 in pos_slot ): if source == "positions": z = value[:, 2] else: - z = (1 - weight) * positions[ - :, pos_slot[plan.element], 2 - ] + weight * positions[:, pos_slot[plan.element + 1], 2] + z = (1 - weight_pos) * positions[ + :, pos_slot[plan.elem_pos], 2 + ] + weight_pos * positions[:, pos_slot[plan.elem_pos + 1], 2] append(plan, "z", z) if use_segments: if plan.arc <= midpoints[0]: ten = elem_t[:, ten_slot[0]] elif plan.arc >= midpoints[-1]: - ten = elem_t[:, ten_slot[n_nodes - 2]] + ten = elem_t[:, ten_slot[n_mesh - 2]] else: lower = int( np.searchsorted(midpoints, plan.arc, side="right") - 1 @@ -1672,8 +2010,8 @@ def append(plan: _Plan, key: str, values: FloatArray) -> None: ] else: ten = (1 - weight) * values[ - :, slot[("ten", plan.element)] - ] + weight * values[:, slot[("ten", plan.element + 1)]] + :, slot[("ten", plan.elem_deck)] + ] + weight * values[:, slot[("ten", plan.elem_deck + 1)]] append(plan, "tension", ten) append(plans[0], "time", time) n_rows += nt @@ -1731,14 +2069,14 @@ def append(plan: _Plan, key: str, values: FloatArray) -> None: # End nodes and their neighbours: the spline window is one-sided # there (and starts from the one-sided end chord on chord output), # CableDyn reports the end element's own curvature. - end = node <= 2 or node >= n_nodes - 1 + end = node <= 2 or node >= n_deck - 1 allowed = atol + ( curvature_check_end_rtol if end else curvature_check_rtol ) * float(np.max(np.abs(channel))) # At an end node CableDyn reports the end element's curvature, which # carries the end condition (clamped or pinned); the spline # extrapolation does not impose it. Reported, not enforced. - enforced = 1 < node < n_nodes + enforced = 1 < node < n_deck curvature_checks[f"N{node}"] = { "max_abs_error_1_m": error, "max_channel_1_m": float(np.max(np.abs(channel))), diff --git a/tests/data/cabledyn/lw24r.Line1.p.out b/tests/data/cabledyn/lw24r.Line1.p.out new file mode 100644 index 0000000..37a1832 --- /dev/null +++ b/tests/data/cabledyn/lw24r.Line1.p.out @@ -0,0 +1,14 @@ +# CableDyn finite-EI Hermite line node positions; public node order EndA -> EndB +# DeckNode 1 2 3 4 5 6 0 7 0 8 0 9 0 10 0 11 0 12 0 13 0 14 0 15 0 16 0 17 0 18 0 19 0 20 0 21 0 22 0 23 0 24 0 25 +Time(s) Node1X(m) Node1Y(m) Node1Z(m) Node2X(m) Node2Y(m) Node2Z(m) Node3X(m) Node3Y(m) Node3Z(m) Node4X(m) Node4Y(m) Node4Z(m) Node5X(m) Node5Y(m) Node5Z(m) Node6X(m) Node6Y(m) Node6Z(m) Node7X(m) Node7Y(m) Node7Z(m) Node8X(m) Node8Y(m) Node8Z(m) Node9X(m) Node9Y(m) Node9Z(m) Node10X(m) Node10Y(m) Node10Z(m) Node11X(m) Node11Y(m) Node11Z(m) Node12X(m) Node12Y(m) Node12Z(m) Node13X(m) Node13Y(m) Node13Z(m) Node14X(m) Node14Y(m) Node14Z(m) Node15X(m) Node15Y(m) Node15Z(m) Node16X(m) Node16Y(m) Node16Z(m) Node17X(m) Node17Y(m) Node17Z(m) Node18X(m) Node18Y(m) Node18Z(m) Node19X(m) Node19Y(m) Node19Z(m) Node20X(m) Node20Y(m) Node20Z(m) Node21X(m) Node21Y(m) Node21Z(m) Node22X(m) Node22Y(m) Node22Z(m) Node23X(m) Node23Y(m) Node23Z(m) Node24X(m) Node24Y(m) Node24Z(m) Node25X(m) Node25Y(m) Node25Z(m) Node26X(m) Node26Y(m) Node26Z(m) Node27X(m) Node27Y(m) Node27Z(m) Node28X(m) Node28Y(m) Node28Z(m) Node29X(m) Node29Y(m) Node29Z(m) Node30X(m) Node30Y(m) Node30Z(m) Node31X(m) Node31Y(m) Node31Z(m) Node32X(m) Node32Y(m) Node32Z(m) Node33X(m) Node33Y(m) Node33Z(m) Node34X(m) Node34Y(m) Node34Z(m) Node35X(m) Node35Y(m) Node35Z(m) Node36X(m) Node36Y(m) Node36Z(m) Node37X(m) Node37Y(m) Node37Z(m) Node38X(m) Node38Y(m) Node38Z(m) Node39X(m) Node39Y(m) Node39Z(m) Node40X(m) Node40Y(m) Node40Z(m) Node41X(m) Node41Y(m) Node41Z(m) Node42X(m) Node42Y(m) Node42Z(m) Node43X(m) Node43Y(m) Node43Z(m) Node44X(m) Node44Y(m) Node44Z(m) + 0.0000000000000000E+000 5.0000000E+000 0.0000000E+000 -1.4000000E+001 6.0363875E+000 0.0000000E+000 -2.0732156E+001 7.2093895E+000 0.0000000E+000 -2.7441744E+001 8.5699558E+000 0.0000000E+000 -3.4115673E+001 1.0189004E+001 0.0000000E+000 -4.0731332E+001 1.2191785E+001 0.0000000E+000 -4.7240178E+001 1.3394761E+001 0.0000000E+000 -5.0425940E+001 1.4793721E+001 0.0000000E+000 -5.3530279E+001 1.6454472E+001 0.0000000E+000 -5.6501981E+001 1.8466910E+001 0.0000000E+000 -5.9245809E+001 2.0926150E+001 0.0000000E+000 -6.1593165E+001 2.3868599E+001 0.0000000E+000 -6.3286983E+001 2.7174611E+001 0.0000000E+000 -6.4041581E+001 3.0548661E+001 0.0000000E+000 -6.3705082E+001 3.3680031E+001 0.0000000E+000 -6.2392330E+001 3.6469190E+001 0.0000000E+000 -6.0443845E+001 3.8870017E+001 0.0000000E+000 -5.8443475E+001 4.1357848E+001 0.0000000E+000 -5.6553560E+001 4.4016633E+001 0.0000000E+000 -5.4914850E+001 4.6865772E+001 0.0000000E+000 -5.3637683E+001 4.9876146E+001 0.0000000E+000 -5.2811984E+001 5.2981782E+001 0.0000000E+000 -5.2501566E+001 5.6094250E+001 0.0000000E+000 -5.2732929E+001 5.9122524E+001 0.0000000E+000 -5.3489646E+001 6.1992465E+001 0.0000000E+000 -5.4718563E+001 6.4658048E+001 0.0000000E+000 -5.6345140E+001 6.7101806E+001 0.0000000E+000 -5.8290154E+001 6.9328095E+001 0.0000000E+000 -6.0481469E+001 7.1354893E+001 0.0000000E+000 -6.2859020E+001 7.3208834E+001 0.0000000E+000 -6.5374068E+001 7.4927216E+001 0.0000000E+000 -6.7983943E+001 7.6575543E+001 0.0000000E+000 -7.0638870E+001 7.9088183E+001 0.0000000E+000 -7.4176485E+001 8.2193373E+001 0.0000000E+000 -7.7196053E+001 8.6010690E+001 0.0000000E+000 -7.9224495E+001 9.0266517E+001 0.0000000E+000 -8.0003882E+001 9.4607789E+001 0.0000000E+000 -8.0015784E+001 9.8949454E+001 0.0000000E+000 -8.0008421E+001 1.0329120E+002 0.0000000E+000 -8.0010153E+001 1.0763296E+002 0.0000000E+000 -8.0009811E+001 1.1197473E+002 0.0000000E+000 -8.0009856E+001 1.1631649E+002 0.0000000E+000 -8.0009942E+001 1.2065825E+002 0.0000000E+000 -8.0009696E+001 1.2500000E+002 0.0000000E+000 -8.0000000E+001 + 1.0000000000000001E-001 5.0002477E+000 1.4462026E-004 -1.3999930E+001 6.0363454E+000 -2.0571917E-005 -2.0732131E+001 7.2093822E+000 -3.8165257E-006 -2.7441713E+001 8.5699518E+000 -1.1406963E-006 -3.4115642E+001 1.0189000E+001 -4.9826256E-007 -4.0731301E+001 1.2191781E+001 -2.1611921E-007 -4.7240148E+001 1.3394758E+001 -5.3780746E-008 -5.0425909E+001 1.4793718E+001 5.0144671E-008 -5.3530248E+001 1.6454467E+001 1.5296505E-007 -5.6501950E+001 1.8466905E+001 2.5753093E-007 -5.9245779E+001 2.0926143E+001 3.6911235E-007 -6.1593137E+001 2.3868590E+001 4.9119232E-007 -6.3286959E+001 2.7174600E+001 6.2326829E-007 -6.4041563E+001 3.0548652E+001 7.6027414E-007 -6.3705071E+001 3.3680024E+001 8.8232074E-007 -6.2392325E+001 3.6469188E+001 1.3494827E-006 -6.0443847E+001 3.8870018E+001 1.7346463E-006 -5.8443481E+001 4.1357849E+001 1.9140376E-006 -5.6553566E+001 4.4016635E+001 2.1062551E-006 -5.4914856E+001 4.6865773E+001 2.2833329E-006 -5.3637689E+001 4.9876147E+001 2.4333935E-006 -5.2811989E+001 5.2981782E+001 2.5459437E-006 -5.2501569E+001 5.6094250E+001 2.6150730E-006 -5.2732931E+001 5.9122525E+001 2.6399748E-006 -5.3489647E+001 6.1992467E+001 2.6244521E-006 -5.4718563E+001 6.4658050E+001 2.5758055E-006 -5.6345139E+001 6.7101808E+001 2.5032717E-006 -5.8290152E+001 6.9328098E+001 2.4163387E-006 -6.0481468E+001 7.1354896E+001 2.3235943E-006 -6.2859019E+001 7.3208837E+001 2.2304194E-006 -6.5374066E+001 7.4927219E+001 2.1649333E-006 -6.7983942E+001 7.6575545E+001 1.7958457E-006 -7.0638868E+001 7.9088184E+001 1.3191820E-006 -7.4176484E+001 8.2193373E+001 1.2787545E-006 -7.7196053E+001 8.6010690E+001 1.2094054E-006 -7.9224496E+001 9.0266517E+001 1.1233966E-006 -8.0003882E+001 9.4607789E+001 1.0200386E-006 -8.0015784E+001 9.8949454E+001 8.9574558E-007 -8.0008421E+001 1.0329120E+002 7.5565464E-007 -8.0010153E+001 1.0763296E+002 6.0006065E-007 -8.0009811E+001 1.1197473E+002 4.3065269E-007 -8.0009856E+001 1.1631649E+002 2.4996789E-007 -8.0009942E+001 1.2065825E+002 5.0245238E-008 -8.0009696E+001 1.2500000E+002 0.0000000E+000 -8.0000000E+001 + 2.0000000000000001E-001 5.0009469E+000 5.5229668E-004 -1.3999688E+001 6.0362446E+000 -6.8396252E-005 -2.0732012E+001 7.2093693E+000 -9.1089459E-006 -2.7441580E+001 8.5699335E+000 -4.3919044E-006 -3.4115509E+001 1.0188981E+001 -2.6795273E-006 -4.0731169E+001 1.2191762E+001 -1.4442178E-006 -4.7240016E+001 1.3394741E+001 -6.4341676E-007 -5.0425777E+001 1.4793701E+001 -7.8823098E-008 -5.3530116E+001 1.6454449E+001 4.5713021E-007 -5.6501819E+001 1.8466883E+001 9.9728015E-007 -5.9245651E+001 2.0926113E+001 1.5658543E-006 -6.1593017E+001 2.3868551E+001 2.1814528E-006 -6.3286857E+001 2.7174555E+001 2.8456096E-006 -6.4041487E+001 3.0548609E+001 3.5124870E-006 -6.3705022E+001 3.3679993E+001 4.1654117E-006 -6.2392303E+001 3.6469177E+001 6.3797119E-006 -6.0443854E+001 3.8870020E+001 8.2523722E-006 -5.8443503E+001 4.1357853E+001 9.1362396E-006 -5.6553591E+001 4.4016638E+001 1.0099756E-005 -5.4914880E+001 4.6865776E+001 1.0995071E-005 -5.3637712E+001 4.9876149E+001 1.1762055E-005 -5.2812009E+001 5.2981784E+001 1.2347754E-005 -5.2501584E+001 5.6094252E+001 1.2721433E-005 -5.2732941E+001 5.9122529E+001 1.2877855E-005 -5.3489651E+001 6.1992472E+001 1.2834669E-005 -5.4718564E+001 6.4658057E+001 1.2626832E-005 -5.6345136E+001 6.7101817E+001 1.2299012E-005 -5.8290148E+001 6.9328108E+001 1.1897495E-005 -6.0481462E+001 7.1354907E+001 1.1464043E-005 -6.2859012E+001 7.3208848E+001 1.1026336E-005 -6.5374059E+001 7.4927230E+001 1.0739021E-005 -6.7983935E+001 7.6575554E+001 8.9115423E-006 -7.0638863E+001 7.9088188E+001 6.5500113E-006 -7.4176482E+001 8.2193374E+001 6.3923360E-006 -7.7196054E+001 8.6010690E+001 6.0699736E-006 -7.9224499E+001 9.0266517E+001 5.6725918E-006 -8.0003883E+001 9.4607789E+001 5.1919119E-006 -8.0015784E+001 9.8949454E+001 4.6007689E-006 -8.0008421E+001 1.0329120E+002 3.9340454E-006 -8.0010153E+001 1.0763296E+002 3.1880662E-006 -8.0009811E+001 1.1197473E+002 2.3711296E-006 -8.0009856E+001 1.1631649E+002 1.4974476E-006 -8.0009942E+001 1.2065825E+002 5.2793493E-007 -8.0009696E+001 1.2500000E+002 0.0000000E+000 -8.0000000E+001 + 3.0000000000000004E-001 5.0020189E+000 1.1764812E-003 -1.3999231E+001 6.0361439E+000 -1.1407386E-004 -2.0731735E+001 7.2093401E+000 -1.4943442E-005 -2.7441290E+001 8.5698789E+000 -1.4585498E-005 -3.4115224E+001 1.0188938E+001 -9.6446017E-006 -4.0730881E+001 1.2191722E+001 -5.4452979E-006 -4.7239727E+001 1.3394702E+001 -2.9966788E-006 -5.0425488E+001 1.4793663E+001 -1.2210642E-006 -5.3529827E+001 1.6454409E+001 3.8616530E-007 -5.6501531E+001 1.8466835E+001 1.9944501E-006 -5.9245369E+001 2.0926047E+001 3.6641044E-006 -6.1592753E+001 2.3868463E+001 5.4527343E-006 -6.3286632E+001 2.7174454E+001 7.3773698E-006 -6.4041319E+001 3.0548514E+001 9.2149127E-006 -6.3704914E+001 3.3679925E+001 1.1312105E-005 -6.2392258E+001 3.6469152E+001 1.7259541E-005 -6.0443871E+001 3.8870023E+001 2.2424948E-005 -5.8443554E+001 4.1357861E+001 2.5007188E-005 -5.6553648E+001 4.4016647E+001 2.7766823E-005 -5.4914937E+001 4.6865783E+001 3.0377173E-005 -5.3637765E+001 4.9876154E+001 3.2635294E-005 -5.2812054E+001 5.2981788E+001 3.4391551E-005 -5.2501619E+001 5.6094257E+001 3.5553038E-005 -5.2732964E+001 5.9122536E+001 3.6100835E-005 -5.3489663E+001 6.1992484E+001 3.6081555E-005 -5.4718566E+001 6.4658073E+001 3.5591110E-005 -5.6345132E+001 6.7101836E+001 3.4753389E-005 -5.8290138E+001 6.9328130E+001 3.3698853E-005 -6.0481450E+001 7.1354931E+001 3.2537858E-005 -6.2858998E+001 7.3208873E+001 3.1393931E-005 -6.5374044E+001 7.4927256E+001 3.0576829E-005 -6.7983920E+001 7.6575574E+001 2.5463339E-005 -7.0638852E+001 7.9088197E+001 1.8817666E-005 -7.4176478E+001 8.2193376E+001 1.8374470E-005 -7.7196058E+001 8.6010689E+001 1.7544655E-005 -7.9224507E+001 9.0266517E+001 1.6496033E-005 -8.0003885E+001 9.4607790E+001 1.5220139E-005 -8.0015784E+001 9.8949454E+001 1.3611378E-005 -8.0008421E+001 1.0329120E+002 1.1794161E-005 -8.0010153E+001 1.0763296E+002 9.7427081E-006 -8.0009811E+001 1.1197473E+002 7.4827691E-006 -8.0009856E+001 1.1631649E+002 5.0439338E-006 -8.0009942E+001 1.2065825E+002 2.4165542E-006 -8.0009696E+001 1.2500000E+002 0.0000000E+000 -8.0000000E+001 + 4.0000000000000002E-001 5.0033701E+000 1.9617121E-003 -1.3998523E+001 6.0361434E+000 -1.0363936E-004 -2.0731236E+001 7.2092370E+000 -3.9916489E-005 -2.7440806E+001 8.5697676E+000 -4.1944851E-005 -3.4114743E+001 1.0188863E+001 -2.5791243E-005 -4.0730391E+001 1.2191649E+001 -1.4808942E-005 -4.7239237E+001 1.3394631E+001 -9.1118259E-006 -5.0424996E+001 1.4793595E+001 -4.9108977E-006 -5.3529334E+001 1.6454338E+001 -1.2145986E-006 -5.6501041E+001 1.8466749E+001 2.4433911E-006 -5.9244889E+001 2.0925933E+001 6.1942940E-006 -6.1592305E+001 2.3868311E+001 1.0177323E-005 -6.3286250E+001 2.7174281E+001 1.4423033E-005 -6.4041032E+001 3.0548352E+001 1.8301129E-005 -6.3704731E+001 3.3679809E+001 2.3446399E-005 -6.2392184E+001 3.6469108E+001 3.5558147E-005 -6.0443901E+001 3.8870028E+001 4.6335813E-005 -5.8443643E+001 4.1357876E+001 5.2231802E-005 -5.6553749E+001 4.4016661E+001 5.8230304E-005 -5.4915038E+001 4.6865796E+001 6.4062381E-005 -5.3637860E+001 4.9876163E+001 6.9147990E-005 -5.2812137E+001 5.2981795E+001 7.3174692E-005 -5.2501684E+001 5.6094266E+001 7.5925952E-005 -5.2733008E+001 5.9122550E+001 7.7351014E-005 -5.3489687E+001 6.1992505E+001 7.7543178E-005 -5.4718572E+001 6.4658102E+001 7.6703407E-005 -5.6345125E+001 6.7101872E+001 7.5094164E-005 -5.8290123E+001 6.9328172E+001 7.2998435E-005 -6.0481429E+001 7.1354976E+001 7.0621044E-005 -6.2858974E+001 7.3208920E+001 6.8433373E-005 -6.5374019E+001 7.4927303E+001 6.6454637E-005 -6.7983894E+001 7.6575610E+001 5.5672878E-005 -7.0638833E+001 7.9088213E+001 4.1530577E-005 -7.4176473E+001 8.2193378E+001 4.0329421E-005 -7.7196069E+001 8.6010686E+001 3.8810481E-005 -7.9224523E+001 9.0266517E+001 3.6694401E-005 -8.0003887E+001 9.4607790E+001 3.4124388E-005 -8.0015783E+001 9.8949454E+001 3.0790736E-005 -8.0008421E+001 1.0329120E+002 2.7014573E-005 -8.0010153E+001 1.0763296E+002 2.2708429E-005 -8.0009811E+001 1.1197473E+002 1.7941491E-005 -8.0009856E+001 1.1631649E+002 1.2707476E-005 -8.0009942E+001 1.2065825E+002 7.3659457E-006 -8.0009697E+001 1.2500000E+002 0.0000000E+000 -8.0000000E+001 + 5.0000000000000000E-001 5.0048933E+000 2.8447922E-003 -1.3997536E+001 6.0363244E+000 1.4852116E-005 -2.0730456E+001 7.2089822E+000 -1.2122795E-004 -2.7440098E+001 8.5696046E+000 -9.3907096E-005 -3.4114017E+001 1.0188746E+001 -5.4526037E-005 -4.0729655E+001 1.2191530E+001 -3.2502646E-005 -4.7238500E+001 1.3394522E+001 -2.1911566E-005 -5.0424256E+001 1.4793488E+001 -1.3362573E-005 -5.3528593E+001 1.6454227E+001 -6.1157597E-006 -5.6500302E+001 1.8466617E+001 9.5533876E-007 -5.9244166E+001 2.0925757E+001 8.1316665E-006 -6.1591629E+001 2.3868080E+001 1.5708646E-005 -6.3285673E+001 2.7174018E+001 2.3599018E-005 -6.4040597E+001 3.0548105E+001 3.0734789E-005 -6.3704457E+001 3.3679634E+001 4.1215726E-005 -6.2392080E+001 3.6469038E+001 6.2149874E-005 -6.0443948E+001 3.8870032E+001 8.1184672E-005 -5.8443778E+001 4.1357899E+001 9.2721232E-005 -5.6553910E+001 4.4016683E+001 1.0380692E-004 -5.4915196E+001 4.6865814E+001 1.1490374E-004 -5.3638011E+001 4.9876176E+001 1.2466290E-004 -5.2812269E+001 5.2981806E+001 1.3251885E-004 -5.2501788E+001 5.6094279E+001 1.3804630E-004 -5.2733080E+001 5.9122571E+001 1.4113059E-004 -5.3489727E+001 6.1992537E+001 1.4192949E-004 -5.4718586E+001 6.4658147E+001 1.4080126E-004 -5.6345118E+001 6.7101928E+001 1.3822124E-004 -5.8290102E+001 6.9328237E+001 1.3470591E-004 -6.0481399E+001 7.1355047E+001 1.3058217E-004 -6.2858939E+001 7.3208996E+001 1.2714371E-004 -6.5373980E+001 7.4927377E+001 1.2290384E-004 -6.7983856E+001 7.6575667E+001 1.0372295E-004 -7.0638805E+001 7.9088239E+001 7.8287219E-005 -7.4176468E+001 8.2193377E+001 7.5314104E-005 -7.7196090E+001 8.6010682E+001 7.3167230E-005 -7.9224549E+001 9.0266517E+001 6.9519846E-005 -8.0003890E+001 9.4607790E+001 6.5150970E-005 -8.0015781E+001 9.8949454E+001 5.9285100E-005 -8.0008421E+001 1.0329120E+002 5.2617741E-005 -8.0010153E+001 1.0763296E+002 4.4930494E-005 -8.0009811E+001 1.1197473E+002 3.6381329E-005 -8.0009856E+001 1.1631649E+002 2.6827876E-005 -8.0009942E+001 1.2065825E+002 1.7558038E-005 -8.0009697E+001 1.2500000E+002 0.0000000E+000 -8.0000000E+001 + 6.0000000000000009E-001 5.0064707E+000 3.7561987E-003 -1.3996250E+001 6.0367109E+000 2.6423050E-004 -2.0729355E+001 7.2085381E+000 -2.9098891E-004 -2.7439137E+001 8.5694026E+000 -1.6898096E-004 -3.4113009E+001 1.0188555E+001 -9.9962190E-005 -4.0728642E+001 1.2191354E+001 -6.2719124E-005 -4.7237484E+001 1.3394364E+001 -4.5013520E-005 -5.0423234E+001 1.4793333E+001 -2.9450738E-005 -5.3527568E+001 1.6454067E+001 -1.6669239E-005 -5.6499280E+001 1.8466429E+001 -4.4170793E-006 -5.9243166E+001 2.0925507E+001 7.9193561E-006 -6.1590695E+001 2.3867754E+001 2.0883040E-005 -6.3284874E+001 2.7173649E+001 3.3911939E-005 -6.4039993E+001 3.0547759E+001 4.6076979E-005 -6.3704082E+001 3.3679389E+001 6.4699210E-005 -6.2391944E+001 3.6468937E+001 9.7183965E-005 -6.0444018E+001 3.8870032E+001 1.2728680E-004 -5.8443969E+001 4.1357930E+001 1.4745933E-004 -5.6554141E+001 4.4016712E+001 1.6596888E-004 -5.4915425E+001 4.6865838E+001 1.8487202E-004 -5.3638228E+001 4.9876194E+001 2.0171388E-004 -5.2812462E+001 5.2981820E+001 2.1546235E-004 -5.2501943E+001 5.6094297E+001 2.2539769E-004 -5.2733189E+001 5.9122600E+001 2.3128547E-004 -5.3489791E+001 6.1992583E+001 2.3336362E-004 -5.4718610E+001 6.4658210E+001 2.3220440E-004 -5.6345112E+001 6.7102009E+001 2.2859059E-004 -5.8290075E+001 6.9328330E+001 2.2332491E-004 -6.0481359E+001 7.1355149E+001 2.1702187E-004 -6.2858892E+001 7.3209105E+001 2.1221447E-004 -6.5373928E+001 7.4927484E+001 2.0414968E-004 -6.7983805E+001 7.6575750E+001 1.7364948E-004 -7.0638769E+001 7.9088275E+001 1.3275418E-004 -7.4176466E+001 8.2193374E+001 1.2635262E-004 -7.7196127E+001 8.6010675E+001 1.2391748E-004 -7.9224588E+001 9.0266517E+001 1.1830929E-004 -8.0003894E+001 9.4607790E+001 1.1169913E-004 -8.0015780E+001 9.8949454E+001 1.0245000E-004 -8.0008421E+001 1.0329120E+002 9.1900484E-005 -8.0010153E+001 1.0763296E+002 7.9598685E-005 -8.0009811E+001 1.1197473E+002 6.5800766E-005 -8.0009856E+001 1.1631649E+002 5.0324602E-005 -8.0009942E+001 1.2065825E+002 3.5520236E-005 -8.0009697E+001 1.2500000E+002 0.0000000E+000 -8.0000000E+001 + 7.0000000000000007E-001 5.0079761E+000 4.6216999E-003 -1.3994657E+001 6.0372707E+000 6.2984651E-004 -2.0727908E+001 7.2079347E+000 -5.5072050E-004 -2.7437889E+001 8.5691369E+000 -2.6571166E-004 -3.4111693E+001 1.0188259E+001 -1.7208759E-004 -4.0727333E+001 1.2191120E+001 -1.1188943E-004 -4.7236157E+001 1.3394138E+001 -8.2039139E-005 -5.0421903E+001 1.4793124E+001 -5.6810365E-005 -5.3526231E+001 1.6453850E+001 -3.5747448E-005 -5.6497947E+001 1.8466176E+001 -1.6143140E-005 -5.9241861E+001 2.0925173E+001 3.5158418E-006 -6.1589477E+001 2.3867323E+001 2.3988057E-005 -6.3283828E+001 2.7173160E+001 4.3838664E-005 -6.4039201E+001 3.0547303E+001 6.3473011E-005 -6.3703597E+001 3.3679066E+001 9.3364319E-005 -6.2391778E+001 3.6468796E+001 1.4007711E-004 -6.0444114E+001 3.8870021E+001 1.8407437E-004 -5.8444222E+001 4.1357966E+001 2.1642139E-004 -5.6554453E+001 4.4016749E+001 2.4531188E-004 -5.4915738E+001 4.6865867E+001 2.7498244E-004 -5.3638524E+001 4.9876216E+001 3.0192961E-004 -5.2812727E+001 5.2981836E+001 3.2417532E-004 -5.2502158E+001 5.6094318E+001 3.4064970E-004 -5.2733344E+001 5.9122636E+001 3.5090926E-004 -5.3489885E+001 6.1992642E+001 3.5528193E-004 -5.4718651E+001 6.4658294E+001 3.5461274E-004 -5.6345112E+001 6.7102116E+001 3.5011109E-004 -5.8290045E+001 6.9328455E+001 3.4283714E-004 -6.0481311E+001 7.1355288E+001 3.3420953E-004 -6.2858831E+001 7.3209254E+001 3.2785347E-004 -6.5373860E+001 7.4927628E+001 3.1404885E-004 -6.7983740E+001 7.6575863E+001 2.6923964E-004 -7.0638724E+001 7.9088322E+001 2.0855484E-004 -7.4176468E+001 8.2193366E+001 1.9647173E-004 -7.7196184E+001 8.6010665E+001 1.9420853E-004 -7.9224642E+001 9.0266517E+001 1.8644920E-004 -8.0003899E+001 9.4607790E+001 1.7723677E-004 -8.0015778E+001 9.8949454E+001 1.6377880E-004 -8.0008422E+001 1.0329120E+002 1.4836075E-004 -8.0010152E+001 1.0763296E+002 1.3019289E-004 -8.0009811E+001 1.1197473E+002 1.0946865E-004 -8.0009856E+001 1.1631649E+002 8.6698754E-005 -8.0009942E+001 1.2065825E+002 6.3975196E-005 -8.0009697E+001 1.2500000E+002 0.0000000E+000 -8.0000000E+001 + 8.0000000000000004E-001 5.0092781E+000 5.3641441E-003 -1.3992758E+001 6.0379335E+000 1.0706082E-003 -2.0726109E+001 7.2072472E+000 -8.6720589E-004 -2.7436323E+001 8.5687310E+000 -4.0036622E-004 -3.4110066E+001 1.0187865E+001 -2.8608280E-004 -4.0725705E+001 1.2190827E+001 -1.8639075E-004 -4.7234499E+001 1.3393837E+001 -1.3731487E-004 -5.0420248E+001 1.4792851E+001 -9.9563194E-005 -5.3524563E+001 1.6453569E+001 -6.6747084E-005 -5.6496284E+001 1.8465848E+001 -3.7147505E-005 -5.9240233E+001 2.0924745E+001 -7.5591506E-006 -6.1587956E+001 2.3866775E+001 2.2738303E-005 -6.3282520E+001 2.7172542E+001 5.1445940E-005 -6.4038211E+001 3.0546725E+001 8.1610741E-005 -6.3703002E+001 3.3678656E+001 1.2605781E-004 -6.2391582E+001 3.6468609E+001 1.8950283E-004 -6.0444239E+001 3.8869996E+001 2.5010614E-004 -5.8444542E+001 4.1358005E+001 2.9856059E-004 -5.6554855E+001 4.4016792E+001 3.4148166E-004 -5.4916146E+001 4.6865900E+001 3.8527224E-004 -5.3638910E+001 4.9876239E+001 4.2595934E-004 -5.2813076E+001 5.2981854E+001 4.5989301E-004 -5.2502444E+001 5.6094341E+001 4.8557890E-004 -5.2733553E+001 5.9122679E+001 5.0226010E-004 -5.3490016E+001 6.1992714E+001 5.1034463E-004 -5.4718712E+001 6.4658400E+001 5.1102044E-004 -5.6345119E+001 6.7102251E+001 5.0603283E-004 -5.8290014E+001 6.9328615E+001 4.9664301E-004 -6.0481255E+001 7.1355468E+001 4.8595080E-004 -6.2858759E+001 7.3209447E+001 4.7768630E-004 -6.5373778E+001 7.4927814E+001 4.5601468E-004 -6.7983662E+001 7.6576009E+001 3.9394330E-004 -7.0638671E+001 7.9088379E+001 3.0917327E-004 -7.4176478E+001 8.2193353E+001 2.8867736E-004 -7.7196266E+001 8.6010651E+001 2.8692577E-004 -7.9224714E+001 9.0266516E+001 2.7733160E-004 -8.0003904E+001 9.4607790E+001 2.6521237E-004 -8.0015776E+001 9.8949455E+001 2.4683484E-004 -8.0008422E+001 1.0329120E+002 2.2562362E-004 -8.0010152E+001 1.0763296E+002 2.0039867E-004 -8.0009811E+001 1.1197473E+002 1.7090368E-004 -8.0009856E+001 1.1631649E+002 1.3992768E-004 -8.0009942E+001 1.2065825E+002 1.0572544E-004 -8.0009697E+001 1.2500000E+002 0.0000000E+000 -8.0000000E+001 + 9.0000000000000002E-001 5.0102434E+000 5.9053753E-003 -1.3990566E+001 6.0386068E+000 1.5327403E-003 -2.0723963E+001 7.2065559E+000 -1.1920113E-003 -2.7434413E+001 8.5680960E+000 -6.1262501E-004 -3.4108141E+001 1.0187400E+001 -4.5220595E-004 -4.0723741E+001 1.2190449E+001 -2.8899672E-004 -4.7232506E+001 1.3393468E+001 -2.1753579E-004 -5.0418252E+001 1.4792499E+001 -1.6164395E-004 -5.3522559E+001 1.6453220E+001 -1.1369843E-004 -5.6494280E+001 1.8465437E+001 -7.0699971E-005 -5.9238275E+001 2.0924216E+001 -2.8217134E-005 -6.1586126E+001 2.3866103E+001 1.4332443E-005 -6.3280941E+001 2.7171785E+001 5.4460424E-005 -6.4037018E+001 3.0546019E+001 9.8702052E-005 -6.3702296E+001 3.3678153E+001 1.6101520E-004 -6.2391360E+001 3.6468368E+001 2.4338958E-004 -6.0444397E+001 3.8869949E+001 3.2309382E-004 -5.8444932E+001 4.1358042E+001 3.9182491E-004 -5.6555355E+001 4.4016839E+001 4.5309420E-004 -5.4916660E+001 4.6865935E+001 5.1481407E-004 -5.3639396E+001 4.9876262E+001 5.7340430E-004 -5.2813518E+001 5.2981870E+001 6.2286596E-004 -5.2502813E+001 5.6094364E+001 6.6100260E-004 -5.2733827E+001 5.9122727E+001 6.8669004E-004 -5.3490192E+001 6.1992799E+001 7.0035763E-004 -5.4718801E+001 6.4658526E+001 7.0364490E-004 -5.6345139E+001 6.7102417E+001 6.9883140E-004 -5.8289985E+001 6.9328812E+001 6.8754433E-004 -6.0481193E+001 7.1355692E+001 6.7542236E-004 -6.2858674E+001 7.3209687E+001 6.6469227E-004 -6.5373681E+001 7.4928044E+001 6.3293558E-004 -6.7983572E+001 7.6576189E+001 5.5079798E-004 -7.0638611E+001 7.9088445E+001 4.3786187E-004 -7.4176500E+001 8.2193331E+001 4.0588618E-004 -7.7196376E+001 8.6010633E+001 4.0468310E-004 -7.9224805E+001 9.0266516E+001 3.9423235E-004 -8.0003910E+001 9.4607790E+001 3.7899541E-004 -8.0015773E+001 9.8949455E+001 3.5517643E-004 -8.0008423E+001 1.0329120E+002 3.2738053E-004 -8.0010152E+001 1.0763296E+002 2.9397530E-004 -8.0009811E+001 1.1197473E+002 2.5391390E-004 -8.0009856E+001 1.1631649E+002 2.1430419E-004 -8.0009942E+001 1.2065825E+002 1.6355489E-004 -8.0009697E+001 1.2500000E+002 0.0000000E+000 -8.0000000E+001 + 1.0000000000000000E+000 5.0107401E+000 6.1682217E-003 -1.3988103E+001 6.0391868E+000 1.9553041E-003 -2.0721488E+001 7.2059156E+000 -1.4867387E-003 -2.7432152E+001 8.5671852E+000 -9.4894290E-004 -3.4105928E+001 1.0186872E+001 -6.6756356E-004 -4.0721439E+001 1.2189954E+001 -4.2133120E-004 -4.7230190E+001 1.3393038E+001 -3.3025501E-004 -5.0415913E+001 1.4792062E+001 -2.4734194E-004 -5.3520223E+001 1.6452793E+001 -1.8097716E-004 -5.6491938E+001 1.8464939E+001 -1.2040024E-004 -5.9235987E+001 2.0923579E+001 -6.1790267E-005 -6.1583986E+001 2.3865305E+001 -4.4223966E-006 -6.3279088E+001 2.7170885E+001 5.0290009E-005 -6.4035625E+001 3.0545179E+001 1.1249520E-004 -6.3701484E+001 3.3677550E+001 1.9586976E-004 -6.2391117E+001 3.6468068E+001 2.9894522E-004 -6.0444592E+001 3.8869872E+001 3.9993555E-004 -5.8445394E+001 4.1358072E+001 4.9318781E-004 -5.6555957E+001 4.4016887E+001 5.7770112E-004 -5.4917288E+001 4.6865969E+001 6.6171397E-004 -5.3639993E+001 4.9876281E+001 7.4278809E-004 -5.2814062E+001 5.2981882E+001 8.1231565E-004 -5.2503273E+001 5.6094385E+001 8.6673194E-004 -5.2734174E+001 5.9122777E+001 9.0458589E-004 -5.3490421E+001 6.1992894E+001 9.2621328E-004 -5.4718925E+001 6.4658673E+001 9.3385442E-004 -5.6345177E+001 6.7102612E+001 9.3013133E-004 -5.8289962E+001 6.9329048E+001 9.1770090E-004 -6.0481128E+001 7.1355963E+001 9.0504202E-004 -6.2858580E+001 7.3209977E+001 8.9114796E-004 -6.5373572E+001 7.4928322E+001 8.4709730E-004 -6.7983471E+001 7.6576406E+001 7.4236286E-004 -7.0638548E+001 7.9088519E+001 5.9755416E-004 -7.4176539E+001 8.2193300E+001 5.5084307E-004 -7.7196519E+001 8.6010611E+001 5.4986475E-004 -7.9224918E+001 9.0266516E+001 5.4012772E-004 -8.0003918E+001 9.4607790E+001 5.2185965E-004 -8.0015769E+001 9.8949455E+001 4.9226271E-004 -8.0008424E+001 1.0329120E+002 4.5733800E-004 -8.0010152E+001 1.0763296E+002 4.1462886E-004 -8.0009811E+001 1.1197473E+002 3.6260931E-004 -8.0009856E+001 1.1631649E+002 3.1427310E-004 -8.0009942E+001 1.2065825E+002 2.4014230E-004 -8.0009697E+001 1.2500000E+002 0.0000000E+000 -8.0000000E+001 diff --git a/tests/data/cabledyn/lw24r.Line1.t.out b/tests/data/cabledyn/lw24r.Line1.t.out new file mode 100644 index 0000000..c592ae9 --- /dev/null +++ b/tests/data/cabledyn/lw24r.Line1.t.out @@ -0,0 +1,13 @@ +# CableDyn finite-EI Hermite segment tensions; public order EndA -> EndB +Time(s) Segment1Tension(N) Segment2Tension(N) Segment3Tension(N) Segment4Tension(N) Segment5Tension(N) Segment6Tension(N) Segment7Tension(N) Segment8Tension(N) Segment9Tension(N) Segment10Tension(N) Segment11Tension(N) Segment12Tension(N) Segment13Tension(N) Segment14Tension(N) Segment15Tension(N) Segment16Tension(N) Segment17Tension(N) Segment18Tension(N) Segment19Tension(N) Segment20Tension(N) Segment21Tension(N) Segment22Tension(N) Segment23Tension(N) Segment24Tension(N) Segment25Tension(N) Segment26Tension(N) Segment27Tension(N) Segment28Tension(N) Segment29Tension(N) Segment30Tension(N) Segment31Tension(N) Segment32Tension(N) Segment33Tension(N) Segment34Tension(N) Segment35Tension(N) Segment36Tension(N) Segment37Tension(N) Segment38Tension(N) Segment39Tension(N) Segment40Tension(N) Segment41Tension(N) Segment42Tension(N) Segment43Tension(N) + 0.0000000000000000E+000 8.7894524E+003 7.7288244E+003 6.6727743E+003 5.6240074E+003 4.5877025E+003 3.8215542E+003 3.3232277E+003 2.8392656E+003 2.3785374E+003 1.9583755E+003 1.6128508E+003 1.3966060E+003 1.3626694E+003 1.5193631E+003 1.8162478E+003 1.9109623E+003 1.7518054E+003 1.6024072E+003 1.4783788E+003 1.3883957E+003 1.3394265E+003 1.3358230E+003 1.3779506E+003 1.4620905E+003 1.5818042E+003 1.7298477E+003 1.8996184E+003 2.0857773E+003 2.2842502E+003 2.4917954E+003 2.7038329E+003 2.5218236E+003 1.9818502E+003 1.5619424E+003 1.3547845E+003 1.3211178E+003 1.3264326E+003 1.3258601E+003 1.3258176E+003 1.3258157E+003 1.3258158E+003 1.3258154E+003 1.3258249E+003 + 1.0000000000000001E-001 8.8138387E+003 7.7494875E+003 6.6903471E+003 5.6387025E+003 4.5996737E+003 3.8315621E+003 3.3319743E+003 2.8467933E+003 2.3849067E+003 1.9636807E+003 1.6172384E+003 1.4002780E+003 1.3658541E+003 1.5222591E+003 1.8189774E+003 1.9135193E+003 1.7541423E+003 1.6045157E+003 1.4802531E+003 1.3900326E+003 1.3408265E+003 1.3369913E+003 1.3788975E+003 1.4628305E+003 1.5823551E+003 1.7302285E+003 1.8998476E+003 2.0858716E+003 2.2842236E+003 2.4916587E+003 2.7035934E+003 2.5215158E+003 1.9815052E+003 1.5615519E+003 1.3543331E+003 1.3205975E+003 1.3258465E+003 1.3252156E+003 1.3251237E+003 1.3250828E+003 1.3250549E+003 1.3250383E+003 1.3250443E+003 + 2.0000000000000001E-001 8.8352106E+003 7.7685875E+003 6.7068971E+003 5.6527508E+003 4.6112549E+003 3.8413139E+003 3.3405297E+003 2.8541801E+003 2.3911742E+003 1.9689138E+003 1.6215732E+003 1.4039034E+003 1.3689848E+003 1.5250863E+003 1.8216179E+003 1.9159834E+003 1.7564043E+003 1.6065716E+003 1.4821022E+003 1.3916759E+003 1.3422677E+003 1.3382363E+003 1.3799546E+003 1.4637102E+003 1.5830688E+003 1.7307884E+003 1.9002655E+003 2.0861587E+003 2.2843897E+003 2.4917124E+003 2.7035415E+003 2.5213871E+003 1.9813272E+003 1.5613198E+003 1.3540418E+003 1.3202506E+003 1.3254420E+003 1.3247569E+003 1.3246157E+003 1.3245312E+003 1.3244663E+003 1.3244200E+003 1.3244041E+003 + 3.0000000000000004E-001 8.8345268E+003 7.7673411E+003 6.7056157E+003 5.6515499E+003 4.6102172E+003 3.8404278E+003 3.3397618E+003 2.8535356E+003 2.3906558E+003 1.9685174E+003 1.6212827E+003 1.4036892E+003 1.3688152E+003 1.5249401E+003 1.8214725E+003 1.9158491E+003 1.7562965E+003 1.6064805E+003 1.4820147E+003 1.3915730E+003 1.3421292E+003 1.3380437E+003 1.3796941E+003 1.4633741E+003 1.5826560E+003 1.7303026E+003 1.8997140E+003 2.0855503E+003 2.2837340E+003 2.4910178E+003 2.7028159E+003 2.5206592E+003 1.9806182E+003 1.5606035E+003 1.3532874E+003 1.3194447E+003 1.3245778E+003 1.3238354E+003 1.3236404E+003 1.3235065E+003 1.3233975E+003 1.3233133E+003 1.3232665E+003 + 4.0000000000000002E-001 8.8554110E+003 7.7857530E+003 6.7214556E+003 5.6648982E+003 4.6211523E+003 3.8496007E+003 3.3477898E+003 2.8604515E+003 2.3965089E+003 1.9733880E+003 1.6252943E+003 1.4070135E+003 1.3716585E+003 1.5274843E+003 1.8238160E+003 1.9180172E+003 1.7582785E+003 1.6082713E+003 1.4836174E+003 1.3929862E+003 1.3433514E+003 1.3390747E+003 1.3805357E+003 1.4640310E+003 1.5831357E+003 1.7306148E+003 1.8998700E+003 2.0855623E+003 2.2836138E+003 2.4907766E+003 2.7024647E+003 2.5202344E+003 1.9801498E+003 1.5600753E+003 1.3526918E+003 1.3187828E+003 1.3238389E+003 1.3230207E+003 1.3227539E+003 1.3225531E+003 1.3223832E+003 1.3222450E+003 1.3221522E+003 + 5.0000000000000000E-001 8.8599258E+003 7.7898006E+003 6.7251609E+003 5.6682066E+003 4.6240203E+003 3.8521091E+003 3.3500476E+003 2.8624578E+003 2.3982657E+003 1.9749071E+003 1.6265934E+003 1.4081201E+003 1.3726235E+003 1.5283491E+003 1.8245973E+003 1.9187533E+003 1.7589929E+003 1.6089488E+003 1.4842504E+003 1.3935609E+003 1.3438495E+003 1.3394803E+003 1.3808357E+003 1.4642175E+003 1.5832062E+003 1.7305714E+003 1.8997181E+003 2.0853095E+003 2.2832690E+003 2.4903484E+003 2.7019630E+003 2.5196928E+003 1.9795919E+003 1.5594807E+003 1.3520535E+003 1.3180962E+003 1.3230884E+003 1.3222038E+003 1.3218708E+003 1.3216052E+003 1.3213730E+003 1.3211760E+003 1.3210288E+003 + 6.0000000000000009E-001 8.8677522E+003 7.7964931E+003 6.7307563E+003 5.6728215E+003 4.6277405E+003 3.8551996E+003 3.3527471E+003 2.8647827E+003 2.4002400E+003 1.9765571E+003 1.6279487E+003 1.4092221E+003 1.3735335E+003 1.5291086E+003 1.8252303E+003 1.9193092E+003 1.7595057E+003 1.6094094E+003 1.4846565E+003 1.3939066E+003 1.3441175E+003 1.3396549E+003 1.3809030E+003 1.4641686E+003 1.5830377E+003 1.7302851E+003 1.8993198E+003 2.0848085E+003 2.2826758E+003 2.4896743E+003 2.7012214E+003 2.5189187E+003 1.9788053E+003 1.5586575E+003 1.3511845E+003 1.3171698E+003 1.3220843E+003 1.3211197E+003 1.3207071E+003 1.3203637E+003 1.3200564E+003 1.3197883E+003 1.3195751E+003 + 7.0000000000000007E-001 8.8730931E+003 7.8015964E+003 6.7355080E+003 5.6771237E+003 4.6314812E+003 3.8584670E+003 3.3556899E+003 2.8673852E+003 2.4025080E+003 1.9784983E+003 1.6295805E+003 1.4105867E+003 1.3746907E+003 1.5301027E+003 1.8260942E+003 1.9201079E+003 1.7602784E+003 1.6101406E+003 1.4853374E+003 1.3945321E+003 1.3446682E+003 1.3401117E+003 1.3812508E+003 1.4643957E+003 1.5831384E+003 1.7302587E+003 1.8991698E+003 2.0845418E+003 2.2823004E+003 2.4892005E+003 2.7006620E+003 2.5183077E+003 1.9781604E+003 1.5579629E+003 1.3504485E+003 1.3163883E+003 1.3212306E+003 1.3201893E+003 1.3196980E+003 1.3192753E+003 1.3188893E+003 1.3185444E+003 1.3182571E+003 + 8.0000000000000004E-001 8.8741393E+003 7.8026019E+003 6.7364007E+003 5.6779308E+003 4.6321833E+003 3.8590997E+003 3.3562762E+003 2.8679281E+003 2.4030044E+003 1.9789445E+003 1.6299571E+003 1.4108841E+003 1.3748933E+003 1.5301932E+003 1.8260769E+003 1.9200616E+003 1.7602652E+003 1.6101473E+003 1.4853540E+003 1.3945527E+003 1.3446717E+003 1.3400705E+003 1.3811438E+003 1.4642052E+003 1.5828540E+003 1.7298762E+003 1.8986907E+003 2.0839717E+003 2.2816465E+003 2.4884739E+003 2.6998768E+003 2.5174942E+003 1.9773294E+003 1.5570966E+003 1.3495557E+003 1.3154586E+003 1.3202313E+003 1.3191140E+003 1.3185435E+003 1.3180394E+003 1.3175710E+003 1.3171437E+003 1.3167754E+003 + 9.0000000000000002E-001 8.8738700E+003 7.8028288E+003 6.7368960E+003 5.6785973E+003 4.6329001E+003 3.8598272E+003 3.3569692E+003 2.8685989E+003 2.4036271E+003 1.9795091E+003 1.6304410E+003 1.4112721E+003 1.3751632E+003 1.5303274E+003 1.8260889E+003 1.9200428E+003 1.7602848E+003 1.6101901E+003 1.4854081E+003 1.3946122E+003 1.3447192E+003 1.3400755E+003 1.3810829E+003 1.4640601E+003 1.5826119E+003 1.7295314E+003 1.8982437E+003 2.0834264E+003 2.2810095E+003 2.4877567E+003 2.6990942E+003 2.5166740E+003 1.9764786E+003 1.5562028E+003 1.3486389E+003 1.3145095E+003 1.3192112E+003 1.3180157E+003 1.3173627E+003 1.3167731E+003 1.3162174E+003 1.3157020E+003 1.3152462E+003 + 1.0000000000000000E+000 8.8701799E+003 7.8000468E+003 6.7347537E+003 5.6770148E+003 4.6317680E+003 3.8590012E+003 3.3563032E+003 2.8680972E+003 2.4032676E+003 1.9792527E+003 1.6302557E+003 1.4110973E+003 1.3749315E+003 1.5299864E+003 1.8256409E+003 1.9195938E+003 1.7599194E+003 1.6098931E+003 1.4851643E+003 1.3944132E+003 1.3445479E+003 1.3398974E+003 1.3808680E+003 1.4637870E+003 1.5822637E+003 1.7290992E+003 1.8977256E+003 2.0828237E+003 2.2803273E+003 2.4870057E+003 2.6982889E+003 2.5158372E+003 1.9756113E+003 1.5552976E+003 1.3477267E+003 1.3135818E+003 1.3182223E+003 1.3169562E+003 1.3162261E+003 1.3155544E+003 1.3149126E+003 1.3143081E+003 1.3137613E+003 diff --git a/tests/data/cabledyn/lw24r.dat b/tests/data/cabledyn/lw24r.dat new file mode 100644 index 0000000..39e29d8 --- /dev/null +++ b/tests/data/cabledyn/lw24r.dat @@ -0,0 +1,99 @@ +--------------------- CableDyn Input File ------------------------------------ +Lazy-wave power cable with a clamped hang-off on a vessel moving with its RAOs in a JONSWAP sea +-- Geometry and properties match lozon_gomex80_power_cable.dat. The vessel moves as the response of +-- a displacement RAO table to the deck sea; the same wave components load the cable, so the +-- vessel and the line see one sea. The RAO values in sample_rao.txt are illustrative. +-- The hang-off is clamped (Rigid) along the static fairlead tangent, so the clamp turns with the +-- vessel and BendMom1N1 reports the connection moment at End A. +--------------------- LINE TYPES --------------------------------------------- +TypeName Diam MassDenInAir EA BA EI Cd_n Cd_t Ca_n Ca_t +(-) (m) (kg/m) (N) (-) (N-m2) (-) (-) (-) (-) +bare 0.160 36.70 4.69e8 0.0 1.99e4 1.2 0.1 1.0 0.0 +buoy 0.290 59.53 4.69e8 0.0 1.99e4 1.2 0.1 1.0 0.0 +--------------------- POINTS ------------------------------------------------ +ID Type X Y Z +(-) (-) (m) (m) (m) +1 Coupled 5.0 0.0 -14.0 +2 Fixed 125.0 0.0 -80.0 +--------------------- LINES ------------------------------------------------- +ID NodeA NodeB Outputs +(-) (-) (-) (-) +1 1 2 pt +--------------------- SECTIONS ---------------------------------------------- +LineID LineType Length NumSegs +(-) (-) (m) (-) +1 bare 68.114 10 +1 buoy 50.000 8 +1 bare 52.101 6 +--------------------- END CONNECTIONS --------------------------------------- +-- End A is clamped along the static hang-off tangent (81.6 deg below horizontal, toward End B). +LineID End Stiffness EzX EzY EzZ +(-) (-) (N-m/rad) (-) (-) (-) +1 A Rigid 0.1461 0.0 -0.9893 +--------------------- OPTIONS ----------------------------------------------- +9.80665 g - Gravitational acceleration (m/s^2) [default: 9.80665] +1025.0 rhoW - Water density (kg/m^3) [default: 1025] +80.0 WtrDpth - Water depth for the flat seabed (m) [default: absent standalone; host-owned OpenFAST] +1.0e5 kBot - Seabed penalty stiffness base (Pa/m) [default: 1.0e5] +1.0e4 cBot - Seabed normal damping base (Pa-s/m) [default: 1.0e4] +0.4 rhoInf - Generalised-alpha spectral radius {0<=rhoInf<=1} [default: 0.4] +False modified_newton - Tangent-reuse mode {False=full Newton; True=guarded reuse} [default: False] +0.1 dtM - CableDyn internal time step (s) [default: omitted standalone; 0.1 s target OpenFAST] +1.0 TMax - Standalone simulation duration (s) +sample_rao.txt vesselRAO - Displacement RAO table: vessel motion from the deck waves +0.0|0.0|0.0 vesselRef - Vessel reference point, rotation centre and RAO origin (m) [default: 0|0|0] +False adaptive_mesh - Automatic finite-EI refinement {False; True} [default: False] +True tensile_safety - Refine and reject local axial compression in this tensile cable +dynamic_solver 1.0e-4 1.0e-14 100 12 - Relative tolerance, absolute tolerance, max iterations, backtracks +none frictionMu - Seabed friction coefficient {none; value>=0} [default: none] +none current - Current model and velocity (m/s) {none; uniform; profile} [default: none] +jonswap 4.0 10.0 3.3 30.0 waves - Wave model, JONSWAP Hs, Tp, gamma, and direction (m, s, deg) {none; airy; jonswap} +1 WaveSeed - Seed of the random sea [default: 1] +5.0 rampTime - Half-cosine start-up ramp of the wave amplitudes (s) [default: 0] +0 WaterKin - Water-kinematics source {0/none; file; SEASTATE coupled only} [default: no policy] +-- Complete option/default reference: cabledyn_options_reference.dat and doc/options.rst. +--------------------- OUTPUTS ----------------------------------------------- +"FairTen1" +"AnchTen1" +"Curv1N2" +"Curv1N3" +"Curv1N4" +"Curv1N8" +"Curv1N10" +"Curv1N12" +"Ten1N2" +"Ten1N3" +"Ten1N4" +"Ten1N8" +"Ten1N9" +"Ten1N10" +"Ten1N12" +"L1N1Dec" +"L1N1Azi" +"L1N2Dec" +"L1N2Azi" +"L1N3Dec" +"L1N3Azi" +"L1N4Dec" +"L1N4Azi" +"L1N5Dec" +"L1N5Azi" +"L1N6Dec" +"L1N6Azi" +"L1N7Dec" +"L1N7Azi" +"L1N8Dec" +"L1N8Azi" +"L1N9Dec" +"L1N9Azi" +"L1N10Dec" +"L1N10Azi" +"L1N11Dec" +"L1N11Azi" +"L1N12Dec" +"L1N12Azi" +"L1N13Dec" +"L1N13Azi" +"L1N14Dec" +"L1N14Azi" +--------------------- need this line ---------------------------------------- diff --git a/tests/data/cabledyn/lw24r.elements.out b/tests/data/cabledyn/lw24r.elements.out new file mode 100644 index 0000000..844c0f4 --- /dev/null +++ b/tests/data/cabledyn/lw24r.elements.out @@ -0,0 +1,46 @@ +CableDyn continuous Hermite-element extrema (public order End A -> End B) +LineID Element ReferenceArcStart ReferenceArcEnd PeakXi PeakReferenceArc PeakCurvature BendMomentAtPeak MinimumAxialResultant MinimumXi MaximumAxialResultant MaximumXi +(-) (-) (m) (m) (-) (m) (1/m) (N.m) (N) (-) (N) (-) +1 1 0.0000000E+000 6.8114000E+000 1.0000000E+000 6.8114000E+000 3.2087286E-003 6.3853700E+001 6.4267294E+003 0.0000000E+000 1.0371024E+004 2.9003906E-001 +1 2 6.8114000E+000 1.3622800E+001 1.0000000E+000 1.3622800E+001 3.6405605E-003 7.2447154E+001 6.6881542E+003 8.3300781E-001 9.1513221E+003 4.2968750E-002 +1 3 1.3622800E+001 2.0434200E+001 1.0000000E+000 2.0434200E+001 4.9014961E-003 9.7539772E+001 5.4279450E+003 8.4375000E-001 7.8082013E+003 1.9238281E-001 +1 4 2.0434200E+001 2.7245600E+001 1.0000000E+000 2.7245600E+001 6.8132988E-003 1.3558465E+002 3.9473099E+003 8.8476562E-001 6.9455729E+003 2.0996094E-001 +1 5 2.7245600E+001 3.4057000E+001 1.0000000E+000 3.4057000E+001 1.0749327E-002 2.1391161E+002 2.4593051E+003 7.7343750E-001 6.7289095E+003 2.1972656E-001 +1 6 3.4057000E+001 3.7462700E+001 1.0000000E+000 3.7462700E+001 1.6084907E-002 3.2008965E+002 1.3299591E+003 8.2714844E-001 6.3504966E+003 1.6699219E-001 +1 7 3.7462700E+001 4.0868400E+001 1.0000000E+000 4.0868400E+001 2.1602069E-002 4.2988117E+002 -1.8280500E+002 8.1250000E-001 6.5174636E+003 2.3144531E-001 +1 8 4.0868400E+001 4.4274100E+001 1.0000000E+000 4.4274100E+001 3.0160546E-002 6.0019486E+002 -1.2812133E+003 7.9882812E-001 6.7600825E+003 2.2265625E-001 +1 9 4.4274100E+001 4.7679800E+001 1.0000000E+000 4.7679800E+001 4.3178132E-002 8.5924483E+002 -1.9971499E+003 7.8515625E-001 6.5838197E+003 2.1875000E-001 +1 10 4.7679800E+001 5.1085500E+001 1.0000000E+000 5.1085500E+001 6.1040700E-002 1.2147099E+003 -2.3755355E+003 7.7734375E-001 5.8438386E+003 1.0000000E+000 +1 11 5.1085500E+001 5.4491200E+001 1.0000000E+000 5.4491200E+001 8.0954400E-002 1.6109926E+003 -2.7996166E+003 7.8808594E-001 1.0255041E+004 1.0000000E+000 +1 12 5.4491200E+001 5.7896900E+001 1.0000000E+000 5.7896900E+001 9.5545362E-002 1.9013527E+003 -3.1172009E+003 8.0957031E-001 1.3328148E+004 1.0000000E+000 +1 13 5.7896900E+001 6.1302600E+001 0.0000000E+000 5.7896900E+001 9.6351585E-002 1.9173965E+003 -3.1312766E+003 1.8750000E-001 1.3328148E+004 0.0000000E+000 +1 14 6.1302600E+001 6.4708300E+001 0.0000000E+000 6.1302600E+001 7.9872693E-002 1.5894666E+003 -2.5867377E+003 2.3144531E-001 1.4195369E+004 1.0000000E+000 +1 15 6.4708300E+001 6.8114000E+001 0.0000000E+000 6.4708300E+001 4.6820514E-002 9.3172822E+002 -1.0511375E+004 2.4902344E-001 1.4195369E+004 0.0000000E+000 +1 16 6.8114000E+001 7.1239000E+001 0.0000000E+000 6.8114000E+001 1.6566865E-002 3.2968062E+002 -1.0253671E+004 8.5937500E-002 9.2039721E+003 5.1074219E-001 +1 17 7.1239000E+001 7.4364000E+001 1.0000000E+000 7.4364000E+001 2.6218837E-002 5.2175486E+002 -6.4811532E+003 7.6171875E-001 9.8878129E+003 2.4121094E-001 +1 18 7.4364000E+001 7.7489000E+001 1.0000000E+000 7.7489000E+001 3.7874111E-002 7.5369481E+002 -1.4471958E+003 7.4121094E-001 7.3626111E+003 0.0000000E+000 +1 19 7.7489000E+001 8.0614000E+001 1.0000000E+000 8.0614000E+001 4.6485888E-002 9.2506917E+002 -5.3319290E+002 7.6562500E-001 3.6877537E+003 1.5625000E-001 +1 20 8.0614000E+001 8.3739000E+001 1.0000000E+000 8.3739000E+001 5.2352329E-002 1.0418113E+003 1.2421242E+002 7.7148438E-001 2.8458441E+003 1.0000000E+000 +1 21 8.3739000E+001 8.6864000E+001 1.0000000E+000 8.6864000E+001 5.5591950E-002 1.1062798E+003 7.5992412E+002 7.7539062E-001 2.8986494E+003 1.0000000E+000 +1 22 8.6864000E+001 8.9989000E+001 0.0000000E+000 8.6864000E+001 5.5972499E-002 1.1138527E+003 9.3744324E+002 2.2460938E-001 2.8986494E+003 0.0000000E+000 +1 23 8.9989000E+001 9.3114000E+001 0.0000000E+000 8.9989000E+001 5.3608655E-002 1.0668122E+003 3.3870947E+002 2.2265625E-001 2.8094669E+003 0.0000000E+000 +1 24 9.3114000E+001 9.6239000E+001 0.0000000E+000 9.3114000E+001 4.9034216E-002 9.7578089E+002 -9.7512891E+001 2.2265625E-001 2.9261505E+003 7.9980469E-001 +1 25 9.6239000E+001 9.9364000E+001 0.0000000E+000 9.6239000E+001 4.3181078E-002 8.5930345E+002 -3.6639879E+002 2.1972656E-001 3.5065035E+003 7.9492188E-001 +1 26 9.9364000E+001 1.0248900E+002 0.0000000E+000 9.9364000E+001 3.6968189E-002 7.3566695E+002 -4.7071741E+002 2.1582031E-001 3.9367602E+003 7.9199219E-001 +1 27 1.0248900E+002 1.0561400E+002 0.0000000E+000 1.0248900E+002 3.1043085E-002 6.1775739E+002 -4.3206660E+002 2.1289062E-001 4.2508450E+003 7.9296875E-001 +1 28 1.0561400E+002 1.0873900E+002 0.0000000E+000 1.0561400E+002 2.5653729E-002 5.1050921E+002 -3.3388973E+002 2.1386719E-001 4.6105721E+003 8.0566406E-001 +1 29 1.0873900E+002 1.1186400E+002 0.0000000E+000 1.0873900E+002 2.0552427E-002 4.0899329E+002 -5.2042046E+002 2.2949219E-001 5.6402381E+003 8.4863281E-001 +1 30 1.1186400E+002 1.1498900E+002 0.0000000E+000 1.1186400E+002 1.5428904E-002 3.0703519E+002 -2.2002883E+003 2.2460938E-001 6.9778068E+003 7.5488281E-001 +1 31 1.1498900E+002 1.1811400E+002 0.0000000E+000 1.1498900E+002 1.0155394E-002 2.0209234E+002 -8.5218668E+003 1.0000000E+000 6.1575542E+003 5.3027344E-001 +1 32 1.1811400E+002 1.2245575E+002 1.0000000E+000 1.2245575E+002 2.9098864E-002 5.7906739E+002 -8.5218668E+003 0.0000000E+000 1.1933096E+004 2.6074219E-001 +1 33 1.2245575E+002 1.2679750E+002 1.0000000E+000 1.2679750E+002 5.5941008E-002 1.1132261E+003 -1.6036811E+003 7.5000000E-001 1.0956374E+004 0.0000000E+000 +1 34 1.2679750E+002 1.3113925E+002 1.0000000E+000 1.3113925E+002 7.5468337E-002 1.5018199E+003 -3.7527042E+003 8.2714844E-001 1.0352430E+004 1.0000000E+000 +1 35 1.3113925E+002 1.3548100E+002 1.0000000E+000 1.3548100E+002 6.7625560E-002 1.3457486E+003 -2.2370381E+003 5.8789062E-001 4.7264721E+004 1.0000000E+000 +1 36 1.3548100E+002 1.3982275E+002 0.0000000E+000 1.3548100E+002 2.2563329E-002 4.4901026E+002 -3.6398685E+004 2.4218750E-001 4.7264721E+004 0.0000000E+000 +1 37 1.3982275E+002 1.4416450E+002 0.0000000E+000 1.3982275E+002 8.9954800E-003 1.7901005E+002 -2.1336128E+004 3.3203125E-002 1.2185106E+004 6.9140625E-001 +1 38 1.4416450E+002 1.4850625E+002 0.0000000E+000 1.4416450E+002 2.6682243E-003 5.3097663E+001 -7.6133935E+003 0.0000000E+000 3.6755678E+003 6.6015625E-001 +1 39 1.4850625E+002 1.5284800E+002 0.0000000E+000 1.4850625E+002 5.5740797E-004 1.1092419E+001 -6.5255778E+002 0.0000000E+000 1.7533935E+003 6.4550781E-001 +1 40 1.5284800E+002 1.5718975E+002 0.0000000E+000 1.5284800E+002 9.8381887E-005 1.9577996E+000 9.6589886E+002 0.0000000E+000 1.3999075E+003 6.3769531E-001 +1 41 1.5718975E+002 1.6153150E+002 1.0000000E+000 1.6153150E+002 1.6598152E-004 3.3030323E+000 1.2574854E+003 0.0000000E+000 1.3393936E+003 5.3417969E-001 +1 42 1.6153150E+002 1.6587325E+002 1.0000000E+000 1.6587325E+002 8.1239485E-004 1.6166657E+001 1.2879052E+003 7.4609375E-001 1.4127024E+003 1.0000000E+000 +1 43 1.6587325E+002 1.7021500E+002 0.0000000E+000 1.6587325E+002 8.0594496E-004 1.6038305E+001 1.2665985E+003 1.0000000E+000 1.4127024E+003 0.0000000E+000 diff --git a/tests/data/cabledyn/lw24r.out b/tests/data/cabledyn/lw24r.out new file mode 100644 index 0000000..d7014d6 --- /dev/null +++ b/tests/data/cabledyn/lw24r.out @@ -0,0 +1,13 @@ +# CableDyn driver output (finite-EI dynamic; production cubic-Hermite route) +Time(s) FairTen1 AnchTen1 Curv1N2 Curv1N3 Curv1N4 Curv1N8 Curv1N10 Curv1N12 Ten1N2 Ten1N3 Ten1N4 Ten1N8 Ten1N9 Ten1N10 Ten1N12 L1N1Dec L1N1Azi L1N2Dec L1N2Azi L1N3Dec L1N3Azi L1N4Dec L1N4Azi L1N5Dec L1N5Azi L1N6Dec L1N6Azi L1N7Dec L1N7Azi L1N8Dec L1N8Azi L1N9Dec L1N9Azi L1N10Dec L1N10Azi L1N11Dec L1N11Azi L1N12Dec L1N12Azi L1N13Dec L1N13Azi L1N14Dec L1N14Azi + 0.0000000000000000E+000 9.3207359E+003 1.3258156E+003 2.9789063E-003 4.0263269E-003 5.4773949E-003 5.0912310E-002 9.0227550E-002 3.2057804E-002 8.2582396E+003 7.1994092E+003 6.1461394E+003 2.1554204E+003 1.4643710E+003 1.3964979E+003 1.6719534E+003 1.7159927E+002 0.0000000E+000 1.7075968E+002 0.0000000E+000 1.6939022E+002 0.0000000E+000 1.6754282E+002 0.0000000E+000 1.6493641E+002 0.0000000E+000 1.6082863E+002 0.0000000E+000 1.5367347E+002 0.0000000E+000 1.3956297E+002 0.0000000E+000 1.1208957E+002 0.0000000E+000 7.4994448E+001 0.0000000E+000 5.0698760E+001 0.0000000E+000 5.4998091E+001 0.0000000E+000 6.9997935E+001 0.0000000E+000 8.9254287E+001 0.0000000E+000 + 1.0000000000000001E-001 9.3449925E+003 1.3250350E+003 2.9623594E-003 4.0361507E-003 5.4849686E-003 5.0917382E-002 9.0232495E-002 3.2059384E-002 8.2805724E+003 7.2184823E+003 6.1622426E+003 2.1612390E+003 1.4683662E+003 1.3995121E+003 1.6741782E+003 1.7159911E+002 6.4387229E-004 1.7075789E+002 7.8872601E-003 1.6939028E+002 9.4229402E-004 1.6754287E+002 1.3240167E-004 1.6493640E+002 3.3640366E-005 1.6082863E+002 1.2552271E-005 1.5367347E+002 4.5187928E-006 1.3956300E+002 3.2084391E-006 1.1208967E+002 2.6822947E-006 7.4994554E+001 2.6766761E-006 5.0698924E+001 1.8809374E-005 5.4998097E+001 5.4229224E-006 6.9997922E+001 4.0438243E-006 8.9254264E+001 2.0900426E-006 + 2.0000000000000001E-001 9.3664782E+003 1.3243948E+003 3.0255399E-003 4.0516990E-003 5.4797170E-003 5.0917212E-002 9.0233342E-002 3.2059718E-002 8.3008530E+003 7.2362784E+003 6.1775226E+003 2.1669628E+003 1.4722951E+003 1.4024515E+003 1.6763379E+003 1.7159864E+002 2.4592768E-003 1.7075693E+002 1.5768245E-002 1.6939118E+002 -2.1177153E-005 1.6754283E+002 -6.3854320E-005 1.6493633E+002 5.9178313E-005 1.6082864E+002 4.1674604E-005 1.5367348E+002 2.1660121E-005 1.3956312E+002 1.5083804E-005 1.1209009E+002 1.2303717E-005 7.4995007E+001 1.1285169E-005 5.0699546E+001 7.3771394E-005 5.4998112E+001 2.3425742E-005 6.9997871E+001 1.8048122E-005 8.9254169E+001 9.7595131E-006 + 3.0000000000000004E-001 9.3657491E+003 1.3232572E+003 3.1160796E-003 4.0232226E-003 5.4602423E-003 5.0910149E-002 9.0228141E-002 3.2058906E-002 8.2997561E+003 7.2349895E+003 6.1762621E+003 2.1664971E+003 1.4720279E+003 1.4022809E+003 1.6762396E+003 1.7159793E+002 5.2360797E-003 1.7076145E+002 4.4915667E-003 1.6939179E+002 -3.4605446E-003 1.6754225E+002 6.0072577E-005 1.6493631E+002 2.8509583E-004 1.6082868E+002 1.4731577E-004 1.5367350E+002 6.3711387E-005 1.3956339E+002 4.3401165E-005 1.1209100E+002 3.4671944E-005 7.4996009E+001 2.9482333E-005 5.0700775E+001 1.7474022E-004 5.4998116E+001 6.2159433E-005 6.9997758E+001 5.0387938E-005 8.9253957E+001 2.8350569E-005 + 4.0000000000000002E-001 9.3867193E+003 1.3221429E+003 3.1976770E-003 3.9801424E-003 5.4806149E-003 5.0912374E-002 9.0230707E-002 3.2058887E-002 8.3194034E+003 7.2520938E+003 6.1908323E+003 2.1718432E+003 1.4756665E+003 1.4049524E+003 1.6781263E+003 1.7159703E+002 8.7196451E-003 1.7077230E+002 -3.2831737E-002 1.6938966E+002 -2.3886518E-003 1.6754162E+002 1.8448168E-003 1.6493653E+002 7.8763463E-004 1.6082855E+002 3.0908710E-004 1.5367350E+002 1.4754293E-004 1.3956384E+002 9.7185834E-005 1.1209255E+002 7.6386612E-005 7.4997792E+001 6.4402259E-005 5.0702716E+001 3.2883825E-004 5.4998095E+001 1.3007332E-004 6.9997576E+001 1.1087914E-004 8.9253588E+001 6.4676383E-005 + 5.0000000000000000E-001 9.3912659E+003 1.3210196E+003 3.2208573E-003 3.9664640E-003 5.5130680E-003 5.0906182E-002 9.0225661E-002 3.2055352E-002 8.3236536E+003 7.2559686E+003 6.1943349E+003 2.1734705E+003 1.4768474E+003 1.4058522E+003 1.6788240E+003 1.7159602E+002 1.2616095E-002 1.7078717E+002 -8.6804206E-002 1.6938486E+002 8.8459373E-003 1.6754220E+002 3.8728760E-003 1.6493660E+002 1.0377164E-003 1.6082820E+002 4.7895051E-004 1.5367343E+002 2.9206618E-004 1.3956452E+002 1.8607069E-004 1.1209488E+002 1.4426543E-004 7.5000641E+001 1.2863691E-004 5.0705495E+001 5.4006991E-004 5.4998092E+001 2.3954632E-004 6.9997332E+001 2.0984186E-004 8.9253023E+001 1.2642587E-004 + 6.0000000000000009E-001 9.3991542E+003 1.3195658E+003 3.2006742E-003 4.0260582E-003 5.5123787E-003 5.0901300E-002 9.0221713E-002 3.2049503E-002 8.3309205E+003 7.2620863E+003 6.1994309E+003 2.1752757E+003 1.4780620E+003 1.4066798E+003 1.6793130E+003 1.7159498E+002 1.6598969E-002 1.7080341E+002 -1.4339982E-001 1.6938044E+002 2.4501101E-002 1.6754363E+002 2.7372054E-003 1.6493574E+002 1.0208097E-003 1.6082821E+002 8.9713534E-004 1.5367341E+002 5.2431257E-004 1.3956547E+002 3.2008042E-004 1.1209802E+002 2.4390382E-004 7.5004798E+001 2.3567256E-004 5.0709196E+001 8.0961160E-004 5.4998210E+001 4.0861401E-004 6.9997036E+001 3.5910997E-004 8.9252226E+001 2.2245373E-004 + 7.0000000000000007E-001 9.4045492E+003 1.3182478E+003 3.1551094E-003 4.1266840E-003 5.4474067E-003 5.0894419E-002 9.0217962E-002 3.2041347E-002 8.3361779E+003 7.2670042E+003 6.2039829E+003 2.1773765E+003 1.4795462E+003 1.4077483E+003 1.6800682E+003 1.7159399E+002 2.0317161E-002 1.7081908E+002 -1.9355967E-001 1.6937961E+002 3.0976839E-002 1.6754374E+002 -1.0032344E-003 1.6493422E+002 2.2442549E-003 1.6082884E+002 1.8224533E-003 1.5367346E+002 8.8311523E-004 1.3956674E+002 5.0921184E-004 1.1210201E+002 3.7769937E-004 7.5010448E+001 3.9555184E-004 5.0713876E+001 1.1348684E-003 5.4998567E+001 6.5461729E-004 6.9996672E+001 5.7018773E-004 8.9251160E+001 3.6242391E-004 + 8.0000000000000004E-001 9.4056521E+003 1.3167661E+003 3.0996478E-003 4.2229214E-003 5.3642985E-003 5.0883774E-002 9.0212553E-002 3.2029905E-002 8.3372585E+003 7.2679400E+003 6.2048612E+003 2.1778503E+003 1.4798789E+003 1.4078939E+003 1.6800688E+003 1.7159316E+002 2.3403937E-002 1.7083257E+002 -2.3350201E-001 1.6938366E+002 1.9079019E-002 1.6754083E+002 -5.8048626E-004 1.6493343E+002 5.9044630E-003 1.6082902E+002 2.8697077E-003 1.5367322E+002 1.3632681E-003 1.3956830E+002 7.6348138E-004 1.1210686E+002 5.4685699E-004 7.5017709E+001 6.1531866E-004 5.0719555E+001 1.5100036E-003 5.4999260E+001 9.9091128E-004 6.9996186E+001 8.5155013E-004 8.9249798E+001 5.5638607E-004 + 9.0000000000000002E-001 9.4054347E+003 1.3152368E+003 3.0424517E-003 4.2879034E-003 5.3351360E-003 5.0875636E-002 9.0208881E-002 3.2015798E-002 8.3373160E+003 7.2683084E+003 6.2054716E+003 2.1784470E+003 1.4803167E+003 1.4080971E+003 1.6801046E+003 1.7159256E+002 2.5486739E-002 1.7084255E+002 -2.6113901E-001 1.6939217E+002 -9.8009153E-003 1.6753501E+002 1.0546826E-002 1.6493436E+002 1.0146206E-002 1.6082744E+002 3.3877973E-003 1.5367243E+002 1.9291038E-003 1.3957022E+002 1.0949543E-003 1.1211264E+002 7.5561284E-004 7.5026648E+001 8.9953189E-004 5.0726215E+001 1.9274630E-003 5.5000374E+001 1.4281226E-003 6.9995522E+001 1.2092304E-003 8.9248142E+001 8.1485917E-004 + 1.0000000000000000E+000 9.4017903E+003 1.3137519E+003 2.9873632E-003 4.3069816E-003 5.3842136E-003 5.0867481E-002 9.0204762E-002 3.1999014E-002 8.3341784E+003 7.2658745E+003 6.2036274E+003 2.1781425E+003 1.4801484E+003 1.4078156E+003 1.6797786E+003 1.7159230E+002 2.6197441E-002 1.7084808E+002 -2.7471220E-001 1.6940413E+002 -4.7977253E-002 1.6752757E+002 3.0900664E-002 1.6493634E+002 1.1150250E-002 1.6082449E+002 3.8322190E-003 1.5367172E+002 2.6955572E-003 1.3957269E+002 1.5260628E-003 1.1211940E+002 1.0123132E-003 7.5037285E+001 1.2500090E-003 5.0733805E+001 2.3782029E-003 5.5001995E+001 1.9741601E-003 6.9994655E+001 1.6501051E-003 8.9246230E+001 1.1495775E-003 diff --git a/tests/data/cabledyn/lw24r.static.out b/tests/data/cabledyn/lw24r.static.out new file mode 100644 index 0000000..5fd27df --- /dev/null +++ b/tests/data/cabledyn/lw24r.static.out @@ -0,0 +1,47 @@ +CableDyn standalone static configuration (deformed arc; public node order End A -> End B) +LineID Node ArcLength X Y Z Tension Curvature BendMoment Declination Inclination Azimuth DeckNode +(-) (-) (m) (m) (m) (m) (N) (1/m) (N.m) (deg) (deg) (deg) (-) +1 1 0.0000000E+000 5.0000000E+000 0.0000000E+000 -1.4000000E+001 9.3207359E+003 5.5183890E-004 1.0981444E+001 1.7159927E+002 8.1599270E+001 0.0000000E+000 1 +1 2 6.8114629E+000 6.0363875E+000 0.0000000E+000 -2.0732156E+001 8.2582396E+003 2.9789063E-003 5.9279082E+001 1.7075968E+002 8.0759684E+001 0.0000000E+000 2 +1 3 1.3622814E+001 7.2093895E+000 0.0000000E+000 -2.7441744E+001 7.1994092E+003 4.0263269E-003 8.0122699E+001 1.6939022E+002 7.9390217E+001 0.0000000E+000 3 +1 4 2.0434015E+001 8.5699558E+000 0.0000000E+000 -3.4115673E+001 6.1461394E+003 5.4773949E-003 1.0899878E+002 1.6754282E+002 7.7542822E+001 0.0000000E+000 4 +1 5 2.7244908E+001 1.0189004E+001 0.0000000E+000 -4.0731332E+001 5.1018754E+003 7.9098933E-003 1.5740545E+002 1.6493641E+002 7.4936411E+001 0.0000000E+000 5 +1 6 3.4054917E+001 1.2191785E+001 0.0000000E+000 -4.7240178E+001 4.0735296E+003 1.3901491E-002 2.7663658E+002 1.6082863E+002 7.0828631E+001 0.0000000E+000 6 +1 7 3.7460240E+001 1.3394761E+001 0.0000000E+000 -5.0425940E+001 3.5695787E+003 1.7869890E-002 3.5560887E+002 1.5777060E+002 6.7770595E+001 0.0000000E+000 0 +1 8 4.0865238E+001 1.4793721E+001 0.0000000E+000 -5.3530279E+001 3.0768767E+003 2.4653101E-002 4.9059418E+002 1.5367347E+002 6.3673472E+001 0.0000000E+000 7 +1 9 4.4269515E+001 1.6454472E+001 0.0000000E+000 -5.6501981E+001 2.6016545E+003 3.5313978E-002 7.0274436E+002 1.4789483E+002 5.7894834E+001 0.0000000E+000 0 +1 10 4.7672235E+001 1.8466910E+001 0.0000000E+000 -5.9245809E+001 2.1554204E+003 5.0912310E-002 1.0131476E+003 1.3956297E+002 4.9562974E+001 0.0000000E+000 8 +1 11 5.1071932E+001 2.0926150E+001 0.0000000E+000 -6.1593165E+001 1.7613306E+003 7.0568701E-002 1.4042997E+003 1.2775085E+002 3.7750853E+001 0.0000000E+000 0 +1 12 5.4467080E+001 2.3868599E+001 0.0000000E+000 -6.3286983E+001 1.4643710E+003 8.9154797E-002 1.7741417E+003 1.1208957E+002 2.2089575E+001 0.0000000E+000 9 +1 13 5.7858116E+001 2.7174611E+001 0.0000000E+000 -6.4041581E+001 1.3288409E+003 9.7895667E-002 1.9480684E+003 9.3619773E+001 3.6197734E+000 0.0000000E+000 0 +1 14 6.1248905E+001 3.0548661E+001 0.0000000E+000 -6.3705082E+001 1.3964979E+003 9.0227550E-002 1.7954879E+003 7.4994448E+001 -1.5005552E+001 0.0000000E+000 10 +1 15 6.4644313E+001 3.3680031E+001 0.0000000E+000 -6.2392330E+001 1.6422282E+003 6.5769098E-002 1.3087654E+003 5.9523871E+001 -3.0476129E+001 0.0000000E+000 0 +1 16 6.8046665E+001 3.6469190E+001 0.0000000E+000 -6.0443845E+001 1.9902674E+003 2.0534806E-002 4.0864817E+002 5.0698760E+001 -3.9301240E+001 0.0000000E+000 11 +1 17 7.1171637E+001 3.8870017E+001 0.0000000E+000 -5.8443475E+001 1.8316573E+003 1.4758913E-002 2.9370459E+002 5.0682382E+001 -3.9317618E+001 0.0000000E+000 0 +1 18 7.4295910E+001 4.1357848E+001 0.0000000E+000 -5.6553560E+001 1.6719534E+003 3.2057804E-002 6.3794028E+002 5.4998091E+001 -3.5001909E+001 0.0000000E+000 12 +1 19 7.7419132E+001 4.4016633E+001 0.0000000E+000 -5.4914850E+001 1.5328610E+003 4.2425223E-002 8.4425640E+002 6.1723775E+001 -2.8276225E+001 0.0000000E+000 0 +1 20 8.0541430E+001 4.6865772E+001 0.0000000E+000 -5.3637683E+001 1.4238967E+003 4.9600367E-002 9.8704138E+002 6.9997935E+001 -2.0002065E+001 0.0000000E+000 13 +1 21 8.3662989E+001 4.9876146E+001 0.0000000E+000 -5.2811984E+001 1.3528947E+003 5.4247799E-002 1.0795246E+003 7.9332147E+001 -1.0667853E+001 0.0000000E+000 0 +1 22 8.6784099E+001 5.2981782E+001 0.0000000E+000 -5.2501566E+001 1.3259583E+003 5.6112298E-002 1.1166278E+003 8.9254287E+001 -7.4571341E-001 0.0000000E+000 14 +1 23 8.9905155E+001 5.6094250E+001 0.0000000E+000 -5.2732929E+001 1.3456878E+003 5.5044890E-002 1.0953867E+003 9.9246746E+001 9.2467462E+000 0.0000000E+000 0 +1 24 9.3026543E+001 5.9122524E+001 0.0000000E+000 -5.3489646E+001 1.4102134E+003 5.1399448E-002 1.0228434E+003 1.0880812E+002 1.8808119E+001 0.0000000E+000 15 +1 25 9.6148530E+001 6.1992465E+001 0.0000000E+000 -5.4718563E+001 1.5139675E+003 4.5988139E-002 9.1515938E+002 1.1754461E+002 2.7544605E+001 0.0000000E+000 0 +1 26 9.9271202E+001 6.4658048E+001 0.0000000E+000 -5.6345140E+001 1.6496409E+003 3.9780945E-002 7.9163717E+002 1.2522709E+002 3.5227094E+001 0.0000000E+000 16 +1 27 1.0239451E+002 6.7101806E+001 0.0000000E+000 -5.8290154E+001 1.8100546E+003 3.3589037E-002 6.6841888E+002 1.3178977E+002 4.1789772E+001 0.0000000E+000 0 +1 28 1.0551832E+002 6.9328095E+001 0.0000000E+000 -6.0481469E+001 1.9891822E+003 2.7875032E-002 5.5471058E+002 1.3728258E+002 4.7282584E+001 0.0000000E+000 17 +1 29 1.0864253E+002 7.1354893E+001 0.0000000E+000 -6.2859020E+001 2.1823724E+003 2.2648024E-002 4.5069307E+002 1.4179921E+002 5.1799211E+001 0.0000000E+000 0 +1 30 1.1176704E+002 7.3208834E+001 0.0000000E+000 -6.5374068E+001 2.3861280E+003 1.7186591E-002 3.4200996E+002 1.4537599E+002 5.5375988E+001 0.0000000E+000 18 +1 31 1.1489182E+002 7.4927216E+001 0.0000000E+000 -6.7983943E+001 2.5974628E+003 9.0275717E-003 1.7964881E+002 1.4778233E+002 5.7782330E+001 0.0000000E+000 0 +1 32 1.1801682E+002 7.6575543E+001 0.0000000E+000 -7.0638870E+001 2.8102030E+003 9.5539687E-003 1.9012743E+002 1.4802319E+002 5.8023185E+001 0.0000000E+000 19 +1 33 1.2235596E+002 7.9088183E+001 0.0000000E+000 -7.4176485E+001 2.2334442E+003 4.3173496E-002 8.5913249E+002 1.4110344E+002 5.1103438E+001 0.0000000E+000 0 +1 34 1.2668724E+002 8.2193373E+001 0.0000000E+000 -7.7196053E+001 1.7302562E+003 6.7334474E-002 1.3399280E+003 1.2728425E+002 3.7284246E+001 0.0000000E+000 20 +1 35 1.3101002E+002 8.6010690E+001 0.0000000E+000 -7.9224495E+001 1.3936286E+003 7.8459501E-002 1.5613096E+003 1.0868251E+002 1.8682511E+001 0.0000000E+000 0 +1 36 1.3533663E+002 9.0266517E+001 0.0000000E+000 -8.0003882E+001 1.3149984E+003 5.0991528E-002 1.0146291E+003 9.2047689E+001 2.0476890E+000 0.0000000E+000 21 +1 37 1.3967792E+002 9.4607789E+001 0.0000000E+000 -8.0015784E+001 1.3274616E+003 1.0982176E-002 2.1855509E+002 8.9183228E+001 -8.1677209E-001 0.0000000E+000 0 +1 38 1.4401959E+002 9.8949454E+001 0.0000000E+000 -8.0008421E+001 1.3260058E+003 3.1968993E-003 6.3619329E+001 9.0223210E+001 2.2321033E-001 0.0000000E+000 22 +1 39 1.4836134E+002 1.0329120E+002 0.0000000E+000 -8.0010153E+001 1.3258244E+003 6.4650844E-004 1.2865536E+001 8.9954021E+001 -4.5978596E-002 0.0000000E+000 0 +1 40 1.5270310E+002 1.0763296E+002 0.0000000E+000 -8.0009811E+001 1.3258160E+003 1.1705589E-004 2.3294075E+000 9.0009111E+001 9.1112106E-003 0.0000000E+000 23 +1 41 1.5704486E+002 1.1197473E+002 0.0000000E+000 -8.0009856E+001 1.3258157E+003 1.3129274E-005 2.6127186E-001 8.9995797E+001 -4.2025214E-003 0.0000000E+000 0 +1 42 1.6138662E+002 1.1631649E+002 0.0000000E+000 -8.0009942E+001 1.3258162E+003 1.4094145E-004 2.8047272E+000 9.0014111E+001 1.4110621E-002 0.0000000E+000 24 +1 43 1.6572838E+002 1.2065825E+002 0.0000000E+000 -8.0009696E+001 1.3258158E+003 7.2735028E-004 1.4474227E+001 8.9937569E+001 -6.2431408E-002 0.0000000E+000 0 +1 44 1.7007015E+002 1.2500000E+002 0.0000000E+000 -8.0000000E+001 1.3258156E+003 6.5552059E-005 1.3044824E+000 8.9841233E+001 -1.5876739E-001 0.0000000E+000 25 diff --git a/tests/test_cabledyn_inputs.py b/tests/test_cabledyn_inputs.py index bf059ed..ef5659f 100644 --- a/tests/test_cabledyn_inputs.py +++ b/tests/test_cabledyn_inputs.py @@ -221,7 +221,13 @@ def test_coupled_static_profile_is_recorded(tmp_path): f.write("\t".join(["(s)", *units]) + "\n") for k in range(nt): f.write(_fmt([0.1 * k, *[channels[n][k] for n in names]]) + "\n") - (tmp_path / "of.CD.static.out").write_text("static\n", encoding="utf-8") + (tmp_path / "of.CD.static.out").write_text( + "CableDyn coupled static configuration\n" + "LineID\tNode\tArcLength\tX\tY\tZ\n" + "(-)\t(-)\t(m)\t(m)\t(m)\t(m)\n" + + "".join(f"1\t{j}\t0\t0\t0\t0\n" for j in range(1, 102)), + encoding="utf-8", + ) read = read_cabledyn_sections( tmp_path / "of", tmp_path / "of.dat", @@ -312,7 +318,7 @@ def test_duplicated_channel(tmp_path): ], "rows missing or unordered", ), - (lambda rows: rows[:-1], "nodes, expected"), + (lambda rows: rows[:-1], "different numbers of nodes"), ], ) def test_static_profile(tmp_path, edit, match): @@ -372,19 +378,40 @@ def test_element_file_layout(tmp_path, kwargs, match): _read(root, deck) -def test_mesh_change_needs_and_is_checked_by_the_element_file(tmp_path): +def test_mesh_change_is_checked_by_the_element_file(tmp_path): root, deck = _case(tmp_path) - _elements(tmp_path / "case.elements.out", 10.0 * np.arange(51) / 50) + # As many nodes as the deck, at other arc lengths. + _elements(tmp_path / "case.elements.out", 10.0 * (np.arange(101) / 100) ** 1.1) with pytest.raises(CableSchemaError, match="differs from the deck sections"): _read(root, deck) + _elements(tmp_path / "case.elements.out", 10.0 * np.arange(51) / 50) + with pytest.raises(CableSchemaError, match="files from different runs"): + _read(root, deck) (tmp_path / "case.elements.out").unlink() + # adaptive_mesh may refine; files listing the deck nodes show it did not. _edit( deck, "--------------------- OUTPUTS ---", "true adaptive_mesh - x\n--------------------- OUTPUTS ---", ) - with pytest.raises(CableSchemaError, match="elements.out file is needed"): - _read(root, deck) + read = _read(root, deck) + assert read.checks["mesh"]["refined"] is False + assert read.checks["arc_lengths"] == "deck sections" + + +@pytest.mark.parametrize("ei", [0.0, 2.0e4]) +def test_element_file_of_other_lines(tmp_path, ei): + """``.elements.out`` may list only the finite-EI lines of a run.""" + root, deck = _case(tmp_path, deck_kwargs={"ei": ei}) + path = tmp_path / "case.elements.out" + _elements(path, 10.0 * np.arange(101) / 100) + text = path.read_text(encoding="utf-8").replace("\n1\t", "\n2\t") + path.write_text(text, encoding="utf-8") + if ei > 0.0: + with pytest.raises(CableSchemaError, match="elements of line 1"): + _read(root, deck) + else: + assert _read(root, deck).checks["arc_lengths"] == "deck sections" # --------------------------------------------------------------------------- # diff --git a/tests/test_cabledyn_reader.py b/tests/test_cabledyn_reader.py index 99804ef..3a462d4 100644 --- a/tests/test_cabledyn_reader.py +++ b/tests/test_cabledyn_reader.py @@ -9,8 +9,10 @@ on the ``lazy_wave_vessel_rao`` example cable (JONSWAP Hs 4 m, Tp 10 s, 30 deg; RAO-driven hang-off): ``lw128`` of the CableDyn 0.4.2 driver (node tangents; development build 4b94321), ``lw128_v010`` of the v0.1.0 driver -on the same deck (chord tangents) and ``lw24`` of the v0.1.0 driver (no -tangent channels). +on the same deck (chord tangents), ``lw24`` of the v0.1.0 driver (no +tangent channels) and ``lw24r`` of the CableDyn 0.4.2 driver (development +build 4b94321) on the ``lw24`` deck (1 s, tangent channels), whose static +solve (``tensile_safety True``) now refines the 24 deck elements to 43. """ from __future__ import annotations @@ -603,7 +605,7 @@ def test_mesh_that_differs_from_the_deck_is_rejected(tmp_path): positions = _bending_case(np.full(3, 0.02), np.zeros(3), 3) root, deck = _write_case(tmp_path, positions) _deck(deck, n_elements=99) - with pytest.raises(CableSchemaError, match="header does not match"): + with pytest.raises(CableSchemaError, match="the deck and the output differ"): read_cabledyn_sections(root, deck, {"s": 5.0}) @@ -863,3 +865,158 @@ def test_real_cabledyn_run_with_line_files(): "elements", "deck", } + + +# --------------------------------------------------------------------------- # +# A mesh the static solve refined # +# --------------------------------------------------------------------------- # +def _refined_copy(tmp_path, files=("out", "Line1.p.out", "Line1.t.out", "dat")): + """Copy of the ``lw24r`` run with only ``files`` (suffixes after the root).""" + for suffix in files: + name = f"lw24r.{suffix}" + (tmp_path / name).write_bytes((DATA / name).read_bytes()) + return tmp_path / "lw24r", tmp_path / "lw24r.dat" + + +@pytest.mark.full_scale +def test_real_cabledyn_run_on_a_refined_mesh(): + """``tensile_safety True`` refines the 24 deck elements to 43. + + CableDyn 0.4.2 (development build 4b94321) splits deck elements 6 to 24 in + two; the per-line files, ``.static.out`` and ``.elements.out`` list the + 44 mesh nodes, the node channels name the 25 deck nodes (``# DeckNode`` + of ``.p.out`` and the ``DeckNode`` column of ``.static.out``). From the + refined positions the curvature meets every ``Curv`` channel within the + default 5 % (the 24-element ``lw24`` run of v0.1.0 needs 50 %); from the + deck-node tangents alone within 10 %. + """ + root, deck = DATA / "lw24r", DATA / "lw24r.dat" + sections = {"upper": 10.0, "sag": 58.4} + read = read_cabledyn_sections(root, deck, sections, curvature_source="positions") + assert read.checks["mesh"] == { + "deck_nodes": 25, + "output_nodes": 44, + "refined": True, + "deck_nodes_located_by": "DeckNode of lw24r.Line1.p.out, lw24r.static.out", + } + assert read.checks["arc_lengths"].startswith("refined mesh of .elements.out") + assert read.checks["first_row_vs_static_m"] == 0.0 + assert read.checks["tension_source"].startswith("segment") + records = read.checks["curvature_vs_channels"] + assert set(records) == {"N2", "N3", "N4", "N8", "N10", "N12"} + for node in ("N3", "N4", "N8", "N10", "N12"): + record = records[node] + assert record["max_abs_error_1_m"] <= 0.025 * record["max_channel_1_m"], node + sag = read.histories["sag"] + assert np.all(sag.rotation_curvature_y_1_m < -0.09) + assert 1.3e3 < sag.effective_tension_N.mean() < 1.5e3 + + tangent = read_cabledyn_sections( + root, + deck, + sections, + curvature_source="tangent", + curvature_check_rtol=0.1, + ) + assert tangent.checks["tangent_placement"].startswith("node") + for node, record in tangent.checks["curvature_vs_channels"].items(): + assert record["max_abs_error_1_m"] <= 0.1 * record["max_channel_1_m"], node + np.testing.assert_allclose( + tangent.histories["sag"].rotation_curvature_y_1_m, + sag.rotation_curvature_y_1_m, + rtol=0.01, + ) + # Chords on the refined mesh (CableDyn 0.4.1 placement) do not fit 0.4.2. + with pytest.raises(CableSchemaError, match="needs the default tangent_placement"): + read_cabledyn_sections( + root, + deck, + sections, + curvature_source="tangent", + curvature_check_rtol=0.1, + tangent_placement="chord", + ) + + +def test_refined_mesh_is_located_without_a_deck_node_numbering(tmp_path): + """Without ``DeckNode`` the deck nodes are found by their arc lengths.""" + root, deck = _refined_copy( + tmp_path, ("out", "Line1.t.out", "elements.out", "static.out", "dat") + ) + lines = (DATA / "lw24r.Line1.p.out").read_text(encoding="utf-8").splitlines() + assert lines[1].startswith("# DeckNode") + (tmp_path / "lw24r.Line1.p.out").write_text( + "\n".join([lines[0], *lines[2:]]) + "\n", encoding="utf-8" + ) + static = (tmp_path / "lw24r.static.out").read_text(encoding="utf-8").splitlines() + (tmp_path / "lw24r.static.out").write_text( + "\n".join([static[0], *("\t".join(row.split("\t")[:-1]) for row in static[1:])]) + + "\n", + encoding="utf-8", + ) + read = read_cabledyn_sections( + root, deck, {"sag": 58.4}, curvature_source="positions" + ) + assert read.checks["mesh"]["deck_nodes_located_by"] == ( + "arc lengths of lw24r.elements.out" + ) + reference = read_cabledyn_sections( + DATA / "lw24r", DATA / "lw24r.dat", {"sag": 58.4}, curvature_source="positions" + ) + np.testing.assert_array_equal( + read.histories["sag"].rotation_curvature_y_1_m, + reference.histories["sag"].rotation_curvature_y_1_m, + ) + + +def test_refined_mesh_without_the_element_file(tmp_path): + """The multibody march writes no ``.static.out`` or ``.elements.out``. + + The ``# DeckNode`` line of ``.p.out`` still locates the deck nodes, so the + positions are read there; the segments of ``.t.out`` and chords on the + refined mesh cannot be placed. + """ + root, deck = _refined_copy(tmp_path) + sections = {"upper": 10.0, "sag": 58.4} + read = read_cabledyn_sections(root, deck, sections, curvature_check_rtol=0.1) + assert read.checks["curvature_source"] == "tangent" + assert read.checks["tension_source"] == "node channels TenN" + assert "lw24r.Line1.t.out" in read.checks["tension_file_skipped"] + assert read.checks["arc_lengths"].startswith("deck sections at the deck nodes") + with pytest.raises(CableSchemaError, match="elements.out places; it is missing"): + read_cabledyn_sections(root, deck, sections, tension_source="segments") + with pytest.raises(CableSchemaError, match="elements.out locates; it is missing"): + read_cabledyn_sections(root, deck, sections, tangent_placement="chord") + + +@pytest.mark.parametrize( + ("old", "new", "match"), + [ + # One deck element fewer: the DeckNode numbering names 25 nodes. + ("1 bare 68.114 10", "1 bare 68.114 9", "DeckNode"), + # Same mesh, another section length: the deck nodes move. + ("1 buoy 50.000 8", "1 buoy 51.000 8", "differs"), + ], +) +def test_refined_mesh_of_another_deck_is_rejected(tmp_path, old, new, match): + root, deck = _refined_copy( + tmp_path, + ("out", "Line1.p.out", "Line1.t.out", "elements.out", "static.out", "dat"), + ) + text = deck.read_text(encoding="utf-8") + assert old in text + deck.write_text(text.replace(old, new), encoding="utf-8") + with pytest.raises(CableSchemaError, match=match): + read_cabledyn_sections(root, deck, {"sag": 58.4}) + + +def test_deck_node_numberings_must_agree(tmp_path): + root, deck = _refined_copy( + tmp_path, ("out", "Line1.p.out", "Line1.t.out", "static.out", "dat") + ) + path = tmp_path / "lw24r.Line1.p.out" + lines = path.read_text(encoding="utf-8").splitlines() + lines[1] = lines[1].replace("\t6\t0\t7\t", "\t6\t7\t0\t", 1) + path.write_text("\n".join(lines) + "\n", encoding="utf-8") + with pytest.raises(CableSchemaError, match="DeckNode numberings of line 1 differ"): + read_cabledyn_sections(root, deck, {"sag": 58.4}) diff --git a/validation/validation_report.md b/validation/validation_report.md index 269bd10..789d0d7 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -71,7 +71,7 @@ Every row is computed from published data or closed-form references in this repo - analytical_sanity: `1183 passed` - independent_method: `76 passed` -- full_scale: `32 passed` +- full_scale: `33 passed` Run `pytest -m ` to reproduce each group.