Mastering Parametric Spur Gear Design in UGNX

As a comprehensive CAD/CAM/CAE system, Unigraphics NX (UG) is distinguished by its high reliability and offers a diverse set of design functionalities, making it a staple in the mechanical engineering field. Among the most common components in power transmission systems are involute spur gears. Leveraging UG’s powerful modeling features and expression capabilities, it becomes remarkably efficient to achieve a fully parametric design for cylindrical involute gear blanks. This article delves deeply into the methodology for precise modeling of standard spur gears, providing a robust framework for automated and adaptable design.

The fundamental concept of parametric design revolves around expressing a product’s geometric model through a set of constraints controlled by parameters. This approach allows for the generation of a family of similar parts by simply altering the values of a defined set of driving parameters. The core mechanisms are program-driven and dimension-driven methods. Program-driven design involves establishing the mathematical relationships between a model’s primary parameters and its other dimensions, encoding these relationships into a script or program. Subsequently, inputting a few key parameters can regenerate the entire model. Dimension-driven design, the cornerstone of parametric modeling, enables the geometry to update automatically when a dimension is changed, achieving a flexible and intelligent design workflow. In conventional drafting, dimensions are static annotations. Therefore, to achieve parametrics, one must first create a parameterized sketch where dimensions are defined as variables, which can then be driven to modify the geometry seamlessly.

Parametric Design of the Spur Gear

1. Establishing the Fundamental Parameters

The creation of any accurate spur gear model begins with its defining geometric parameters. For a standard involute spur gear, the following six primary parameters are essential. These must be declared as variables with initial values within the UG expression editor prior to any sketching or modeling.

Parameter Symbol (UG) Description Typical Value
z Number of Teeth 24, 30, etc.
m Module (mm) 2, 3, etc.
ak (or α) Pressure Angle (degrees) 20°
ha Addendum Coefficient 1.0
c Dedendum (Clearance) Coefficient 0.25
h (or B) Gear Face Width (mm) 20, 25, etc.

Since UG requires all variables to be predefined and does not natively support Greek letters or complex subscripts in expression names, we use simple alphanumeric combinations (e.g., ‘ak’ for pressure angle, ‘ha’ for addendum coefficient).

2. Mathematical Model and Derived Parameters

From the primary parameters, all other necessary geometric dimensions for the spur gear are derived using standard gear equations. These derived parameters are also defined as expressions in UG.

Derived Parameter (UG) Formula Description
d $$d = m \times z$$ Pitch Circle Diameter
da $$da = d + 2 \times ha \times m$$ Addendum Circle (Tip) Diameter
db $$db = d \times \cos(ak)$$ Base Circle Diameter
df $$df = d – 2 \times m \times (ha + c)$$ Dedendum Circle (Root) Diameter

The most critical element for defining the tooth profile of a spur gear is the involute curve. Its parametric equations, which must be implemented in UG’s “Law Curve” or “Expression Curve” tool, are:

$$x = \frac{db}{2} \times (\cos(\theta) + \theta \times \sin(\theta))$$

$$y = \frac{db}{2} \times (\sin(\theta) – \theta \times \cos(\theta))$$

where $\theta$ is the roll angle (in radians) and serves as the system variable (often ‘t’ in UG, ranging from 0 to a suitable upper limit). It’s crucial to ensure the pressure angle `ak` is converted to radians within the expression if necessary: $ak\_rad = ak \times \frac{\pi}{180}$.

3. Sketching the Gear Blank and Tooth Profile

With all parameters defined, the 2D layout begins on a datum plane (e.g., XC-YC). Using the sketch environment, the four key circles are drawn: the base circle (db), pitch circle (d), root circle (df), and tip circle (da). Dimensional constraints are applied, linking their diameters directly to the corresponding expression names (db, d, df, da). A geometric constraint ensures all circles are concentric.

Next, the involute curve is generated using the “Expression Curve” or “Law Curve” function, inputting the equations defined above. This creates the active tooth flank. A mirrored copy is created about the gear’s centerline (the line defining one side of a tooth space) to form the opposite flank of a single tooth. For a standard full-depth spur gear, the angular span of one tooth on the pitch circle is $\frac{360}{z}$ degrees.

4. Special Consideration: Low Tooth Count Spur Gears (z < 41)

A critical aspect of accurate spur gear modeling arises when the tooth count is relatively low. For $z < 41$, the base circle diameter (db) becomes larger than the root circle diameter (df). This results in the involute curve originating *inside* the root circle, meaning the curve from the tip circle does not extend down to meet the root circle, leaving an open profile. Two solutions exist:

  1. Create a second, extended involute curve to bridge the gap between the base circle and root circle. This method is geometrically precise but complex and requires careful filleting at the root.
  2. Use a straight-line segment to connect the endpoint of the usable involute (at the base circle) to the root circle. This is an accepted engineering approximation that introduces minimal error and greatly simplifies the sketch for parametric control.

This article adopts the second, more practical method for modeling such spur gears. In the sketch, this connecting line must be properly constrained: one endpoint is coincident with the endpoint of the involute curve (at its intersection with the base circle), the other endpoint is coincident with the root circle, and the line is tangent to the involute curve at their shared point. This ensures the transition is smooth and remains parametrically linked to the gear’s fundamental parameters.

Condition Tooth Profile Construction Parametric Constraint Strategy
z ≥ 41 Involute connects Tip circle to Root circle directly. Trim curves to form closed loop.
z < 41 Involute (Tip to Base circle) + Tangent Line (Base to Root circle). Coincidence constraints at endpoints, tangency constraint at involute endpoint.

5. Building the 3D Spur Gear Model

The 3D modeling process follows a logical sequence of feature operations:

  1. Create Gear Blank: Exit the sketch and use the “Extrude” command on the closed profile formed by the tip circle (or root circle) to create the initial cylindrical blank. The extrusion distance is set to the face width parameter `h`.
  2. Create a Single Tooth or Tooth Space: Use the closed 2D profile of a single tooth (formed by two involute segments, the tip arc, and the root arc/line) to create a protrusion (for a tooth) or a cut (for a tooth space). This is done via the “Extrude” command, selecting the “Boolean” operation as “Unite” (to add a tooth) or “Subtract” (to cut a space) from the main blank.
  3. Circular Pattern (Array): Use the “Instance Feature” (circular array) command on the single tooth (or tooth space) feature. The number of instances is the tooth count `z`, and the angular spacing is $360/z$ degrees, with the gear’s central axis (e.g., Z-axis) as the reference.
  4. Root Fillet (After Array): Apply fillets to the root of the tooth spaces to reduce stress concentration. The fillet radius is typically defined as $R_f = 0.38 \times m$. This fillet operation must be performed after the circular array. Applying a fillet to one tooth space before arraying may cause the pattern to fail or lose parametric associativity. When applied post-array, filleting one representative tooth space often automatically applies to all identical spaces.

6. Parameter Control and Design Iteration

The true power of this parametric model for the spur gear is realized in its controllability. Changing the gear’s geometry to create a different specification requires no remodeling, only parameter updates. This can be achieved through several methods in UG:

Method Procedure Advantage
Direct Expression Edit Open the Expressions dialog, locate parameters like `z`, `m`, `ak`, modify their values, and press OK. The entire 3D model updates automatically. Fastest and most direct.
Import/Export (*.exp file) Export all expressions to a text file (.exp). Edit the parameter values in an external text editor, then re-import the file into UG and update the model. Good for archiving and sharing parameter sets.
Spreadsheet Control Link UG expressions to an embedded spreadsheet (Excel). Change values in the spreadsheet cells and execute an update command to refresh the UG model. Excellent for managing complex sets of parameters and performing calculations.
Part Navigator Edit In the Part Navigator tree, find and edit the expression values directly within the feature history. Integrated and contextual within the modeling history.

For instance, by simply changing the tooth count `z` from 24 to 30 and updating the model, UG will regenerate a completely new, correctly proportioned 30-tooth spur gear, demonstrating the efficiency of the parametric design.

7. Critical Considerations and Troubleshooting

To ensure a robust and error-free parametric model for a spur gear, several key points must be observed:

  • Order of Operations: The involute curve(s) must be created *before* entering the sketch environment. Otherwise, they may not be selectable or visible within the sketch for use as reference geometry. If created later, their order in the Model History (Part Navigator) may need to be rearranged.
  • Fillet Timing: As emphasized, applying root fillets must be the final step, after the circular pattern feature. Fillet features often do not pattern reliably if applied beforehand.
  • Expression Consistency: All parameters in the expression list must have consistent units (e.g., all lengths in mm, angles in degrees). Inconsistent units or syntax errors in formulas will prevent regeneration. UG’s expression editor does not support direct entry of non-English comments; multilingual comments can be included by importing a prepared .exp file.
  • Sketch Trimming: Within the sketch environment, the “Quick Trim” tool may fail on complex curves like the imported involute. To trim these while preserving parametrics, it is better to exit the sketch and use the main menu’s “Edit Curve” -> “Trim Curve” function in the modeling space. Operations like “Extract Curve” break associativity and should be avoided for parametric features.

Mapping Mathematical Notation to UG Expressions

A clear understanding of how standard gear notation translates into UG variable names is vital for creating and debugging the model.

Mathematical/GD&T Symbol UG Expression Variable Name Example Value
$z$ z 24
$m$ m 3 mm
$\alpha$ ak 20 deg
$h_a^*$ ha 1.0
$c^*$ c 0.25
$d$ d =m*z
$d_a$ da =d+2*ha*m
$d_b$ db =d*cos(ak)
$d_f$ df =d-2*m*(ha+c)
$p$ (circular pitch) p =pi*m (optional)

Conclusion

By harnessing the advanced expression and formula capabilities within UGNX, engineers can transcend traditional, labor-intensive methods of spur gear modeling. The detailed workflow outlined here—from establishing fundamental parameters and deriving geometry through expressions, to constructing the involute profile with special handling for low tooth counts, and finally building and controlling the 3D model—enables a truly parametric and precise design process. This methodology ensures that any standard involute spur gear can be generated, modified, and iterated upon with minimal effort, simply by changing a few key numerical inputs. The resulting model is not just a static representation but an intelligent, associative digital prototype that forms a perfect foundation for subsequent engineering analysis (CAE), manufacturing planning (CAM), and integration into larger assemblies. This represents a significant leap in design efficiency, accuracy, and flexibility for the development of mechanical transmission systems.

Scroll to Top