mechanicalStress static method

Pressure mechanicalStress(
  1. Force force,
  2. Area area
)

Calculates the stress from a Force applied over an Area.

Returns the stress as a Pressure quantity (in Pascals). Usage: final stress = EngineeringConstants.mechanicalStress(force, area);

Implementation

static Pressure mechanicalStress(Force force, Area area) {
  final F = force.inNewtons;
  final A = area.inSquareMeters;
  return Pressure(F / A, PressureUnit.pascal); // σ = F/A
}