K-Dense-AI/scientific-agent-skills / skills/fluidsim
fluidsim
VerifiedPlans, configures, inspects, restarts, and analyzes bounded FluidSim computational-fluid-dynamics simulations with explicit numerical-validity and HPC safety checks. Use for FluidSim solver selection, parameter review, FFT/MPI setup, output diagnostics, or restart compatibility.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 13.7 KB |
| references/advanced_features.md | markdown | 11.5 KB |
| references/installation.md | markdown | 10.2 KB |
| references/output_analysis.md | markdown | 11.1 KB |
| references/parameters.md | markdown | 10.5 KB |
| references/simulation_workflow.md | markdown | 12.4 KB |
| references/solvers.md | markdown | 8.1 KB |
| scripts/__init__.py | script | 74 B |
| scripts/_common.py | script | 15.3 KB |
| scripts/_profiles.py | script | 12.3 KB |
| scripts/_schema.py | script | 30.8 KB |
| scripts/budget_summary.py | script | 14.2 KB |
| scripts/grid_resource_estimator.py | script | 9.5 KB |
| scripts/output_inventory.py | script | 10.9 KB |
| scripts/restart_compatibility.py | script | 19.5 KB |
| scripts/simulation_dry_run.py | script | 10.1 KB |
| scripts/solver_config_validator.py | script | 2.1 KB |
scripts/solver_config_validator.py
View on GitHub#!/usr/bin/env python3
"""Validate a bounded FluidSim 0.9 JSON simulation plan."""
from __future__ import annotations
import argparse
try:
from ._common import ToolError, checked_input, emit_json, fail_json, load_json
from ._schema import example_config, validate_config
except ImportError: # Direct script execution.
from _common import ToolError, checked_input, emit_json, fail_json, load_json
from _schema import example_config, validate_config
TOOL = "fluidsim-solver-config-validator"
def build_parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(
description=(
"Validate strict local JSON against the static FluidSim 0.9 CFD "
"configuration profile. No FluidSim package is imported and nothing runs."
)
)
source = parser.add_mutually_exclusive_group(required=True)
source.add_argument("--config", help="Configuration JSON within --root.")
source.add_argument(
"--example",
action="store_true",
help="Emit a bounded example configuration as strict JSON.",
)
parser.add_argument(
"--root",
default=".",
help="Local I/O boundary (default: current directory).",
)
return parser
def main(argv: list[str] | None = None) -> int:
args = build_parser().parse_args(argv)
try:
if args.example:
emit_json(example_config())
return 0
path = checked_input(
args.config,
root=args.root,
kind="file",
suffixes={".json"},
)
report = validate_config(load_json(path))
report.update(
{
"commands_executed": False,
"dynamic_imports_used": False,
"network_used": False,
"source": path.name,
"tool": TOOL,
}
)
emit_json(report)
return 0 if report["ok"] else 2
except (OSError, ToolError, UnicodeError) as exc:
return fail_json(TOOL, exc)
if __name__ == "__main__":
raise SystemExit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |