Including Tolerance in Mathcad Calculations
by Anji Seberino
|
Sometimes it is necessary to incorporate tolerance into calculations such that the results include maximum, minimum, and nominal values. Often, physical components and device properties do not deliver their exact, nominal values. The sections that follow provide guidance on how to set up a tolerance function in Mathcad and include the defined tolerance in subsequent calculations so that the uncertainty introduced by the component can be considered as part of the design or analysis process. This article demonstrates the concept of using tolerance within Mathcad calculations with a simple RL circuit example. |
|
Setting Up a Tolerance Function |
|
To create a tolerance function, use the +/- operator on the Custom Characters toolbar. The function has two arguments. The first argument is the nominal value, and the second argument is the tolerance. This tolerance function creates a 3-element vector, where the second element of the vector stores the nominal value, and the first and third elements store the maximum and minimum values, respectively. |
|
first argument below is the nominal value
second argument below is the tolerance |
|
Example: Simple First Order RL Circuit Response |
|
Consider the case of a first order RL circuit.
This circuit has two resistors in parallel with each other, which are also in parallel with a set of parallel inductors. Using the tolerances specified for the components, calculate the equivalent inductance, equivalent resistance, and the voltage drop across the components given an initial current of 12 Amps. |
|
First, define the nominal component values: |
|
Suppose you are working with 5% resistors and 10% inductors. Redefine the components to include these tolerances so that you have a maximum, minimum, and nominal value for each component. These three values (max, min, nom) are stored in a vector where the first element represents the maximum value, the second element represents the nominal value, and the third element represents the minimum value for the given component. |
|
Now calculate the equivalent resistance and equivalent inductance including the tolerances you imposed on the components. Just as the components are now represented by 3 element vectors, Req and Leq will also be 3-element vectors. |
|
Next, calculate the voltage drop across Req and Leq. Because the equivalent resistance can actually assume the high value (max), the low value (min), or any value in between the high and low values, define a range variable to use in the formula for calculating the voltage drop v(t). The range variable is used to define Req values spanning the tolerance range with a 1Ω step size. |
|
Using an initial current of 12 amps, define the current through Req (and thus also through Leq)as a function of time. |
|
Multiplying the time-dependent current by the equivalent resistance gives the voltage drop across Req and Leq. However, you want the voltage calculation to include the tolerances of the resistors, so create a function to do this calculation. The function is dependent on time and resistance because the current is time-dependent and the resistance can vary from the min to the max. |
|
See below for plotted results. |
|
Write a function to calculate the maximum, minimum, and nominal voltage drops at a given time. So instead of calculating over the entire resistive range, calculate using the Req vector. |
|
Determine the initial energy stored by the inductance network while accounting for the tolerance on the inductors. |
|
And finally, calculate the maximum, minimum, and nominal power dissipated in the two resistors. |
|
From these calculations, you can determine what impact the component tolerances have on the voltage drop, energy stored in the inductors, and power dissipated in the resistors. By carrying tolerance through the calculations, you can assess whether or not the requirements would be satisfied if the electronic components measure at their maximum or minimum values. |
|
Assume you have a requirement on the maximum power dissipation: |
|
Using the high values from the power vectors for R1 and R2, the maximum possible total power dissipation is: |
|
And finally, perform a check against the requirement: |
|
The maximum power dissipation with the resistors' maximum values satisfies this requirement. |
[PRINTER FRIENDLY VERSION]
|