Agent skill

orcaflex-model-generator-from-specyml-file

Sub-skill of orcaflex-model-generator: From spec.yml file (+3).

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-model-generator/from-specyml-file

SKILL.md

From spec.yml file (+3)

From spec.yml file

python
from digitalmodel.solvers.orcaflex.modular_generator import ModularModelGenerator

gen = ModularModelGenerator(Path("spec.yml"))
gen.generate(Path("output/"))

From in-memory spec

python
spec = ProjectInputSpec(**spec_dict)
gen = ModularModelGenerator.from_spec(spec)
gen.generate(Path("output/"))

From monolithic (extract + generate)

python
from digitalmodel.solvers.orcaflex.modular_generator.extractor import MonolithicExtractor

ext = MonolithicExtractor(Path("model.yml"))
spec = ProjectInputSpec(**ext.extract())
gen = ModularModelGenerator.from_spec(spec)
gen.generate(Path("output/"))

With section overrides

python
result = gen.generate_with_overrides(
    output_dir=Path("output/"),
    sections=[override_section],
    variables={"water_depth": 500},
)

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