VibeFlow MOOSE
This skill is responsible for integrating the MOOSE ecosystem into VibeCAE. MOOSE is a multiphysics application framework, not a single solver; the actual runtime target is usually a specific MOOSE app.
- Usage mode: run the current case with an existing MOOSE app.
- Development mode: develop or modify a MOOSE app, module, Kernel, BC, Material, Action, or input template.
When to Use
- The current backend selects MOOSE or a MOOSE-based application.
.iinput files need to be generated and<app>-opt -i input.ineeds to be run.- HIT input syntax, MOOSE objects, materials, kernels, BCs, Executioner, or Outputs need to be debugged.
run_testsor the MOOSE TestHarness needs to be used.
First Decide: Usage Mode or Development Mode
- If an app already exists and only
.igeneration and execution are needed: use usage mode. - If C++ development of MOOSE objects or a custom app is needed: use development mode.
- If the MOOSE app executable is not specified: switch to
vibeflow-toolchainfirst or ask the user to provideVIBEFLOW_MOOSE_APP.
What to Read First
0-caseDict/caseDictreferences/moose-playbook.mdreferences/moose-practical-tips.md: software knowledge base, key concepts, failure interpretation, and adapter design points.- Current MOOSE app documentation, examples, and tests
- Existing inputs and logs under
C-run/moose/ - If development is needed, read the app source,
src/,include/, andtest/tests
Inputs
- Physics, materials, initial/boundary values, mesh, and solve controls from
caseDict - MOOSE
.itemplates or the target app object catalog - Exodus meshes or mesh formats supported by the app
Outputs
C-run/moose/case-1/input.iC-run/moose/case-1/mesh.eC-run/moose/case-1/results/C-run/moose/case-1/logs/- If developing:
UDF/moose/<app>/or patch notes for the target app
Usage Mode Workflow
- Specify the app executable, for example
VIBEFLOW_MOOSE_APP=/path/to/app-opt. - Confirm available objects from the app's
--help,--dump, or documentation. - Map mesh, Variables, Kernels, BCs, Materials, Executioner, and Outputs from
caseDict. - Generate
input.iand avoid hiding defaults. - Run
<app> --check-input -i input.iif the app supports it, or perform a lightweight startup. - Execute the production run, saving logs and Exodus/CSV outputs.
- Write backend, app, input, output, and status information back to
caseDict.
Development Mode Workflow
- Define the development target: Kernel, BC, Material, AuxKernel, Action, UserObject, Postprocessor, or complete app.
- Write
UDF/README.mdor app development notes first, recording interfaces and validation. - Copy the minimal skeleton from a similar MOOSE object.
- Update registration, CMake/Make files, tests, and gold files.
- Use
run_teststo validate the target tests. - If integrating into the current case, return to usage mode and update
input.i.
Core Rules
- Do not assume that a generic
moosecommand exists; a specific app must be specified. - The
.iinput is the runtime source of truth, but the physical intent still comes fromcaseDict. - For each MOOSE object, state clearly which
caseDictfield it comes from. - Complex development must have tests and must not rely only on one real-case run.
- Multiphysics coupling, MultiApps, and Transfers must make the data exchange and time-advancement relationship explicit.
Validation
- The app executable exists and
--helpcan run. --dumpor an equivalent method can confirm object availability.- The input file can be parsed.
- The run outputs Exodus/CSV/log files.
run_testspasses or the failure reason is clear.
Fallback Rules
- App unspecified or environment unavailable: return to
vibeflow-toolchain - Input physics unclear: return to
vibeflow-case-dict - Mesh incompatible: return to
vibeflow-mesh - Post-processing/reporting needed: hand off to
vibeflow-postprocess/vibeflow-report