File size: 6,189 Bytes
ada03cc
 
 
 
 
 
 
 
 
 
 
 
 
 
fc5ffb7
 
 
ada03cc
 
 
 
 
fc5ffb7
 
 
ada03cc
 
 
 
 
fc5ffb7
 
 
ada03cc
 
 
 
fc5ffb7
 
ada03cc
 
 
 
fc5ffb7
 
ada03cc
 
 
 
fc5ffb7
 
ada03cc
 
 
 
fc5ffb7
 
ada03cc
 
 
 
fc5ffb7
 
ada03cc
 
 
 
fc5ffb7
 
ada03cc
 
 
 
fc5ffb7
 
ada03cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fc5ffb7
 
 
 
 
 
 
 
 
ada03cc
 
 
 
 
 
 
 
 
 
 
 
 
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
case_id: single_cylinder_engine
title: 单缸曲柄滑块发动机(含 2:1 正时齿轮)
crank_radius_mm: 25
rod_length_mm: 90
stroke_mm: 50
bore_mm: 10
module_mm: 3

parts:
  - id: frame
    extra_tools: []
    prompt: |
      创建发动机机体:在 front_plane 上画矩形,X 从 -50 到 50 mm,Y 从 -50 到 160 mm,向 +Z 拉伸 8 mm。
      在 (0,0) 开直径 10.4 mm 贯穿孔(主轴承)。原点在该孔轴线。不要抽壳。
    prompt_en: |
      Create the engine block: on front_plane draw a rectangle with X from -50 to 50 mm and Y from -50 to 160 mm, and extrude it 8 mm toward +Z.
      Cut a through hole of diameter 10.4 mm at (0,0) (main bearing). The origin is on the axis of this hole. Do not shell.
  - id: crank
    extra_tools: []
    prompt: |
      创建曲柄:在 front_plane 上画两端圆头的连杆外形,两孔中心距 25 mm,宽度 16 mm,
      两端各一个直径 10 mm 贯穿孔,向 +Z 拉伸 6 mm。原点在大端孔(曲轴孔)中心。
    prompt_en: |
      Create the crank: on front_plane draw a link outline with rounded ends, 25 mm between the two hole centers, 16 mm wide,
      with a through hole of diameter 10 mm at each end, and extrude it 6 mm toward +Z. The origin is at the center of the big-end hole (crankshaft hole).
  - id: rod
    extra_tools: []
    prompt: |
      创建连杆:两端圆头,两孔中心距 90 mm,宽度 14 mm,两端直径 10 mm 贯穿孔,向 +Z 拉伸 6 mm。
      原点在大端孔中心。
    prompt_en: |
      Create the connecting rod: rounded ends, 90 mm between the two hole centers, 14 mm wide, through holes of diameter 10 mm at both ends, extruded 6 mm toward +Z.
      The origin is at the center of the big-end hole.
  - id: piston
    extra_tools: []
    prompt: |
      创建活塞:轴线沿 Z,外径 24 mm,长 30 mm,中心贯穿孔直径 10 mm。从 Z=0 向 +Z 拉伸。
    prompt_en: |
      Create the piston: axis along Z, outer diameter 24 mm, length 30 mm, central through hole of diameter 10 mm. Extrude from Z=0 toward +Z.
  - id: pin
    extra_tools: []
    prompt: |
      创建销轴:直径 10 mm,长 40 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。
    prompt_en: |
      Create a pin: diameter 10 mm, length 40 mm, axis along Z, extruded from Z=0 toward +Z.
  - id: flywheel
    extra_tools: []
    prompt: |
      创建飞轮:外径 60 mm,厚 8 mm,中心孔直径 10 mm,轴线沿 Z。
    prompt_en: |
      Create the flywheel: outer diameter 60 mm, thickness 8 mm, central hole diameter 10 mm, axis along Z.
  - id: crank_gear
    extra_tools: [spur_gear]
    prompt: |
      创建渐开线直齿轮,模数 3 mm,齿数 16,压力角 30°,齿宽 10 mm,轴孔直径 10 mm,轴线沿 Z。优先 spur_gear。
    prompt_en: |
      Create an involute spur gear: module 3 mm, 16 teeth, pressure angle 30°, face width 10 mm, bore diameter 10 mm, axis along Z. Prefer spur_gear.
  - id: cam_gear
    extra_tools: [spur_gear]
    prompt: |
      创建渐开线直齿轮,模数 3 mm,齿数 32,压力角 30°,齿宽 10 mm,轴孔直径 10 mm,轴线沿 Z。优先 spur_gear。
    prompt_en: |
      Create an involute spur gear: module 3 mm, 32 teeth, pressure angle 30°, face width 10 mm, bore diameter 10 mm, axis along Z. Prefer spur_gear.
  - id: camshaft
    extra_tools: []
    prompt: |
      创建凸轮轴:直径 10 mm,长 50 mm,轴线沿 Z。
    prompt_en: |
      Create the camshaft: diameter 10 mm, length 50 mm, axis along Z.
  - id: cam
    extra_tools: []
    prompt: |
      创建偏心凸轮:外径 28 mm、厚 8 mm 的圆盘,中心孔直径 10 mm,孔心相对外圆圆心沿 +X 偏心 4 mm。轴线沿 Z。
    prompt_en: |
      Create the eccentric cam: a disk with outer diameter 28 mm and thickness 8 mm, central hole diameter 10 mm, with the hole center offset 4 mm along +X from the center of the outer circle. Axis along Z.

