返回数据集目录
任务型 RL终端任务英语

Terminal-Bench-Science

可复现的端到端科研计算任务

科学计算专家参考解法自动化测试
完整数据规模
500 任务
当前样例题目
4 项任务
样例文件数量
457
样例文件总体量
1.20 GB
题目与目录接口

在线预览仅展示题目与文件目录;完整原始样例包可登记后下载。

a17-tensor-memory

Recover a tensor constitutive memory law

Recover a tensor constitutive memory law

Recover an executable mechanical material law for A17, a simulated acrylic-like viscoelastic solid. The intended use is predicting forces and dimensional recovery during nonproportional finite deformation and imposed temperature changes. A fit to individual stress curves is insufficient: the result must carry material memory between calls, predict new combinations of loading directions and dwell times, and provide the tangent needed for force-controlled equilibrium solves.

The supplied experiments include five-mode small pulses, finite-amplitude excursions, changes of principal stretch direction, irregular multiaxial cycles, temperature ramps at fixed shape, and unloading/recovery. Independent relaxed-load measurements constrain the equilibrium response. The central scientific questions are where directional dependence enters the relationship, which memory structure the excitation resolves, and whether temperature can be represented by one common material clock. The observations do not specify an internal-variable formulation, a relaxation spectrum, or a nonlinear functional family.

All materials are installed under /opt/a17. Start with README.md, docs/experiments.md, docs/coordinates.md, and docs/interface.md. Numerical records are in data/; original publications in references/ provide relevant constitutive foundations. A17 records are numerical measurements, not measurements of a particular VHB tape grade, and published material coefficients are not A17 coefficients.

Use the following scientific premises. The body is homogeneous and incompressible; deformation and temperature are uniform and imposed, and inertia is absent. Over the requested domain, A17 is a smooth solid with recoverable viscoelastic memory. Plasticity, damage, electric loading, thermal expansion and self-heating are excluded. Each recorded history starts relaxed at zero deformation and its stated temperature. Memory thereafter must be propagated through every ramp, hold, reversal and temperature excursion. The supplied coordinates remove hydrostatic pressure and rigid-body rotation without prescribing constitutive symmetry in the material reference axes.

The input is a five-vector e of orthonormal trace-free right-Hencky strain coordinates, dimensionless, and temperature in °C. The output is its work-conjugate five-vector of generalized stresses in kPa. Reference-volume energy density is also in kPa, equal to kJ/m³. The coordinate document fixes the basis and conversion to nominal stress. Control histories are linear in e and temperature between the recorded control knots, irrespective of observation times. The requested operating domain is ||e||₂ <= 1.2, 5 <= temperature_C <= 60, strain-coordinate speeds up to 60 s⁻¹, and temperature ramps up to 4 K/s, with holds as long as 10,000 s. New histories can combine directions, rates and temperatures differently from the observations.

Deliver a compact constitutive model in /workspace/submission/material.py implementing the interface in docs/interface.md, with all fitted coefficients, trained arrays and necessary local code beside it. Its returned memory state must be explicit and serializable. The executable must supply generalized stress, mechanical free energy, internal dissipation rate, the temperature derivative of mechanical free energy at fixed internal state, and a consistent algorithmic tangent. It must work without refitting or reading experimental records during prediction. Formulation, inference method, regularization and integration method are your choices; at most 64 scalar material-memory coordinates may be retained. Explain the state variables and their scientific interpretation.

The recovered relationship must satisfy

s=∂eψ∣z,T,D=−∂zψ⋅z˙≥0, \mathbf s=\partial_{\mathbf e}\psi\big|_{\mathbf z,T},\qquad \mathcal D=-\partial_{\mathbf z}\psi\cdot\dot{\mathbf z}\geq0,

including all terms associated with nonlinear internal-variable maps. At changing temperature the mechanical identity is

D=s⋅e˙−ψ˙+∂Tψ∣e,zT˙. \mathcal D=\mathbf s\cdot\dot{\mathbf e}-\dot\psi +\partial_T\psi\big|_{\mathbf e,\mathbf z}\dot T.

Normalize mechanical free energy to zero in the relaxed undeformed state at every temperature. No caloric energy, heat capacity or heat-flow model is requested. Positivity of fitted decay times alone does not establish these energy identities.

Produce these results under /workspace/submission/:

  1. material.py and its fitted assets. Expose load_model() and the state initialization, frozen response and evolution methods specified in the interface document. The tangent must differentiate the implemented evolution over the entire interpolated interval with respect to its endpoint strain, holding the committed state, duration and endpoint temperature fixed. Predictions must be independent of unrelated callers, future protocol labels and how an identical linear control interval is partitioned, to the integration accuracy stated in your report.
  2. report.md and estimates.json. Describe the recovered energy, memory and kinetics, with equations sufficient to reproduce the relationship from the fitted assets. Substantiate conclusions about elastic versus kinetic direction dependence, strain dependence of memory, and common versus distinct thermal shifting. Distinguish identifiable response quantities from branch labels, latent-coordinate choices or unresolved parameter combinations. Include quantitative uncertainty for at least two interpretable response or parameter quantities and for the release experiment below. The JSON conventions are in docs/results.md.
  3. validation.csv. Report per-history predictive residuals on complete histories, including the supplied check histories, for the final relationship and at least two scientifically simpler competing formulations or restrictions. Make the calibration histories used for each comparison explicit. Establish the interpretation with observable differences, not only a parameter count. The supplied fit/check partition supports initial model selection; you may refit the final model on all records after preserving predictions from the selection stage. State whether you did so. Report numerical convergence and independent checks of the energy identity, state continuation and tangent. Use measured covariance when interpreting residual size.
  4. predictions/X01.npz through predictions/X06.npz. Predict the six new imposed histories in data/challenges/, on exactly their output_time_s grids. Supply the fields in docs/results.md. These trajectories combine operating points and histories absent from the corresponding calibration records. The scientific accuracy target is a generalized-stress vector RMSE of 1.0 kPa or less in each new history, with vector RMSE defined as the square root of the mean squared error over times and all five components. This target concerns the underlying mechanical response; supplied sensor noise is substantially smaller.
  5. predictions/release.npz. Apply release_preparation.npz, then solve the endpoint-force experiment in release_schedule.npz using your update and tangent. tools/run_release.py defines and executes the prescribed solve. Report the five-coordinate recovery path, its principal stretches, remaining stored energy, and uncertainty at 0.8, 100 and 1800 s after release begins. Explain what delayed recovery says about the recovered memory. Force equilibrium and a stable continuation of state are essential to this intended use.

The package includes readers, coordinate transforms, a generic history runner, an endpoint-force solver and an interface diagnostic. They contain no A17 material law. You may use or replace these tools while preserving the stated interpolation, force-control and result conventions. Python, NumPy, SciPy, CPU PyTorch, SymPy, Numba, pandas, scikit-learn and plotting tools are installed. Computation is offline, with four CPUs and 8 GiB of memory. Keep the deliverable self-contained; files outside /workspace/submission will not accompany the recovered material.

题目文件:a17-tensor-memory/instruction.md