Beruflich Dokumente
Kultur Dokumente
EIGHT
The intersection of a column and a row is called a cell. Each This expression represents the angle between the
cell is referred to by a cell address, which consists of the connecting rod and the sliding plane for an in-line slider-
column and row that define the cell. Cell D3 is defined by the crank mechanism. It was presented as equation (4.3) in
fourth (D) column and the third row. The cursor can Chapter 4:
be moved among cells with either the keyboard (arrow keys)
u3 = sin-1 a sin u2 b
or a mouse. L2
(4.3)
The value of a spreadsheet lies in storing, manipulat- L3
ing, and displaying data contained in a cell. This data
commonly consists of either text, numbers, or formulas. The spreadsheet formula assumes that the following
The spreadsheet shown in Figure 8.2 has text entered into values have been entered:
cells A1, F1, and F2 and numbers entered into cells A2
through A24, G1, and G2.
䊏 θ2 in cell A2
Although subtle differences may exist in the syntax 䊏 L2 in cell G1
among the spreadsheet programs, the logic behind creating 䊏 L3 in cell G2
formulas is identical. The syntax given here is applicable to
Microsoft Excel. The user’s manual of another product It should be noted that as with most computer func-
should be consulted for the details on any differences in tions, any reference to angular values must be specified in
syntax. radians. Notice that A2, an angle in degrees, is multiplied
Entering a formula into a cell begins with an equal sign (=). by π/180 to convert it to radians. After using the inverse
The actual formula is then constructed using values, operators sine function, ASIN, the resulting value also is an angle in
(+, –, *, /), cell references (e.g., G2), and functions (e.g., SIN, radians. Therefore, it is converted back to degrees by multi-
AVERAGE, ATAN, and RADIANS). Formulas for kinematic plying by 180/π. Excel has predefined RADIANS and
analysis can get rather complex. As an example, a simple DEGREES functions that can be convenient in conversions.
formula can be placed in cell A8: Equation (4.3) can alternatively be inserted into a cell B2 of
a spreadsheet with:
= A7 + 10 (8.1)
= DEGREES(ASIN(G1 * SIN(RADIANS(A2))/G2)) (8.3)
Although the actual cell contents would contain this formula,
the spreadsheet would visually show the number 60 in cell If expression (8.1) were typed into A8 and expression
A8. The calculation would be automatically performed. For (8.2) or (8.3) were typed into B2, the resulting spreadsheet
another example, the following expression can be inserted would appear as depicted in Figure 8.3. It is important to
into cell B2: remember that as a cell containing input data is changed,
all results are updated. This allows design iterations to be
= ASIN(G1 * SIN(A2 * PI()/180)/G2) * 180/PI() (8.2) completed with ease.
FIGURE 8.2 Spreadsheet with text and numbers entered into cells.
Computer-Aided Mechanism Analysis 217
Another important feature of a spreadsheet is the copy Notice that the address of cell A2 has been automatically
and paste feature. The contents of a cell can be duplicated and adjusted to read “A3.” The connecting rod angle is calculated
placed into a new cell. The copy and paste feature eliminates for the crank angle specified in cell A3.
redundant input of equations into cells. To continue with an analysis of a mechanism, the
Cell references in a formula can be either relative or following formula can be typed into cell C2:
absolute. Relative references are automatically adjusted
when a copy of the cell is placed into a new cell. Consider the = 180 - (A2 + B2)
following formula entered in cell A8:
This formula, shown in Figure 8.4, calculates the interior
= A7 + 10 angle between the crank and connecting rod (equation 4.4):
The cell reference A7 is a relative reference to the cell directly g = 180° - (u2 + u3) (4.4)
above the cell that contains the formula, A8. If this equation
were copied and placed into cell A9, the new formula would Because the angles are simply added, and a function is not
become called, a radian equivalent is not required.
Also, the following formula can be typed into cell D2:
= A8 + 10
= SQRT(($G$1) ¿ 2 + ($G$2) ¿ 2 -
Again, the cell reference A8 is a relative one; therefore, the
spreadsheet would automatically adjust the formula. (2 * $G$1 * $G$2 * COS(C2 * PI()/180)))
An absolute address does not automatically adjust the This formula calculates the distance from the crank pivot to
cell reference after using the copy and paste feature. the slider pin joint (equation 4.5):
However, to specify an absolute reference, a dollar symbol
must be placed prior to the row and column. For example, L4 = 3L22 + L23 - 2(L2) (L3)cos g (4.5)
an absolute reference to cell G1 must appear as $G$1.
Consider expression (8.2) being placed into cell B2. To If these two formulas were typed into C2 and D2, and text
be most efficient, this formula should be slightly modified descriptions were typed into cells B1, C1, and D1, the
to read: resulting spreadsheet would appear as depicted in Figure 8.4.
Finally, because much care was taken with using absolute
= ASIN($G$1 * (SIN (A2 * PI()/180)/$ G$2)) * 180/PI()
and relative cell addresses in creating the formulas in B2, C2,
In this manner, only the angle in cell A2 is a relative address. and D2, they can be copied into the cells down their respec-
If the formula were copied to cell B3, the new formula would tive columns. The user’s manual should be consulted for the
become actual steps needed to copy the data into the remaining cells,
which is usually a simple two- or three-step procedure. The
= ASIN($G$1 * (SIN(A3 * PI()/180)/$G$2)) * 180PI() resulting spreadsheet is shown in Figure 8.5.