Assignment 2

Important dates

Assigned24 May 2018 @ 19:24h
Due1 Jun 2018 @ 23:59h

Description

Define a C++ function to calculate the Critical Buckling Stress of a structural column.

In structural engineering, the Critical Buckling Stress for a column can be determined using the following equation in the Load and Resistance Factor Design method:

\[ F_{cr} = \begin{cases} (0.658) ^ {\lambda_c^2} F_y & \lambda_c \leq 1.5 \\ \frac{0.877}{\lambda_c^2} F_y & \lambda_c > 1.5 \end{cases} \]

in which $\lambda_c$ is the slenderness ratio, a measure of how slender the column is, and $F_y$ is the yield force at which the column’s material will fail. Define a C++ function to calculate the critical buckling stress of a column according to the following contract:

/**
 * Calculate the critical buckling stress of a column according to the
 * Load and Resistance Factor design method.
 *
 * @param   yieldForce     force at which the material will fail [Newtons]
 *                         @pre > 0
 * @param   slenderness    ratio of the column's length to a measure of its
 *                         width (radius of gyration of its cross-section)
 *                         [dimensionless] @pre > 0
 *
 * @returns the critical buckling stress as is used in the
 *          Load and Resistance Factor design method [Newtons]
 */
double criticalBucklingStress(double yieldForce, double slenderness);

Note: this was a question on a previous year’s second mid-term test.

Remember, assignments are individual work: you must complete the assignment yourself.