VibeFlow CalculiX
This skill is responsible for using CalculiX as VibeCAE's open-source structural finite-element backend, mainly covering linear/nonlinear structures, thermo-structural analysis, contact, modal analysis, buckling, and quasi-static/transient analysis.
- Usage mode: generate
.inpfiles fromcaseDict, runccx, and read.dat,.frd,.sta, and log files. - Development mode: develop CalculiX input templates, material/contact libraries, result converters, or user subroutines/external coupling tools when explicitly needed.
When to Use
- The task concerns structural strength, displacement, stress, modal behavior, buckling, thermal stress, contact, bolts/connections, or part-level FEM.
- The user already has an Abaqus-style
.inpfile or wants a lightweight open-source structural solver. - A Gmsh/FreeCAD/Netgen mesh needs to be converted into CalculiX input.
.frdfiles need to be inspected or converted into a ParaView-readable format.
First Decide: Usage Mode or Development Mode
- Current structural case generation, execution, and post-processing: use usage mode.
- Template libraries,
.inpgenerators, result converters, user materials/subroutines, or Studio adapters: use development mode. - If
ccx,cgx, or mesh-conversion tools are unavailable, switch tovibeflow-toolchainfirst. - For complex multiphysics coupling, compare whether Elmer, Code_Aster, or MOOSE is more appropriate.
What to Read First
- The geometry regions, materials, sections, constraints, loads, contacts, solution steps, and output objectives in
0-caseDict/caseDict. references/calculix-playbook.mdreferences/calculix-practical-tips.md: software knowledge base, key concepts, failure interpretation, and adapter design points.- Element types, node/element sets, and surface sets in
B-mesh/. - Existing
.inpfiles or benchmarks underC-run/calculix/andRef/.
Inputs
0-caseDict/caseDict- Abaqus/CalculiX
.inp - Meshes, materials, boundary conditions, loads, contact pairs, and output requests
Outputs
C-run/calculix/case-*/job.inpC-run/calculix/case-*/Allrun/Allclean.dat,.frd,.sta,.cvg, and log filesD-post/calculix_postprocess.py- Charts or field files for displacement, stress, reaction force, modal data, contact status, and related quantities
Recommended Structure
C-run/calculix/
└── case-1/
├── job.inp
├── include/
├── logs/
├── results/
├── Allrun
└── Allclean
Usage Mode Workflow
- Map
caseDictinto CalculiX input blocks:*NODE,*ELEMENT,*MATERIAL,*SOLID SECTION,*BOUNDARY,*CLOAD,*DLOAD,*STEP,*STATIC,*FREQUENCY,*CONTACT PAIR,*NODE FILE, and*EL FILE. - Check that node sets, element sets, and surface sets correspond to the regions/boundaries in
caseDict. - Generate
job.inp, preferably splitting mesh, materials, boundaries, and steps intoinclude/. - Run a smoke test with
ccx -i job, checking input parsing, constraints, and element types. - After the production run, read
.dat,.sta, and.frd, then extract displacement, stress, reaction force, energy, and convergence status. - Write results and error status back to
caseDict.
Development Mode Workflow
- Define the development target:
.inpgenerator, material library, contact template, result converter, user subroutine, or coupling interface. - Write the development notes first, recording the CalculiX version, interfaces, input format, output format, and validation examples.
- For user materials or subroutines, document the compilation method, variable meanings, units, and validation path.
- For template generators, preserve set names and ID mappings.
- Validate with at least a very small case such as a cantilever beam, tensile block, or heat-conduction block.
Core Rules
.inpis the executable artifact;caseDictis the source of truth for engineering intent.- Element types, integration schemes, material models, and boundary constraints strongly affect the results, so the selection rationale must be recorded.
- Do not hide rigid-body motion with over-constraint; check both reaction forces and displacements.
- For contact problems, validate stability on a simplified model first.
Validation
ccxis available.job.inpparses successfully..staor the log shows that the solve completed or gives a clear failure reason..dat/.frdoutputs exist and are readable.- Post-processed results can answer the user's objective.
Fallback Rules
- Unclear set/boundary IDs: return to the mesh stage.
- Unclear materials or loads: return to
vibeflow-case-dict. - CalculiX environment unavailable: return to
vibeflow-toolchain. - Nonlinear non-convergence: check constraints, contact, load steps, materials, and mesh.