File size: 3,231 Bytes
5154c4e
3de3b50
5154c4e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
  "id": "single-software-execution--cli--ansys--task-08--windows",
  "snapshot": "ANSYS-2026R",
  "instruction": "Build and solve a coupled thermal-structural analysis model using ANSYS Mechanical APDL. To start ANSYS Workbench, run `C:\\Program Files\\ANSYS Inc\\v261\\ansys\\bin\\winx64\\ANSYS261.exe -g` (version/path may differ on your machine). At the start of the task, launch ANSYS Workbench with `C:\\Program Files\\ANSYS Inc\\v261\\Framework\\bin\\Win64\\RunWB2.exe`.\n\nPhysical problem: A straight steel bar is axially restrained and subjected to a uniform temperature increase. Coordinate system and geometry: - Use the global Cartesian coordinate system. - The bar length is along the X direction. - The bar occupies: - 0 ≤ X ≤ 100 mm - 0 ≤ Y ≤ 10 mm - 0 ≤ Z ≤ 10 mm - The left end face is X = 0. - The right end face is X = 100 mm. Model parameters: - Block size: 100 mm × 10 mm × 10 mm - Material: linear elastic steel with thermal expansion properties: - Young's modulus E = 210000 MPa - Poisson's ratio ν = 0.3 - Coefficient of thermal expansion α = 1.5e-5 /°C - Element type: SOLID185 - Mesh: global element size 5 mm Thermal condition: - Set the reference temperature for thermal strain to 20 °C. - Apply a uniform body temperature of 100 °C to the entire bar. Structural boundary conditions: - Restrain axial expansion by applying UX = 0 on both end faces: - X = 0 - X = 100 mm - Add only the minimum additional constraints required to prevent rigid-body motion in 3D space. For a solid model, this requires fixing translational degrees of freedom at strategically selected nodes on the same end face, for example: - At node (0, 0, 0): fix UY = 0 and UZ = 0. - At node (0, 10, 0): fix UZ = 0. - Do not fully constrain the lateral surfaces. Analysis type: - Static structural analysis with thermal strain. - The temperature field is applied as a uniform body load for thermal strain calculation. Save requirements: - Use C:\\Users\\user\\Desktop as the ANSYS working directory. - Save the database file as: C:\\Users\\user\\Desktop\\apdl_thermal_stress.db - Save the structural result file as: C:\\Users\\user\\Desktop\\apdl_thermal_stress.rst",
  "source": "https://github.com/ansys/pymapdl https://github.com/ansys/example-data",
  "config": [
    {
      "type": "upload_file",
      "parameters": {
        "files": []
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": [
    "ansys"
  ],
  "artifact_paths": [
    "C:\\Users\\user\\Desktop\\apdl_thermal_stress.db",
    "C:\\Users\\user\\Desktop\\apdl_thermal_stress.rst"
  ],
  "evaluator": {
    "postconfig": [
      {
        "type": "upload_file",
        "parameters": {
          "files": [
            {
              "local_path": "task-08/eval.py",
              "path": "C:\\Users\\user\\Desktop\\eval.py"
            }
          ]
        }
      }
    ],
    "func": "exact_match",
    "result": {
      "type": "vm_command_line",
      "command": "python C:\\Users\\user\\Desktop\\eval.py",
      "shell": "true"
    },
    "expected": {
      "type": "rule",
      "rules": {
        "expected": "True\n"
      }
    }
  },
  "proxy": false,
  "fixed_ip": false,
  "possibility_of_env_change": "low"
}