Agent skill

orcaflex-static-debug-execution-for-debugging

Sub-skill of orcaflex-static-debug: Execution for Debugging.

Stars 4
Forks 4

Install this agent skill to your Project

npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/engineering/marine-offshore/orcaflex-static-debug/execution-for-debugging

SKILL.md

Execution for Debugging

Execution for Debugging

python
import OrcFxAPI

# Progressive solver settings for convergence hunting
def find_convergence_settings(model_path):
    """Try progressively relaxed solver settings."""
    model = OrcFxAPI.Model()
    model.LoadData(model_path)

    settings = [
        {"damping": 10, "tolerance": 1e-5, "max_iter": 100},
        {"damping": 50, "tolerance": 1e-4, "max_iter": 200},
        {"damping": 100, "tolerance": 1e-3, "max_iter": 500},
        {"damping": 200, "tolerance": 1e-2, "max_iter": 1000},
    ]

    for s in settings:
        model.general.StaticsDamping = s["damping"]
        model.general.StaticsTolerance = s["tolerance"]
        model.general.StaticsMaxIterations = s["max_iter"]

        try:
            model.CalculateStatics()
            return {"converged": True, "settings": s}
        except OrcFxAPI.OrcaFlexError:
            continue

    return {"converged": False, "settings": None}

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results