VibeFlow Code_Aster
This skill is responsible for connecting VibeCAE structural FEM, thermo-structural, and multiphysics problems to Code_Aster.
- Usage mode: generate Code_Aster cases from
0-caseDict/caseDict, runrun_aster, and organize results. - Development mode: write or maintain Code_Aster command-file templates, Python post-processing, adapters, and validation examples.
When to Use
- The current backend is
code_aster. .comm,.export,.med, and result.rmed/.resu/.messfiles need to be generated.- Materials, loads, boundaries, contact, thermal analysis, or modal analysis need to be mapped from the unified physical description.
run_aster, Code_Aster command syntax, MED meshes, or solver logs need debugging.
First Decide: Usage Mode or Development Mode
- Implementing structural/thermal/modal/contact analysis for the current case: use usage mode.
- Writing general
.commtemplates, Python adapters, post-processing parsers, or new algorithm wrappers: use development mode. - If
run_asteris unavailable or the environment is abnormal, switch tovibeflow-toolchain. - If the mesh format or physical groups are missing, switch to
vibeflow-mesh.
What to Read First
physicalProblem,materials,regions,interfaces,boundariesLoadsInitials,mesh,numericalMethod, andexecutionin0-caseDict/caseDictreferences/code-aster-playbook.mdreferences/code-aster-practical-tips.md: software knowledge base, key concepts, failure interpretation, and adapter design points.- MED/UNV/Gmsh artifacts and group naming in
B-mesh/ - Existing scripts and logs in
C-run/code_aster/andD-post/
Inputs
0-caseDict/caseDict- MED mesh or a mesh convertible to MED
- Materials, boundaries, loads, contact, and solution strategy
.commtemplates or reference cases
Outputs
C-run/code_aster/<case>/case.commC-run/code_aster/<case>/case.exportC-run/code_aster/<case>/mesh.medC-run/code_aster/<case>/logs/*.messC-run/code_aster/<case>/results/*- Post-processing scripts and figures under
D-post/code_aster/
Recommended Structure
C-run/code_aster/case-1/
├── case.export
├── case.comm
├── mesh.med
├── inputs/
├── results/
└── logs/
Usage Mode Workflow
- Confirm
execution.backend code_asteror that the user explicitly requested Code_Aster. - Check whether the mesh has
group_ma/group_nosemantics usable by Code_Aster. - Map materials, sections, boundaries, loads, contact, and analysis type from
caseDict. - Generate
.command.export, keeping paths relative to the case directory. - Execute
run_aster case.exportor a minimal command file. - Check fatal/error/alarm entries in the
.messlog and confirm that result files were generated. - Write run status, result files, errors, and limitations into
caseDict.
Development Mode Workflow
- Define the development target: templates, command fragments, result parsing, MED conversion, material libraries, or contact/nonlinear strategies.
- Record reference commands, inputs/outputs, and applicable physical scope.
- Maintain templates with small benchmarks; do not debug first on a large case.
- Structure
.commgeneration logic to avoid uncontrolled string concatenation. - When parsing
.mess, extract only key errors, iteration status, convergence, and result summaries. - If a general capability is reusable, place it in
UDF/or a Studio adapter; keep the call record in the current case.
Core Rules
- Code_Aster cases must be reproducible around
.comm,.export, MED meshes, and.messlogs. - Group names must match the region/boundary semantics in
caseDict. - Do not write case-specific Code_Aster log paths into general templates.
- For nonlinear, contact, and thermo-structural coupling, record convergence criteria and fallback strategies for failures.
- Alarms in
.messare not always blocking, but fatal/error entries must be classified and handled.
Validation
run_aster --helpis available..exportor.commcan be accepted byrun_aster..messhas no unresolved fatal entries.- Result files exist and can be read by post-processing scripts.
caseDictrecords the backend, inputs, outputs, logs, and current state.
Fallback Rules
- Unclear physics/loads: return to
vibeflow-case-dict - Missing mesh groups: return to
vibeflow-mesh - Code_Aster environment unavailable: return to
vibeflow-toolchain - Results need visualization/reporting: switch to
vibeflow-postprocessorvibeflow-report