In the realm of modern mechanical design, the evolution of CAD and CAE technologies has fundamentally shifted how engineers conceive and develop components. Among the most transformative methodologies is parametric modeling. This approach defines a geometric model not by its static dimensions, but by a set of parameters, mathematical equations, and geometric constraints. The core idea is to capture the design intent and the functional relationships between features, resulting in a model that is inherently flexible. For standardized, serialized, or variant-driven products—like gear systems—parametric modeling is indispensable. By simply altering key parameter values, an entirely new, valid three-dimensional model can be automatically regenerated, eliminating countless hours of repetitive remodeling. This capability significantly accelerates the design cycle, facilitates rapid prototyping and simulation, and drastically reduces costs associated with design iterations. This article delves into the practical application of this powerful technique within the Siemens UG NX environment, focusing on the quintessential mechanical element: the involute spur gear. We will construct a fully parametric model that can be dynamically updated to represent any spur and pinion gear pair within a defined specification range.

Siemens UG NX stands as a premier high-end CAD/CAE/CAM software suite, widely adopted in manufacturing industries for its robust capabilities spanning from initial concept design through detailed engineering, simulation, and manufacturing preparation. Its parametric modeling foundation, built around a feature-based, dimension-driven architecture, is perfectly suited for implementing the type of intelligent model we require. The process involves defining “Expressions”—user-named variables that control dimensions—and using them to drive sketches, features, and most critically, complex curves defined by law-based functions. This is essential for modeling the involute tooth profile of a spur gear, a curve not available as a standard primitive within the software.
Fundamentals of Involute Spur Gear Geometry
To create a parametric model, one must first establish the mathematical foundation. The correct and efficient meshing of a spur and pinion gear set relies on the properties of the involute curve. An involute can be visualized as the path traced by the end of a taut string as it is unwound from a base circle. This geometry ensures a constant angular velocity ratio between mating gears, which is the fundamental requirement for smooth power transmission.
The parametric equations for an involute curve, derived from its generation principle, are as follows, where the parameter is the roll angle $\theta$:
$$
\begin{aligned}
x(\theta) &= r_b \cdot (\cos\theta + \theta \cdot \sin\theta) \\
y(\theta) &= r_b \cdot (\sin\theta – \theta \cdot \cos\theta)
\end{aligned}
$$
Here, $r_b$ is the radius of the base circle. The relationship between the base circle and the standard gear design parameters is critical. The primary parameters defining a standard spur or pinion gear are:
- Module (m): The ratio of the pitch diameter to the number of teeth. It effectively defines the tooth size. Gears in mesh must have the same module.
- Number of Teeth (z): The count of teeth on the gear. The smaller gear in a pair is typically called the pinion.
- Pressure Angle ($\alpha$): The angle between the line of action and the line tangent to the pitch circles. Common values are 20° or 14.5°.
From these, we can derive all other necessary geometric dimensions for modeling. The following table summarizes the key formulas:
| Parameter | Symbol | Formula |
|---|---|---|
| Pitch Diameter | $d$ | $d = m \cdot z$ |
| Addendum (Tooth Tip Height) | $h_a$ | $h_a = m$ (for standard full-depth teeth) |
| Dedendum (Tooth Root Height) | $h_f$ | $h_f = 1.25m$ (common clearance) |
| Tip Diameter | $d_a$ | $d_a = d + 2h_a = m(z + 2)$ |
| Root Diameter | $d_f$ | $d_f = d – 2h_f = m(z – 2.5)$ |
| Base Circle Diameter | $d_b$ | $d_b = d \cdot \cos\alpha = m \cdot z \cdot \cos\alpha$ |
Note that the face width ($b$) is often set as a multiple of the module (e.g., $b = 10m$). The base circle radius $r_b$ used in the involute equation is simply half of $d_b$. For a proper spur and pinion gear assembly, both gears must share the same module $m$ and pressure angle $\alpha$.
Establishing the Parametric Framework in UG NX
The first and most crucial step in UG NX is to define the driving parameters using the Expressions dialog. This is where we create the named variables that will control our entire model. We start with the primary independent parameters, then create dependent expressions using the formulas from the table above. It is good practice to use descriptive names and consistent units (e.g., mm).
| Expression Name | Formula / Value | Description |
|---|---|---|
| m | 2 [mm] | Module (Primary Driver) |
| z | 25 | Number of Teeth (Primary Driver) |
| alpha | 20 [deg] | Pressure Angle (Primary Driver) |
| face_width | 10*m | Width of the Gear |
| d | m*z | Pitch Diameter |
| r | d/2 | Pitch Radius |
| d_b | d*cos(alpha) | Base Circle Diameter |
| r_b | d_b/2 | Base Circle Radius |
| d_a | d + 2*m | Tip Diameter |
| r_a | d_a/2 | Tip Radius |
| d_f | d – 2.5*m | Root Diameter |
| r_f | d_f/2 | Root Radius |
| t | 0 [unitless] | Law Curve Parameter (0 to 1) |
With these expressions defined, any change to `m`, `z`, or `alpha` will propagate automatically through all dependent expressions, ready to update the geometry.
Creating the Parametric Involute Curve
Since the involute is not a standard curve, we use the Law Curve function. This tool allows us to define the X, Y, and Z coordinates of a curve as functions of a single parameter, which we defined as `t` (varying from 0 to 1). We must adapt our involute equations to use `t`. We define a roll angle range, for example, from 0 to 60 degrees (converted to radians), and map `t` to this range: $\theta = t \cdot \frac{\pi}{3}$.
Therefore, the UG NX law definitions for the involute curve become:
$$
\begin{aligned}
\text{X Law:} \quad & X(t) = r\_b * (\cos(\theta) + \theta * \sin(\theta)) \\
\text{Y Law:} \quad & Y(t) = r\_b * (\sin(\theta) – \theta * \cos(\theta)) \\
\text{Z Law:} \quad & Z(t) = 0
\end{aligned}
$$
Where $\theta = t * 60*pi()/180$ (for a 60° sweep). Using the Law Curve command and specifying “By Equation” for X and Y, we input these formulas. UG NX will create the precise involute segment, which is fully associated with the expressions `r_b` and `t`. This is the cornerstone of our parametric spur and pinion gear tooth profile.
Building the Complete Parametric Gear Model
With the parametric involute curve created, we proceed to build the solid model step by step, ensuring every feature is linked to our expressions.
- Create Reference Circles: Sketch circles on the XY plane for the tip diameter (`d_a`), pitch diameter (`d`), root diameter (`d_f`), and base diameter (`d_b`). Use the expressions as dimensions. These circles serve as construction geometry.
- Trim the Involute: The generated law curve extends from the base circle outwards. We need to trim it at the tip circle (`d_a`) to define the active tooth flank. This is done using the Trim Curve command with the tip circle as the boundary.
- Create the Tooth Symmetry Line: The thickness of a tooth at the pitch circle is half the circular pitch. The circular pitch $p = \pi m$. Therefore, the tooth thickness at the pitch circle arc length is $p/2 = \pi m / 2$. The corresponding angle from the tooth centerline is $\text{angle} = (p/2) / r = (\pi m / 2) / (m z / 2) = \pi / z$ radians. Create a line from the origin, rotated by $\pi / z$ radians from the X-axis. Mirror the trimmed involute curve about this line to create the profile of one complete tooth space.
- Complete the Tooth Profile Sketch: Close the tooth profile by drawing lines along the root circle (`d_f`) between the mirrored involutes, and connect the tip arcs. This forms a closed loop representing the cross-section of one tooth gap.
- Extrude the Tooth Gap: Use the Extrude command on the closed profile, setting the limit to `face_width`. This creates a solid negative of one tooth space.
- Create the Gear Body: Create a cylinder with diameter `d_f` (root diameter) and height `face_width` aligned at the origin. This is the gear blank. Subtract the extruded tooth gap from this cylinder.
- Circular Pattern: Use the Pattern Feature command to pattern the subtracted tooth gap feature around the Z-axis. The number of instances is equal to the number of teeth `z`, and the total angle is 360°. This completes the full set of teeth, creating the core spur gear geometry.
- Add Hub and Web Features: Additional features like a hub, bore, keyway, and lightening webs can be added parametrically. For example, the bore diameter could be defined as an expression `bore_dia`, and the web thickness as `0.15 * d_a`. All sketches for these features should reference existing geometry (like the root circle) or expressions to maintain associativity.
At this point, a fully parametric model of a spur gear is complete. The entire geometry—from the subtle curve of the involute flank to the diameter of the bore—is controlled by the initial set of expressions. To model a mating pinion gear, one would simply create a new part file, link or recreate the same expression set, change the number of teeth `z` to a smaller value (e.g., from 25 to 15), and regenerate the model. The system will automatically produce a geometrically correct, meshing spur and pinion gear pair.
Managing and Updating the Model
The power of this parametric approach is realized in the modification phase. All driving and dependent parameters are visible and editable in the Expressions dialog or the Part Navigator under “User Expressions”. To change the gear design, an engineer does not need to manually redraw anything. For instance:
- To increase capacity: Change `m` from 2 to 3, and `face_width` (which is `10*m`) will auto-update to 30. The entire gear will grow proportionally and robustly.
- To change the speed ratio: In the pinion gear part, change its tooth count `z` from 15 to 10. The model will correctly recalculate all diameters and regenerate a smaller, valid pinion.
- To adjust fit: Change the `bore_dia` expression, and the central hole feature will update automatically.
This seamless update capability is invaluable for conducting “what-if” analyses, optimizing designs through simulation loops, and rapidly generating entire families of spur and pinion gears for different product variants from a single master model.
Design Considerations and Applications
While the model described creates a standard full-depth gear, real-world design often requires modifications. The parametric framework easily accommodates these. For example, profile shift (or addendum modification) is often applied to pinion gears with low tooth counts to avoid undercutting and improve strength. This can be incorporated by adding a profile shift coefficient `x` as a new primary expression and modifying the tip and root diameter formulas accordingly:
$$
\begin{aligned}
d_a &= m \cdot z + 2m(1 + x) \\
d_f &= m \cdot z – 2m(1.25 – x)
\end{aligned}
$$
Similarly, formulas for calculating contact ratio, a critical metric for smooth operation of a spur and pinion gear set, can be embedded as informational expressions to provide immediate feedback to the designer during parameter changes. The contact ratio $C_r$ can be approximated by:
$$
C_r \approx \frac{\sqrt{r_{a1}^2 – r_{b1}^2} + \sqrt{r_{a2}^2 – r_{b2}^2} – C \sin\alpha}{p_b}
$$
where $C$ is the center distance, $p_b$ is the base pitch, and subscripts 1 and 2 refer to the spur and pinion gear, respectively. Ensuring $C_r > 1.2$ through parameter adjustment guarantees continuous, smooth power transmission.
The applications of such a parametric spur gear model are extensive. It serves as the foundational geometry for detailed Finite Element Analysis (FEA) to study stress concentrations and tooth bending fatigue. It can be used directly in Computational Fluid Dynamics (CFD) to analyze oil flow and lubrication in gearboxes. Most directly, the solid model is ready for use in UG NX’s CAM module to generate toolpaths for CNC machining, wire EDM, or 3D printing. The associativity ensures that any design change automatically flows through to simulation and manufacturing data, maintaining consistency and integrity across the entire product development process.
Conclusion
Parametric modeling represents a paradigm shift from static drafting to intelligent, rules-based design. Implementing this methodology for fundamental components like the involute spur gear within a powerful environment like Siemens UG NX unlocks tremendous efficiencies. The process—centered on defining master parameters, deriving dependent relationships, and constructing fully associative geometry—ensures that models are not just representations of a single instance, but flexible templates for an entire product family. The ability to instantly generate a perfectly meshing spur and pinion gear pair for any required module, tooth count, and pressure angle by editing a few key values is a compelling advantage. It facilitates optimization, reduces errors, and dramatically shortens the timeline from concept to production. As mechanical systems grow more complex and the demand for customization increases, mastering such parametric techniques becomes not just beneficial, but essential for modern engineering practice.
