Skip to content
Back to skills

Common Errors And Fixes

ASecurity

Sub-skill of orcaflex-environment-config: Common Errors and Fixes (+2).

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
code-qualitypythongodebuggingapi

Works with

  • api

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill common-errors-and-fixes --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Common Errors And Fixes?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Common Errors And Fixes
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-common-errors-and-fixes-workspace-hub/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-common-errors-and-fixes-workspace-hub)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: orcaflex-environment-config-common-errors-and-fixes
description: 'Sub-skill of orcaflex-environment-config: Common Errors and Fixes (+2).'
version: 1.0.0
category: engineering
type: reference
scripts_exempt: true
---

# Common Errors and Fixes (+2)

## Common Errors and Fixes


| Error | Cause | Fix |
|-------|-------|-----|
| `Change not allowed for 'WaveGamma'` | WaveGamma only valid for JONSWAP spectrum; set on wrong wave type | Set `WaveSpectrumType` to JONSWAP before setting WaveGamma |
| `Change not allowed for 'SeabedDamping'` | SeabedDamping only valid when `SeabedModel` is set appropriately | Set `SeabedModel` before seabed damping properties |
| `NumberOfCurrentLevels must be >= 2` | Current profile has only 1 depth point | Add at least 2 depth levels (surface + seabed) |
| `WaveHs` vs `WaveHeight` error | Using spectral property name on deterministic wave type | Use `WaveHeight`+`WavePeriod` for Airy/Dean; `WaveHs`+`WaveTp` for JONSWAP/PM |
| Unrealistic vessel drift in statics | Current direction is "from" vs "towards" convention mismatch | OrcaFlex current direction = direction current flows TOWARDS |
| Simulation crashes at startup | Hs too large for water depth (wave breaking) | Check Hs/d ratio; Hs should be < 0.6 * water_depth for shallow water |
| Wave spectrum has no energy at RAO frequencies | Tp too far from vessel natural periods | Ensure wave period range covers vessel response periods (4-25s typical) |

## Mode-Setting Property Order


OrcaFlex requires mode-setting properties to be set BEFORE dependent properties:

```python
# WRONG — gamma set before spectrum type
env.WaveGamma = 3.3
env.WaveSpectrumType = OrcFxAPI.wsJONSWAP  # Too late

# CORRECT — mode first, then dependent properties
env.WaveType = OrcFxAPI.wtIrregular
env.WaveSpectrumType = OrcFxAPI.wsJONSWAP
env.WaveGamma = 3.3  # Now valid
```

## Debugging Environment Issues


```python
def diagnose_environment(model):
    """Check environment configuration for common issues."""
    env = model.environment
    general = model.general
    issues = []

    # Check water depth vs wave height
    wd = general.WaterDepth
    if hasattr(env, 'WaveHs') and env.WaveHs > 0:

*See sub-skills for full details.*

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.