Skip to content

Echo-aloha/asphalt-codex-skills-5 / skills/pfc5-dynamics-wave

pfc5-dynamics-wave

Verified

Design and audit PFC 5.0 asphalt dynamic loading and stress-wave studies with damping, timestep, rate, dispersion, source direction, boundary reflection, histories, and wheel-load handoff checks.

FileKindSize
SKILL.mdskill md2.4 KB
agents/openai.yamlconfig235 B
dependencies.jsonconfig116 B
references/dynamic-contract.mdmarkdown810 B
scripts/check_dynamic_resolution.pyscript1.9 KB

scripts/check_dynamic_resolution.py

View on GitHub
from __future__ import annotations

import argparse
import json


def main() -> int:
    parser = argparse.ArgumentParser(description="Check PFC5 dynamic/wave resolution inputs")
    parser.add_argument("--dimension", type=int, choices=(2, 3), required=True)
    parser.add_argument("--direction", choices=("x", "y", "z"), required=True)
    parser.add_argument("--spacing", type=float, required=True)
    parser.add_argument("--wave-speed", type=float, required=True)
    parser.add_argument("--f-max", type=float, required=True)
    parser.add_argument("--ratio-min", type=float, default=10.0)
    parser.add_argument("--dt", type=float)
    parser.add_argument("--samples-min", type=float, default=20.0)
    args = parser.parse_args()
    if min(args.spacing, args.wave_speed, args.f_max, args.ratio_min) <= 0:
        parser.error("spacing, wave-speed, f-max and ratio-min must be positive")
    errors: list[str] = []
    if args.dimension == 2 and args.direction == "z":
        errors.append("2D models cannot use z as the source direction")
    wavelength = args.wave_speed / args.f_max
    ratio = wavelength / args.spacing
    if ratio < args.ratio_min:
        errors.append(f"wavelength/spacing {ratio:.6g} is below {args.ratio_min:.6g}")
    samples = None
    if args.dt is not None:
        if args.dt <= 0:
            errors.append("dt must be positive")
        else:
            samples = 1.0 / (args.f_max * args.dt)
            if samples < args.samples_min:
                errors.append(f"samples/period {samples:.6g} is below {args.samples_min:.6g}")
    print(json.dumps({
        "ok": not errors,
        "wavelength": wavelength,
        "wavelength_to_spacing": ratio,
        "samples_per_shortest_period": samples,
        "errors": errors,
        "requires_pfc5_runtime_validation": True,
    }, indent=2))
    return 0 if not errors else 1


if __name__ == "__main__":
    raise SystemExit(main())
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall