cubit-run
Run Cubit .jou files in Cubit 2025.12 and export mesh via the current Cubit .ccm export commands
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Run Cubit .jou files in Cubit 2025.12 and export mesh via the current Cubit .ccm export commands
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Four-machine Radia release gate. Use when the user asks for release-qud, release_quad, release_qud, post-release deploy, GitHub Release publication, or the Definition Of Done for Radia releases. Coordinates PyPI and Simulink release candidates across LAB, 100号機, mdx, and hibino via tools/release_qud.py.
Publish Radia's Simulink application library after verifying its five application blocks and tracked MATLAB-only samples. Use simulink-app-health before deploy/release-qud; Cubit's toolbar remains a separate deployment surface.
Verify Radia's production Simulink application blocks for EM, PCB, Motor, Stream Function, and IH. Use after changing buildLibrary, applicationSFunction, runApplication, application.py, a DesignSpec/calc script, the application interface manifest, or the tracked Simulink library; also use when a block does not run or leaves incomplete artifacts.
Take inventory of the radia package's proprietary Python and pybind API surface, classify API families under the Reduce Proprietary API Surface policy, and produce a committed audit plus phased reduction plan. Use after public API changes, before deprecation work, or for periodic read-only surface audits.
Historical deploy notes. Current Radia deploy/release uses release-qud plus cubit-plugin-install; do not follow old .ccl/Cubit-2025.3 recipes except for archaeology.
Verify GMSH .geo + .msh files generated by Radia panels BEFORE opening in the GUI. Catches invalid options (Mesh.Volumes), duplicate element IDs, missing Merge targets, node count mismatches. Run AFTER any calc_*.py edit that touches GMSH export, BEFORE clicking Open GMSH.
| name | cubit-run |
| description | Run Cubit .jou files in Cubit 2025.12 and export mesh via the current Cubit .ccm export commands |
| allowed-tools | Bash(python *), Bash(*coreform_cubit*), Bash(ssh *), Bash(cp *), Bash(sed *), Bash(cat *), Read, Glob, Write |
CURRENT POLICY (2026-07-06): target Coreform Cubit 2025.12 and the
cubit_mesh_export.ccmAPREPRO commands (export netgen/gmsh/vtk/...andexport jmag_nastran). The oldradia_export ...verb and Cubit 2025.3 paths are historical. PreferC:\tempfor temporary journals and outputs.
Run Cubit journal (.jou) files and test all export formats.
| Argument | Action |
|---|---|
<path/to/file.jou> | Run a single .jou file with full export test suite |
test or tests | Run all tests in tests/cubit/export_mixed_test/ |
test 100 | Run tests on 100号機 via SSH |
For EVERY .jou file tested, run ALL of these export formats:
CUBIT="C:\Program Files\Coreform Cubit 2025.12\bin\coreform_cubit.exe"
# Generate test .jou from the user's .jou by appending export commands
# The user's .jou should contain geometry + mesh + blocks only (no export)
# Append these export lines with output to a temp directory:
export gmsh "{DIR}/test.msh" order 1 overwrite
export gmsh "{DIR}/test_o2.msh" order 2 overwrite
export jmag_nastran "{DIR}/test.bdf" order 1 overwrite
export jmag_nastran "{DIR}/test_o2.bdf" order 2 overwrite
export vtk "{DIR}/test.vtk" order 1 overwrite
export vtk "{DIR}/test_o2.vtk" order 2 overwrite
export netgen "{DIR}/test_o1.vol" order 1 overwrite
export netgen "{DIR}/test_o2.vol" order 2 overwrite
export netgen "{DIR}/test_o3.vol" order 3 overwrite
export netgen "{DIR}/test_o4.vol" order 4 overwrite
export netgen "{DIR}/test_o5.vol" order 5 overwrite
# Copy .jou to 100号機 via SMB
cp test.jou "//192.168.11.100/c$/temp/test.jou"
# Run via SSH
ssh 100 '& "C:\Program Files\Coreform Cubit 2025.12\bin\coreform_cubit.exe" -batch -nographics -nojournal C:\temp\test.jou 2>&1 | Select-String "Exported|succeed|FAIL|Interrupt"'
# Verify: all lines show "Exported" or "succeeded", no "Interrupt"
# Run all registered tests (local)
python tests/cubit/export_mixed_test/run_test.py
# Tests included:
# 1. Mixed hex+tet+pyramid: order 1+2, gmsh+nastran+vol
# 2. Hex cylinder: order 2, gmsh+nastran (HEX20 = 20 nodes check)
# 3. Sphere p-convergence: order 1-5, vol
| Command | Format | Orders | Notes |
|---|---|---|---|
export gmsh "f.msh" order N version 2 | GMSH v2.2 | 1-4 | |
export gmsh "f.msh" order N version 4 | GMSH v4.1 | 1-4 | |
export radia_nastran "f.bdf" order N | Nastran BDF | 1-2 | NOT export nastran (built-in conflict) |
export vtk "f.vtk" order N | VTK Legacy | 1-2 | |
export meg "f.meg" | MEG/ELF | 1 only | |
export netgen "f.vol" order N | Netgen Vol | 1-5 | p-convergence test |
coil "script.py" | CoilBuilder STEP | -- | subprocess Python 3.12 |
Interrupt Detected on AddPoint: ABI mismatch. Rebuild ccm with compact_netgen (not full Netgen DLL).edge_ho_nodes_ not registered for volume element edges. Fixed 2026-04-05.topLevelWidgets error: Batch mode (-nographics). Harmless, panels skip registration.