case_id: beam_engine title: 蒸汽梁机 # 曲柄 20、连杆 110、半游梁 60 的曲柄摇杆,游梁另一端经活塞杆带活塞沿 Y 往复。 # 由 bench_cases.py 生成,改测例请改那里再运行 write。 parts: - id: be_frame extra_tools: [] prompt: | 创建机架板:在 front_plane 上画矩形,X 从 -90 到 90 mm,Y 从 -30 到 140 mm,向 +Z 拉伸 8 mm。 开贯穿孔:(60,0) 直径 10 mm,(0,120) 直径 6 mm。不要抽壳。 prompt_en: | Create the frame plate: on front_plane draw a rectangle with X from -90 to 90 mm and Y from -30 to 140 mm, and extrude it 8 mm toward +Z. Cut through holes: (60,0) diameter 10 mm, (0,120) diameter 6 mm. Do not shell. - id: be_shaft extra_tools: [] prompt: | 创建曲柄轴:直径 10 mm、长 24 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。 prompt_en: | Create the crank shaft: a cylinder 10 mm in diameter and 24 mm long, axis along Z, extruded from Z=0 toward +Z. - id: be_crank extra_tools: [] prompt: | 创建曲柄:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (20,0),向 +Z 拉伸 6 mm。 在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=20 处直径 6 mm。 prompt_en: | Create the crank: on front_plane draw a bar with rounded ends, 16 mm wide, with the end-arc centers at the origin and at (20,0), and extrude it 6 mm toward +Z. Cut through holes on the X axis: at X=0 diameter 10 mm, at X=20 diameter 6 mm. - id: be_pin12 extra_tools: [] prompt: | 创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。 prompt_en: | Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z. - id: be_conrod extra_tools: [] prompt: | 创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (110,0),向 +Z 拉伸 6 mm。 在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=110 处直径 6 mm。 prompt_en: | Create the link: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (110,0), and extrude it 6 mm toward +Z. Cut through holes on the X axis: at X=0 diameter 6 mm, at X=110 diameter 6 mm. - id: be_beam extra_tools: [] prompt: | 创建游梁:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (120,0),向 +Z 拉伸 6 mm。 在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=60 处直径 6 mm,X=120 处直径 6 mm。 prompt_en: | Create the walking beam: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (120,0), and extrude it 6 mm toward +Z. Cut through holes on the X axis: at X=0 diameter 6 mm, at X=60 diameter 6 mm, at X=120 diameter 6 mm. - id: be_pivot_pin extra_tools: [] prompt: | 创建游梁支销:直径 6 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。 prompt_en: | Create the beam pivot pin: a cylinder 6 mm in diameter and 26 mm long, axis along Z, extruded from Z=0 toward +Z. - id: be_piston_rod extra_tools: [] prompt: | 创建活塞杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (60,0),向 +Z 拉伸 6 mm。 在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=60 处直径 6 mm。 prompt_en: | Create the piston rod: on front_plane draw a bar with rounded ends, 10 mm wide, with the end-arc centers at the origin and at (60,0), and extrude it 6 mm toward +Z. Cut through holes on the X axis: at X=0 diameter 6 mm, at X=60 diameter 6 mm. - id: be_piston extra_tools: [] prompt: | 创建活塞:在 front_plane 上画矩形,X 从 -10 到 10 mm,Y 从 -12 到 12 mm,向 +Z 拉伸 6 mm。 开贯穿孔:(0,0) 直径 6 mm。不要抽壳。 prompt_en: | Create the piston: on front_plane draw a rectangle with X from -10 to 10 mm and Y from -12 to 12 mm, and extrude it 6 mm toward +Z. Cut through holes: (0,0) diameter 6 mm. Do not shell. gold_roles: frame: be_frame shaft: be_shaft crank: be_crank crank_pin: be_pin12 conrod: be_conrod conrod_pin: be_pin12 beam: be_beam pivot_pin: be_pivot_pin e_pin: be_pin12 piston_rod: be_piston_rod p_pin: be_pin12 piston: be_piston assembly: prompt: | 装配蒸汽梁机(曲柄—连杆—游梁—活塞杆—活塞)。不要把插入坐标当作最终位姿。所有转轴沿 Z;下面写的 z∈[a,b] 是零件装好后占的 Z 范围。 - frame 固定,z∈[0,8]。曲柄轴承孔 (60,0),游梁支孔 (0,120)。 - shaft 穿过 (60,0) 孔绕 Z 转动(z∈[-10,14]);crank 的 10 mm 孔固定在 shaft 上(z∈[8,14])。 - crank_pin 固定在 crank 的 6 mm 孔(z∈[8,20]);conrod 一端绕 crank_pin 转(z∈[14,20]); conrod_pin 固定在 conrod 另一端孔(z∈[14,26])。 - pivot_pin 固定在 frame 的 (0,120) 孔(z∈[0,26]);beam 的 X=60 孔套在 pivot_pin 上转动(z∈[20,26]), beam 的 X=120 孔套在 conrod_pin 上(这一端在 +X 侧,靠曲柄),X=0 端在 -X 侧。 - e_pin 固定在 piston_rod 的原点孔(z∈[14,26]),插在 beam 的 X=0 孔里转动;piston_rod 在 z∈[14,20], 另一端孔里固定 p_pin(z∈[8,20]);piston 的孔套在 p_pin 上转动(z∈[8,14])。 - piston 只能沿 frame 的 Y 方向移动,孔心始终在 x=-60 的直线上,位于游梁下方。 - 曲柄整周转动时游梁摆动约 40.0°,活塞行程约 40.9 mm。 对 shaft 做 check_motion(一整圈),确认无穿模后再保存。 prompt_en: | Assemble a steam beam engine (crank—connecting rod—walking beam—piston rod—piston). Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled. - frame is fixed, z∈[0,8]. Crank bearing hole at (60,0), beam pivot hole at (0,120). - shaft passes through the (60,0) hole and rotates about Z (z∈[-10,14]); the 10 mm hole of crank is fixed on shaft (z∈[8,14]). - crank_pin is fixed in the 6 mm hole of crank (z∈[8,20]); one end of conrod rotates about crank_pin (z∈[14,20]); conrod_pin is fixed in the hole at the other end of conrod (z∈[14,26]). - pivot_pin is fixed in the (0,120) hole of frame (z∈[0,26]); the X=60 hole of beam fits on pivot_pin and rotates (z∈[20,26]), the X=120 hole of beam fits on conrod_pin (this end is on the +X side, near the crank), and the X=0 end is on the -X side. - e_pin is fixed in the origin hole of piston_rod (z∈[14,26]) and rotates in the X=0 hole of beam; piston_rod is at z∈[14,20], p_pin is fixed in its other hole (z∈[8,20]); the hole of piston fits on p_pin and rotates (z∈[8,14]). - piston can only move along the Y direction of frame; its hole center always stays on the line x=-60, below the walking beam. - Over a full crank revolution the walking beam swings by about 40.0° and the piston stroke is about 40.9 mm. Run check_motion on shaft (one full turn), confirm there is no interference, then save. motion: driver: shaft sweep_deg: 360 frames: 13 rpm: 10 expect_fixed: - frame expect_moving: - crank - conrod - beam - piston swings: - role: beam deg: 40.01 strokes: - role: piston axis: y mm: 40.94 max_interference: 0