gravity#
- planestress.pre.library.gravity(units: str = 'MPa') float[source]#
Returns the gravitational acceleration with consistent units.
- Parameters:
units (str) – Units system to use. See below for options. Defaults to
"MPa".- Raises:
ValueError – If the value of
unitsis not in the list below.- Returns:
Acceleration due to gravity.
- Return type:
Units
The value for
unitsmay be one of the following:"MPa"- \(g = 9.81 \times 10^3 \textrm{ mm/s}^2\)"SI"- \(g = 9.81 \textrm{ m/s}^2\)