Utility to generate 3D printer G-code files for common nose cone shapes
This console mode utility accepts a JSON formatted parameters file and produces the resulting G-code as output which can be optionally written to a file or produced as output to the console.
ImpulseRocketry.NoseConeGenerator -p=paramtersFile -o=outputFile
| Argument | Description |
|---|---|
parametersFile |
JSON formatted parameters file |
outputFile |
Optional file to write G-code output to instead of writing to the console. |
The JSON formatted parameters file accepts the following parameters:
| Parameter | Description | Default Value |
|---|---|---|
| Shape | The name of the nose cone shape to generate as detailed below | Haack |
| ShapeParameter | The additional shape specific parameter where applicable | 0 |
| Diameter | The external diameter of the base of the nose cone | 26.6 mm |
| Ratio | The ratio of the height of the nose code to the base diameter | 5.5 |
| WallThickness | The thickness of the nose cone wall | 1 mm |
| BaseHeight | The height of the base cylinder | 5 mm |
| LayerHeight | The height of each layer of the print | 0.2 mm |
| Resolution | The length of each straight line segment that makes up the circumference of the nose cone | 0.6 mm |
| BedTemperature | Temperature of the 3D printer bed | 60 C |
| ExtruderTemperature | Temperature of the 3D printer extruder | 230 C |
| FilamentDiameter | The diameter of the filament | 1.75 mm |
| BuildPlateWidth | The width (max x coordinate) of the build plate | 220 mm |
| BuildPlateDepth | The depth (max y coordinate) of the build plate | 220 mm |
| Brim | The width of the brim to attach to the base. A skirt will be generate when this is set to zero | 0mm |
{
"shape": "PowerSeries",
"diameter": {
"value": 26.6,
"unit": "mm"
},
"ratio": 5,
"shapeParameter": 0.5
}
A simple cone shape defined by the formula:
Where shapeParameter is ignored for this shape.
Defined by the formula:
Where shapeParameter value.
| Haack Series Type |
|
|---|---|
| LD-Haack (Von Kármán) | |
| LV-Haack | |
| Tangent |
This is the segment of a circle aligned so that the rocket body is tangent to the curve of the nose cone at its base, and the base is on the radius of the circle.
Where shapeParameter is ignored for this shape.
Similar to the tangent ogive, except that the shape is defined by a parabola rather than a circle.
Where shapeParameter in the range $ 0 \leq K \leq 1 $
This shape is formed from one-half of an ellipse, with the major axis as the center line and the minor axis aligned to the base of the nose cone. The shape is defined by this formula:
Where shapeParameter is ignored.
Defined by the following formula:
Where shapeParameter in the range $ 0 \leq n \leq 1 $ which determines how blunt the tip is.
| Power Series Type |
|
|---|---|
| Cylinder | |
| Parabola | |
| Three Quarter | |
| Cone |