| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  | --- | 
					
						
							|  |  |  | source: kcl-lib/src/simulation_tests.rs | 
					
						
							|  |  |  | description: Result of parsing axial-fan.kcl | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   "Ok": { | 
					
						
							|  |  |  |     "body": [ | 
					
						
							|  |  |  |       { | 
					
						
							|  |  |  |         "commentStart": 0, | 
					
						
							|  |  |  |         "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |         "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |         "path": { | 
					
						
							|  |  |  |           "type": "Kcl", | 
					
						
							|  |  |  |           "filename": "fan-housing.kcl" | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "preComments": [ | 
					
						
							|  |  |  |           "// Import all parts into assembly file" | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         "selector": { | 
					
						
							|  |  |  |           "type": "None", | 
					
						
							|  |  |  |           "alias": { | 
					
						
							|  |  |  |             "commentStart": 0, | 
					
						
							|  |  |  |             "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |             "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |             "name": "fanHousing", | 
					
						
							|  |  |  |             "start": 0, | 
					
						
							|  |  |  |             "type": "Identifier" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "start": 0, | 
					
						
							|  |  |  |         "type": "ImportStatement", | 
					
						
							|  |  |  |         "type": "ImportStatement" | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       { | 
					
						
							|  |  |  |         "commentStart": 0, | 
					
						
							|  |  |  |         "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |         "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |         "path": { | 
					
						
							|  |  |  |           "type": "Kcl", | 
					
						
							|  |  |  |           "filename": "motor.kcl" | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "selector": { | 
					
						
							|  |  |  |           "type": "None", | 
					
						
							|  |  |  |           "alias": { | 
					
						
							|  |  |  |             "commentStart": 0, | 
					
						
							|  |  |  |             "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |             "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |             "name": "motor", | 
					
						
							|  |  |  |             "start": 0, | 
					
						
							|  |  |  |             "type": "Identifier" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "start": 0, | 
					
						
							|  |  |  |         "type": "ImportStatement", | 
					
						
							|  |  |  |         "type": "ImportStatement" | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       { | 
					
						
							|  |  |  |         "commentStart": 0, | 
					
						
							|  |  |  |         "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |         "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |         "path": { | 
					
						
							|  |  |  |           "type": "Kcl", | 
					
						
							|  |  |  |           "filename": "fan.kcl" | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "selector": { | 
					
						
							|  |  |  |           "type": "None", | 
					
						
							|  |  |  |           "alias": { | 
					
						
							|  |  |  |             "commentStart": 0, | 
					
						
							|  |  |  |             "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |             "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |             "name": "fan", | 
					
						
							|  |  |  |             "start": 0, | 
					
						
							|  |  |  |             "type": "Identifier" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "start": 0, | 
					
						
							|  |  |  |         "type": "ImportStatement", | 
					
						
							|  |  |  |         "type": "ImportStatement" | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       { | 
					
						
							|  |  |  |         "commentStart": 0, | 
					
						
							|  |  |  |         "end": 0, | 
					
						
							|  |  |  |         "expression": { | 
					
						
							|  |  |  |           "abs_path": false, | 
					
						
							|  |  |  |           "commentStart": 0, | 
					
						
							|  |  |  |           "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |           "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |           "name": { | 
					
						
							|  |  |  |             "commentStart": 0, | 
					
						
							|  |  |  |             "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |             "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |             "name": "fanHousing", | 
					
						
							|  |  |  |             "start": 0, | 
					
						
							|  |  |  |             "type": "Identifier" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "path": [], | 
					
						
							|  |  |  |           "start": 0, | 
					
						
							|  |  |  |           "type": "Name", | 
					
						
							|  |  |  |           "type": "Name" | 
					
						
							|  |  |  |         }, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |         "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |         "preComments": [ | 
					
						
							|  |  |  |           "", | 
					
						
							|  |  |  |           "", | 
					
						
							|  |  |  |           "// Produce the model for each imported part" | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         "start": 0, | 
					
						
							|  |  |  |         "type": "ExpressionStatement", | 
					
						
							|  |  |  |         "type": "ExpressionStatement" | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       { | 
					
						
							|  |  |  |         "commentStart": 0, | 
					
						
							|  |  |  |         "end": 0, | 
					
						
							|  |  |  |         "expression": { | 
					
						
							|  |  |  |           "abs_path": false, | 
					
						
							|  |  |  |           "commentStart": 0, | 
					
						
							|  |  |  |           "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |           "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |           "name": { | 
					
						
							|  |  |  |             "commentStart": 0, | 
					
						
							|  |  |  |             "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |             "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |             "name": "motor", | 
					
						
							|  |  |  |             "start": 0, | 
					
						
							|  |  |  |             "type": "Identifier" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "path": [], | 
					
						
							|  |  |  |           "start": 0, | 
					
						
							|  |  |  |           "type": "Name", | 
					
						
							|  |  |  |           "type": "Name" | 
					
						
							|  |  |  |         }, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |         "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |         "start": 0, | 
					
						
							|  |  |  |         "type": "ExpressionStatement", | 
					
						
							|  |  |  |         "type": "ExpressionStatement" | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       { | 
					
						
							|  |  |  |         "commentStart": 0, | 
					
						
							|  |  |  |         "end": 0, | 
					
						
							|  |  |  |         "expression": { | 
					
						
							|  |  |  |           "abs_path": false, | 
					
						
							|  |  |  |           "commentStart": 0, | 
					
						
							|  |  |  |           "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |           "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |           "name": { | 
					
						
							|  |  |  |             "commentStart": 0, | 
					
						
							|  |  |  |             "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |             "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |             "name": "fan", | 
					
						
							|  |  |  |             "start": 0, | 
					
						
							|  |  |  |             "type": "Identifier" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "path": [], | 
					
						
							|  |  |  |           "start": 0, | 
					
						
							|  |  |  |           "type": "Name", | 
					
						
							|  |  |  |           "type": "Name" | 
					
						
							|  |  |  |         }, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |         "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |         "start": 0, | 
					
						
							|  |  |  |         "type": "ExpressionStatement", | 
					
						
							|  |  |  |         "type": "ExpressionStatement" | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  |     "commentStart": 0, | 
					
						
							|  |  |  |     "end": 0, | 
					
						
							|  |  |  |     "innerAttrs": [ | 
					
						
							|  |  |  |       { | 
					
						
							|  |  |  |         "commentStart": 0, | 
					
						
							|  |  |  |         "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |         "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |         "name": { | 
					
						
							|  |  |  |           "commentStart": 0, | 
					
						
							|  |  |  |           "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |           "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |           "name": "settings", | 
					
						
							|  |  |  |           "start": 0, | 
					
						
							|  |  |  |           "type": "Identifier" | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "preComments": [ | 
					
						
							|  |  |  |           "// PC Fan", | 
					
						
							|  |  |  |           "// A small axial fan, used to push or draw airflow over components to remove excess heat", | 
					
						
							|  |  |  |           "", | 
					
						
							|  |  |  |           "", | 
					
						
							|  |  |  |           "// Set units" | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         "properties": [ | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "commentStart": 0, | 
					
						
							|  |  |  |             "end": 0, | 
					
						
							|  |  |  |             "key": { | 
					
						
							|  |  |  |               "commentStart": 0, | 
					
						
							|  |  |  |               "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |               "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |               "name": "defaultLengthUnit", | 
					
						
							|  |  |  |               "start": 0, | 
					
						
							|  |  |  |               "type": "Identifier" | 
					
						
							|  |  |  |             }, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |             "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |             "start": 0, | 
					
						
							|  |  |  |             "type": "ObjectProperty", | 
					
						
							|  |  |  |             "value": { | 
					
						
							|  |  |  |               "abs_path": false, | 
					
						
							|  |  |  |               "commentStart": 0, | 
					
						
							|  |  |  |               "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |               "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |               "name": { | 
					
						
							|  |  |  |                 "commentStart": 0, | 
					
						
							|  |  |  |                 "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |                 "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |                 "name": "mm", | 
					
						
							|  |  |  |                 "start": 0, | 
					
						
							|  |  |  |                 "type": "Identifier" | 
					
						
							|  |  |  |               }, | 
					
						
							|  |  |  |               "path": [], | 
					
						
							|  |  |  |               "start": 0, | 
					
						
							|  |  |  |               "type": "Name", | 
					
						
							|  |  |  |               "type": "Name" | 
					
						
							|  |  |  |             } | 
					
						
							| 
									
										
										
										
											2025-05-06 08:44:03 +12:00
										 |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "commentStart": 0, | 
					
						
							|  |  |  |             "end": 0, | 
					
						
							|  |  |  |             "key": { | 
					
						
							|  |  |  |               "commentStart": 0, | 
					
						
							|  |  |  |               "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |               "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-05-06 08:44:03 +12:00
										 |  |  |               "name": "kclVersion", | 
					
						
							|  |  |  |               "start": 0, | 
					
						
							|  |  |  |               "type": "Identifier" | 
					
						
							|  |  |  |             }, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |             "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-05-06 08:44:03 +12:00
										 |  |  |             "start": 0, | 
					
						
							|  |  |  |             "type": "ObjectProperty", | 
					
						
							|  |  |  |             "value": { | 
					
						
							|  |  |  |               "commentStart": 0, | 
					
						
							|  |  |  |               "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |               "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-05-06 08:44:03 +12:00
										 |  |  |               "raw": "1.0", | 
					
						
							|  |  |  |               "start": 0, | 
					
						
							|  |  |  |               "type": "Literal", | 
					
						
							|  |  |  |               "type": "Literal", | 
					
						
							|  |  |  |               "value": { | 
					
						
							|  |  |  |                 "value": 1.0, | 
					
						
							|  |  |  |                 "suffix": "None" | 
					
						
							|  |  |  |               } | 
					
						
							|  |  |  |             } | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |           } | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         "start": 0, | 
					
						
							|  |  |  |         "type": "Annotation" | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |     "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |     "nonCodeMeta": { | 
					
						
							|  |  |  |       "nonCodeNodes": {}, | 
					
						
							|  |  |  |       "startNodes": [ | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |           "commentStart": 0, | 
					
						
							|  |  |  |           "end": 0, | 
					
						
							| 
									
										
										
										
											2025-06-24 14:38:43 -04:00
										 |  |  |           "moduleId": 0, | 
					
						
							| 
									
										
										
										
											2025-04-17 10:46:56 -07:00
										 |  |  |           "start": 0, | 
					
						
							|  |  |  |           "type": "NonCodeNode", | 
					
						
							|  |  |  |           "value": { | 
					
						
							|  |  |  |             "type": "newLine" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       ] | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     "start": 0 | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } |