1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-15 11:54:02 +02:00

open_bearing_theta() now derived from open_bearing_width().

This commit is contained in:
Chris
2023-07-22 17:34:22 +01:00
parent e61ce02414
commit e3cde64b61
7 changed files with 5 additions and 6 deletions

View File

@@ -1949,13 +1949,13 @@ LMnUU linear bearings.
| `bearing_groove_spacing(type)` | Spacing between grooves, outer to outer, ie includes the grooves themselves | | `bearing_groove_spacing(type)` | Spacing between grooves, outer to outer, ie includes the grooves themselves |
| `bearing_length(type)` | Total length | | `bearing_length(type)` | Total length |
| `bearing_rod_dia(type)` | Internal diameter | | `bearing_rod_dia(type)` | Internal diameter |
| `open_bearing_theta(type)` | For open bearings, the angle of the opening |
| `open_bearing_width(type)` | For open bearings, the width of the opening at the rod | | `open_bearing_width(type)` | For open bearings, the width of the opening at the rod |
### Functions ### Functions
| Function | Description | | Function | Description |
|:--- |:--- | |:--- |:--- |
| `bearing_radius(type)` | Outside radius | | `bearing_radius(type)` | Outside radius |
| `open_bearing_theta(type)` | For open bearings, the angle of the opening |
### Modules ### Modules
| Module | Description | | Module | Description |

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

@@ -37,8 +37,8 @@ function bearing_groove_length(type) = type[4]; //! Groove length
function bearing_groove_dia(type) = type[5]; //! Groove diameter function bearing_groove_dia(type) = type[5]; //! Groove diameter
function bearing_groove_spacing(type) = type[6]; //! Spacing between grooves, outer to outer, ie includes the grooves themselves function bearing_groove_spacing(type) = type[6]; //! Spacing between grooves, outer to outer, ie includes the grooves themselves
function open_bearing_theta(type) = type[7]; //! For open bearings, the angle of the opening function open_bearing_width(type) = type[7]; //! For open bearings, the width of the opening at the rod
function open_bearing_width(type) = type[8]; //! For open bearings, the width of the opening at the rod function open_bearing_theta(type) = 2 * asin(open_bearing_width(type) / bearing_rod_dia(type)); //! For open bearings, the angle of the opening
function bearing_radius(type) = bearing_dia(type) / 2; //! Outside radius function bearing_radius(type) = bearing_dia(type) / 2; //! Outside radius

View File

@@ -20,10 +20,10 @@
// //
// Linear bearings // Linear bearings
// //
// L od id gl gd gs theta, h1 // L od id gl gd gs h1
LM16UU = ["LM16UU", 37, 28, 16, 1.6, 27.0, 26.5]; LM16UU = ["LM16UU", 37, 28, 16, 1.6, 27.0, 26.5];
LM16LUU = ["LM16LUU", 70, 28, 16, 1.6, 27.0, 53.0]; LM16LUU = ["LM16LUU", 70, 28, 16, 1.6, 27.0, 53.0];
LM16UUOP = ["LM16UUOP", 37, 28, 16, 1.6, 27.0, 26.5, 80, 11]; LM16UUOP = ["LM16UUOP", 37, 28, 16, 1.6, 27.0, 26.5, 11];
LM12UU = ["LM12UU", 30, 21, 12, 1.3, 20.0, 23.0]; LM12UU = ["LM12UU", 30, 21, 12, 1.3, 20.0, 23.0];
LM12LUU = ["LM12LUU", 57, 21, 12, 1.3, 20.0, 46.0]; LM12LUU = ["LM12LUU", 57, 21, 12, 1.3, 20.0, 46.0];
LM10UU = ["LM10UU", 29, 19, 10, 1.3, 18.0, 22.0]; LM10UU = ["LM10UU", 29, 19, 10, 1.3, 18.0, 22.0];

View File

@@ -49,7 +49,6 @@ module sbr_rail(type , l) { //! Draw an SBR rail
S3L = type[10]; // length of that screw S3L = type[10]; // length of that screw
h1 = open_bearing_width(sbr_bearing(sbr_rail_carriage(type))); h1 = open_bearing_width(sbr_bearing(sbr_rail_carriage(type)));
theta = open_bearing_theta(sbr_bearing(sbr_rail_carriage(type)));
vitamin(str("sbr_rail(", d, ", ", l, "): SBR", d, " rail, length ", l, "mm")); vitamin(str("sbr_rail(", d, ", ", l, "): SBR", d, " rail, length ", l, "mm"));