gold_roles:
  frame: frame
  crank: crank
  rod: rod
  piston: piston
  crank_shaft: pin
  crank_pin: pin
  piston_pin: pin
  flywheel: flywheel
  crank_gear: crank_gear
  cam_gear: cam_gear
  camshaft: camshaft
  cam: cam

assembly:
  prompt: |
    装配单缸曲柄滑块机构,并加上 2:1 正时齿轮。不要把插入坐标当作最终位姿。
    - frame 固定。主轴承孔在原点,活塞应沿 +Y 往复。
    - 曲轴销穿过机体主轴承孔与曲柄大端,曲柄可绕 Z 转动。
    - 曲柄销、连杆、活塞销组成曲柄滑块;活塞(或活塞销)只能沿机体 +Y 移动。
    - 飞轮、曲柄正时齿轮与曲柄 1:1 同向。
    - 16 齿曲柄齿轮与 32 齿凸轮齿轮外啮合(中心距 72 mm),凸轮轴和凸轮与凸轮齿轮 1:1 同向。
    - 曲柄转一圈,活塞行程应为 50 mm;凸轮轴反向半速。
    对曲轴做 check_motion(一整圈),确认无穿模后再保存。
  prompt_en: |
    Assemble a single-cylinder slider-crank mechanism with 2:1 timing gears. Do not treat the insertion coordinates as the final poses.
    - frame is fixed. The main bearing hole is at the origin; the piston should reciprocate along +Y.
    - The crankshaft pin passes through the main bearing hole of the block and the big end of the crank; the crank can rotate about Z.
    - The crank pin, connecting rod and wrist pin form the slider-crank; the piston (or wrist pin) can only move along +Y of the block.
    - The flywheel and the crank timing gear turn 1:1 with the crank, in the same direction.
    - The 16-tooth crank gear meshes externally with the 32-tooth cam gear (center distance 72 mm); the camshaft and cam turn 1:1 with the cam gear, in the same direction.
    - For one crank revolution the piston stroke should be 50 mm; the camshaft turns at half speed in the opposite direction.
    Run check_motion on the crankshaft (one full turn), confirm there is no interference, then save.

motion:
  driver: crank_shaft
  sweep_deg: 360
  frames: 13
  rpm: 10
  expect_stroke_mm: 50
  timing_ratio: 2.0
  timing_driven: camshaft
  timing_opposite: true
  expect_fixed: [frame]
  expect_moving: [crank, piston_pin, camshaft]
  max_interference: 0