R12ofM

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Parametric Design
Introduced first in SolidGeometry 5.1, Creation date: 2022-02-07, Last change: 2025-09-15

returns the minimal dimensions of a link for a screw nut connection



See Also: SGofR12

Example Illustration

 missing image of R12ofM(M,w)

Syntax

[RMHL,SG]=R12ofM([M,w])

Input Parameter

M: Metric size of screw
w: wall dimension; default is 1.25

Output Parameter

RMHL: [Radius M-screw Height Length]
SG: optional solid geometry

Examples


R12=R12ofM(2.5,1.5)




Copyright 2022-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This function calculates the minimal dimensions of a link for a screw nut connection. It is part of the SolidGeometry library and was introduced in version 5.1.

Input Parameters

Output Results

Algorithm Steps

  1. Retrieve the metric size M and wall dimension w using the getfuncparams function. Defaults are 2.5 and 1.25, respectively.
  2. Call DIN985 with M to get the thread length TL.
  3. Calculate the minimum radius Rmin using the formula: ceil(dofn(6) * TL(3) / 2 + w).
  4. Calculate the minimum length Lmin as Rmin * 2 - w.
  5. Calculate the minimum height Hmin as ceil(TL(5) + 2 * w).
  6. Store the calculated values in RMHL as [Rmin M Hmin Lmin].
  7. Create a circular oval profile PL using PLcircleoval with radius Ro and length L.
  8. Generate the solid geometry SG using SGofCPLz with profile PL and height H.
  9. Set the bottom and front transformations of SG using SGTset with transformations TofPez.
  10. If the number of output arguments is zero or more than one, perform the following:
    • Design a DIN912DIN985 screw using SGdesignDIN912DIN985 with parameters [M H].
    • Subtract the designed screw from SG twice using SGsubtract with alignment transformations.
  11. If the number of output arguments is zero, plot the solid geometry using SGfigure and SGplotalpha.
Algorithm explaination created using ChatGPT on 2025-08-19 00:48. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21