UnitDisplay

class concreteproperties.post.UnitDisplay(length: str, force: str, mass: str, radians: bool = True, length_factor: float = 1.0, force_factor: float = 1.0, mass_factor: float = 1.0)[source]

Bases: object

Class for displaying units in concreteproperties.

Variables:
  • length (str) – Length unit string

  • force (str) – Force unit string

  • mass (str) – Mass unit string

  • radians (bool) – If set to True, displays angles in radians, otherwise displays angles in degrees. Defaults to True.

  • length_factor (float) – Factor by which the length unit differs from the base units. Defaults to 1.0.

  • force_factor (float) – Factor by which the force unit differs from the base units. Defaults to 1.0.

  • mass_factor (float) – Factor by which the mass unit differs from the base units. Defaults to 1.0.

Methods

Attributes

angle_scale

Returns the angle scale.

angle_unit

Returns the angle unit string.

area_scale

Returns the area scale.

area_unit

Returns the area unit string.

flex_rig_scale

Returns the flexural rigidity scale.

flex_rig_unit

Returns the flexural rigidity unit string.

force_factor

force_scale

Returns the force scale.

force_unit

Returns the force unit string.

length_3_scale

Returns the length^3 scale.

length_3_unit

Returns the length^3 unit string.

length_4_scale

Returns the length^4 scale.

length_4_unit

Returns the length^4 unit string.

length_factor

length_scale

Returns the length scale.

length_unit

Returns the length unit string.

mass_factor

mass_per_length_scale

Returns the mass/length scale.

mass_per_length_unit

Returns the mass/length unit string.

mass_scale

Returns the mass scale.

mass_unit

Returns the mass unit string.

moment_scale

Returns the moment scale.

moment_unit

Returns the moment unit string.

radians

stress_scale

Returns the stress scale.

stress_unit

Returns the stress unit string.

length

force

mass

property length_unit: str

Returns the length unit string.

property length_scale: float

Returns the length scale.

property force_unit: str

Returns the force unit string.

property force_scale: float

Returns the force scale.

property mass_unit: str

Returns the mass unit string.

property mass_scale: float

Returns the mass scale.

property angle_unit: str

Returns the angle unit string.

property angle_scale: float

Returns the angle scale.

property area_unit: str

Returns the area unit string.

property area_scale: float

Returns the area scale.

property mass_per_length_unit: str

Returns the mass/length unit string.

property mass_per_length_scale: float

Returns the mass/length scale.

property moment_unit: str

Returns the moment unit string.

property moment_scale: float

Returns the moment scale.

property flex_rig_unit: str

Returns the flexural rigidity unit string.

property flex_rig_scale: float

Returns the flexural rigidity scale.

property stress_unit: str

Returns the stress unit string.

property stress_scale: float

Returns the stress scale.

property length_3_unit: str

Returns the length^3 unit string.

property length_3_scale: float

Returns the length^3 scale.

property length_4_unit: str

Returns the length^4 unit string.

property length_4_scale: float

Returns the length^4 scale.