Run an Algorithm: Difference between revisions

From Engineer-it
No edit summary
No edit summary
Line 12: Line 12:
==== For example, here's a 'run' of the algorithm for solving for the forces at joint B in the Nodal Analysis key example: ====
==== For example, here's a 'run' of the algorithm for solving for the forces at joint B in the Nodal Analysis key example: ====
{| class="wikitable"
{| class="wikitable"
|style="vertical-align:top;"
|+
|+
! colspan="2" |Isolate Joint B
! colspan="2" |Isolate Joint B

Revision as of 14:13, 25 December 2020


The term running an algorithm I use to mean doing a set of calculations:

drawio: algorithm_intro

What do you need to know to run an algorithm in an examination?

  1. You need to understand the meanings of all variables to an extent that you are able to assign correct values to them.
  2. You need to be able to write down the steps in the algorithm.
  3. You need to be able to run the algorithm.

For example, here's a 'run' of the algorithm for solving for the forces at joint B in the Nodal Analysis key example:

style="vertical-align:top;"
Isolate Joint B
Joint B diagram 2.png

Apply vertical equilibrium:

  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\textstyle \sum F_y = 0}
  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle 9\sin{30} + F_{BD}\sin{30}-3-F_{BC}\sin{30}=0}

Substitute for: Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\textstyle \sin{30} = 0.5}

  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle 9\times0.5+0.5F_{BD} - 3 - 0.5F_{BC}= - 3 - 0}
  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle 1.5 + 0.5F_{BD} - 0.5F_{BC} = 0}

Rearrange to find an expression for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle F_{BD}}

  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle 0.5F_{BD} = -1.5 + 0.5F_{BC}}
  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle F_{BD} =-3 + F_{BC}}

Apply horizontal equilbrium:

  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle \sum F_x =0}
  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle 9\cos{30}+F_{BD}\cos{30} + F_{BC}\cos{30}=0}

Divide each term by Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle \cos{30}} :

  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle 9+F_{BD}+F_{BC}=0}

Substitute Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle F_{BD} =-3 + F_{BC}} :

  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle 9+(-3+F_{BC})+F_{BC}=0}
  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle 6+2F_{BC}=0}
  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle F_{BC}=-3kN} (compression)

Solve for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle F_{BD}} :

  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle F_{BD}=-3+F_{BC}}
  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle F_{BD}=-3-3=6kN}

The steps in the algorithm are:

  1. Draw the free body diagram for the joint. The input variables are:
    • The 9 kN force in member AB that has been previously calculated
    • The 3 kN load on the joint
    • The geometry of the joint in terms of the angles between the members
  2. The output variables are: Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle F_{BD}} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle F_{BC}}
  3. Resolve the forces into the Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle x} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle y} directions.
  4. Write the equation of equilibrium for the Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle x} or the Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle y} direction.
  5. Use the rules of algebra to find an expression for one of the output variables (A) in terms of the other output variable (B).
  6. Write the equation of equilibrium for the other direction.
  7. Substitute the expression for variable A and solve for the value of variable B
  8. Back-substitute to get the value of variable A.

How do you practise so as to be able to do that?

  • I could start by working with examples, exercises, definitions and explanations until you have an understanding of the process. Practise using the algorithm.
  • Keep asking questions such as ‘What does that mean?’ ‘How do I do that?’
  • Then work on your memory. Memory should follow understanding.
  • Write down the variables and make sure that you know how to assign values to them.
  • Write out the algorithm. Make sure that you can do that from memory. Do not leave anything to the last minute. Few people can cram for understanding; both memorising facts and developing understanding need repetition.
  • That is the process that I used as a student. It got me good marks.