Analyse offset steel link under loads
- Tools
- Gmsh, CalculiX
- Time limit
- 8 hours
Agent is asked to calculate an offset steel link's response to a 1000 N load in each of three directions, and find which direction is most demanding and where the stress concentrates.
Agent Input
What the agent is given: the instruction and its input files.
This offset steel link has two circular mounts. Calculate its response to a load in each of three directions, and find which direction is most demanding and where the stress concentrates. The part is /workspace/link.step. Save the submission in /workspace/submission.
link.step is the only source of geometry. Its units are millimetres. The supports, loads and material are in /workspace/link_details.md.
Use Gmsh and CalculiX as needed. The grader runs model/run.sh for each level, then solves the link.inp that it wrote. Each run.sh run must finish in at most 5 minutes. Each solve must finish in at most 10 minutes in CalculiX, using 1 thread. These times are measured on the grading machine, which can be slower than this one.
Submit these items:
model/run.sh- The command is
bash model/run.sh OUT_DIR LEVEL. LEVEL iscoarseorfine. - The script runs read-only, with no network and only the packages installed here.
- Only scripts in
model/are copied (.py,.sh,.geo,.json). These scripts must be at most 5 MB in total. - Each run must mesh
/workspace/link.stepwith Gmsh. - Each run must write the Gmsh mesh
link.mshand the CalculiX inputlink.inpto OUT_DIR. It must also write any files thatlink.inpincludes. The grader uses only these files, not copies elsewhere in the submission. run.shdoes not need to solve. The grader solveslink.inpitself.
- The command is
link.inp- Use mm, N and MPa.
- Write the load cases as three
*STEPblocks, in the order X, Y, Z. Solve each in one increment. - Each mesh has at most 300,000 cells.
- The fine mesh has more cells than the coarse mesh. Its median cell size is at least 15% smaller.
- Write each load with
*CLOAD.
results.json, withcoarse,fine,mesh_change_percent,highest_stress_direction,largest_displacement_directionandworst_xz_load.- The
coarseandfineobjects each holdX,YandZobjects. Each of these holds:max_displacement_mm, the largest nodal displacement magnitudegauges_MPa, the two gauge stresses, in the order given inlink_details.md. A gauge stress uses the cells whose corner-node mean lies inside the gauge sphere. It is the mean of the integration-point von Mises values of each cell, weighted by the cell volume. The volume of a 10-node cell is its curved (isoparametric) volume.support_force_N[x, y, z], the sum of the CalculiX RF forces at the fixed nodessupport_moment_Nmm[x, y, z], the moment of those forces about the large-bore centrestrain_energy_Nmm, the elastic strain energy as CalculiX integrates it: the sum, over the integration points, of the strain-energy density times the volume of that pointexternal_work_Nmm, half the sum of each nodal load dot its displacementhighest_stress, which holds:von_mises_MPa, the largest integration-point valuexyz_mm, the mean position of the corner nodes of that cellregion_mean_MPa, the gauge-stress rule for the cells whose corner-node mean is within 4 mm ofxyz_mm
- The
mesh_change_percentobject holdsX,YandZobjects. Each holds 100 × (fine / coarse - 1) formax_displacementandpeak. highest_stress_directionisX,YorZ: the direction with the largest fine-mesh peak.largest_displacement_directionisX,YorZ: the direction with the largest fine-mesh displacement.worst_xz_load, withangle_degandvon_mises_MPa: the load 1000 × (cos θ, 0, sin θ) N, with θ from 0 up to (not including) 180 degrees, that gives the largest fine-mesh peak, and that peak.
- The
You have 28800 seconds to complete this task. Do not cheat by using online solutions or hints specific to this task.
Grading & Reference Solution
How the submission is scored, and a human expert-authored reference solution.
Gates
Script builds both meshes; verifier solves them and reads three cases back.
- Results file is valid · results.json exists and parses as a JSON object.
- Model scripts present · model/run.sh exists; only .py, .sh, .geo, .json copied to an offline read-only sandbox.
- Model script builds each mesh×2 · run.sh OUT_DIR LEVEL (coarse, fine) writes link.msh and a readable link.inp; one retry.
- CalculiX finishes×2 · Each level's deck, one thread.
- Solve reads back×2 · Each level reads back as cases X, Y, Z covering the whole mesh.
Three static steps on the submitted link mesh; every solve in equilibrium.
- Three static steps×2 · Per level: three closed *STEP blocks, one *STATIC each.
- Mesh is the declared mesh×2 · Per level: deck nodes and cells vs link.msh.
- One continuous part×2 · Per level: connected components.
- Material volume×6 · Per case and level: mesh volume vs the link (105,590 mm³).
- Material in the right place×6 · Per case and level: occupancy spread on a reference grid; catches misplaced material.
- Force balance×6 · Per case and level: reactions vs minus the 1000 N load.
- Moment balance×6 · Per case and level: reaction moment about (0, 20, 0) vs minus the load moment.
- Energy closure×6 · Per case and level: strain energy / external work.
Scored Categories
Linear static set-up with stated support, material and loads; results.json matches.
- Only the asked physics×2 · Per level: no *PLASTIC, *DYNAMIC, *TIE, *CONTACT PAIR, *EQUATION or similar; no gravity.
- Concentrated loads only×2 · Per level: *CLOAD only; no pressure or distributed loads.
- Small displacements×2 · Per level: no NLGEOM.
- One element order×2 · Per level: all C3D4 or all C3D10.
- One increment per step×2 · Per level: each step's time period and initial increment.
- Large bore fixed×6 · Per case and level: largest fixed-node displacement.
- Support is the large-bore wall×2 · Per level: xyz-fixed nodes vs large-bore wall nodes (r 20 mm, y 0–40 mm).
- Material×2 · Per level: E and ν vs 210,000 MPa and 0.30.
- Loads applied×6 · Per case and level: loads on small-bore wall, 1000 N on axis, no moment about (0, −20, −125), area-spread.
- Reported values×6 · Per case and level: max displacement, gauges, support force and moment, energy, work vs verifier.
- Reported highest stress×6 · Per case and level: peak von Mises, its cell position, mean within 4 mm.
- Reported critical directions×2 · Directions of the highest fine-mesh peak and largest displacement vs verifier's.
- Reported worst XZ load · Reported angle's combined X–Z peak vs worst over 0–180°; reported peak vs that angle's.
- Reported mesh change · 100 × (fine / coarse − 1) for max displacement and peak, X, Y, Z.
Two meshes within budget, a real coarse–fine pair, sound cells at the peak, results settle.
- Gauges measurable×6 · Per case and level: cells in each 15 mm gauge sphere.
- Cell budget×6 · Per case and level: mesh cell count.
- Fine mesh is finer×3 · Per case: fine has more cells and smaller median cell size.
- Valid cells at the peak×3 · Per case, fine mesh: min Jacobian ratio within 4 mm of the verifier's peak.
- Displacement settles×3 · Per case: coarse vs fine max displacement.
- Peak stress settles×3 · Per case: peak change coarse to fine.
Fine-mesh directions, displacements, stresses, peak location and worst load match the reference.
- Critical directions×2 · Direction of highest peak and of largest displacement.
- Largest displacement×3 · Per case vs reference (X 0.19247, Y 0.11700, Z 0.02929 mm).
- Gauge stresses×6 · Per case, volume-weighted mean von Mises per gauge (X: 26.44, 13.87 MPa).
- Gauge coverage×6 · Per case, cell volume counted per gauge (3,862 and 5,656 mm³).
- Peak stress×3 · Per case: max integration-point von Mises vs extrapolated ref (X 117.27, Y 77.69, Z 28.83 MPa).
- Mean stress near the peak×3 · Per case: mean within 4 mm of peak (X 44.83, Y 69.33, Z 8.73 MPa).
- Worst combined load · Max peak of 1000 (cos θ, 0, sin θ) N, θ 0–180°, from X and Z solves (ref 117.97 MPa at 6.15°).
- Peak location×3 · Per case: peak cell distance to nearest reference hotspot.
Sample Model Trials
- Loses 9 of 13 weight points on 2 of 3 categories (meshing and convergence, key results and findings).
- Loses 7 of 13 weight points on 1 of 3 categories (key results and findings).
Reference Agent Output Failed Checks