orcaflex-visualization-orcawave-mesh-export-via-diffraction
Sub-skill of orcaflex-visualization: OrcaWave Mesh Export via Diffraction (+4).
Best use case
orcaflex-visualization-orcawave-mesh-export-via-diffraction is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sub-skill of orcaflex-visualization: OrcaWave Mesh Export via Diffraction (+4).
Teams using orcaflex-visualization-orcawave-mesh-export-via-diffraction should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/orcawave-mesh-export-via-diffraction/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How orcaflex-visualization-orcawave-mesh-export-via-diffraction Compares
| Feature / Agent | orcaflex-visualization-orcawave-mesh-export-via-diffraction | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Sub-skill of orcaflex-visualization: OrcaWave Mesh Export via Diffraction (+4).
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# OrcaWave Mesh Export via Diffraction (+4)
## OrcaWave Mesh Export via Diffraction
`OrcFxAPI.Diffraction` exposes mesh export methods that output GDF geometry files.
These can be parsed and rendered programmatically (Plotly 3D mesh → Figure 30 style).
```python
import OrcFxAPI as ofx
d = ofx.Diffraction()
d.LoadData("model.owd") # or d.LoadResults("model.owr")
# Body mesh (GDF format) — corresponds to red mesh in Figure 30
*See sub-skills for full details.*
## Programmatic Mesh Rendering (Plotly — Figure 30 style)
Since `SaveModelView` is not available, render mesh from GDF/panelGeometry data:
```python
import numpy as np
import plotly.graph_objects as go
def gdf_to_mesh3d(gdf_path, color="red"):
"""Parse WAMIT GDF file and return Plotly Mesh3d trace."""
panels = []
with open(gdf_path) as f:
*See sub-skills for full details.*
## OrcaFlex: Canonical SaveModelView Pattern
```python
import OrcFxAPI as ofx
def save_model_view(model: ofx.Model, filepath: str, **view_params):
"""Save OrcaFlex model screenshot. NOT available for OrcaWave."""
vp = model.defaultViewParameters
for k, v in view_params.items():
if hasattr(vp, k):
setattr(vp, k, v)
model.SaveModelView(str(filepath), vp)
*See sub-skills for full details.*
## Existing Codebase Implementations
| Script / Module | Coverage | Notes |
|----------------|----------|-------|
| `scripts/capture_riser_views.py` | Minimal `SaveModelView` | OrcaFlex `.dat`; verified |
| `src/.../orcaflex/pipeline_schematic.py` | Multi-view YAML config | `OrcaFlexViewCapture` class |
| `src/.../orcaflex/opp_visualization.py` | Batch parallel (30 workers) | `save_all_views()` |
| `scripts/benchmark/qtf_postprocessing.py` | `panelGeometry` 3D scatter | OrcaWave body panels, used in benchmark report |
| `scripts/build_sme_report.py` | `img_to_base64()` | HTML embedding of BMP/PNG/JPG |
For HTML embedding use `img_to_base64()` from `scripts/build_sme_report.py` —
converts BMP/PNG/JPG to `data:image/...;base64` URI for inline `<img>` tags.
## panelGeometry Structured Array Schema
`d.panelGeometry` returns a numpy structured array (one record per panel):
```
dtype fields:
objectId int32 body object index
objectName str (U31) body name e.g. 'test101 bottom mounted cylinder'
vertices float64 (4,3) four quad panel corners [x, y, z] metres
centroid float64 (3) panel centroid [x, y, z]
normal float64 (3) outward unit normal vector
area float64 panel area (m²)
*See sub-skills for full details.*Related Skills
OrcaFlex Specialist Skill
```yaml
orcaflex-reporting-fixture-proof-pattern
Build and extend fixture-backed OrcaFlex reporting proof paths in digitalmodel using stable metadata baselines, normalized HTML snapshots, and reusable reporting test helpers.
digitalmodel-orcawave-orcaflex-proof-workflows
Class-level digitalmodel OrcaWave/OrcaFlex readiness, semantic-proof, fixture-proof, and closeout workflows.
provider-session-ecosystem-audit-and-exporters
Build and maintain cross-provider session-log audits for Codex, Codex, Hermes, and Gemini, including exporter design, normalization, and behavioral verification.
orcawave-orcaflex-readiness-audit
Audit the real readiness of digitalmodel OrcaWave/OrcaFlex spec-driven workflows by reconciling workspace-hub issues, source/tests, semantic-equivalence boundaries, and wiki synthesis gaps.
handle-blocked-financial-sites-data-export
Workflow for extracting data from blocked financial sites when browser automation is restricted
financial-data-export-workflow
Structured process for exporting and analyzing multi-year brokerage transaction history when browser automation is blocked
export-tax-summary-with-year-comparison
Extract and structure tax return data into YAML format for year-over-year comparison across different filing products
digitalmodel-orcawave-orcaflex-workflow
Current-state workflow for navigating and extending digitalmodel OrcaWave/OrcaFlex capabilities across code, tests, issues, queue tooling, and licensed-machine boundaries.
orcawave-orcaflex-semantic-proof-wave-closeout
Close out an OrcaWave/OrcaFlex semantic-proof wave after a PR merges, split unrelated CI blockers, and seed the next semantic-proof issue wave without duplicating existing issues.
orcawave-to-orcaflex
Integration specialist for converting OrcaWave diffraction results to OrcaFlex vessel types. Handles hydrodynamic database generation, RAO import, viscous damping addition, and coordinate system transformations.
orcawave-qtf-analysis
Second-order wave force QTF computation in OrcaWave. Use when computing mean drift forces, difference-frequency or sum-frequency QTFs, slow-drift response, or applying Newman approximation for offshore structures.