pytire

author

Alex Robinson <girotobial@gmail.com>

copyright

Copyright (c) Alex Robinson, 2021-2021.

license

MIT

Submodules

Package Contents

Classes

Tire

A rubber pneumatic tire.

class pytire.Tire(size: str)

A rubber pneumatic tire.

sizestr

Size code as would be displayed on the sidewall. E.g ‘H45.5x16.5-21’, ‘30x10.75-16’, ‘615x225-10’

property diameter(self)Optional[float]

Tire diameter in metres

property width(self)Optional[float]

Tire width in metres

property wheel_diameter(self)Optional[float]

Wheel diameter in metres

volume(self, geometry: str = 'cuboid')Optional[float]

The exterior volume of the tire.

geometrystr, default ‘cuboid’

The shape assumed during the calculation of the volume. allowed values are [‘cuboid’, ‘cylinder’, ‘square_toroid’, ‘torus’]

float

Volume in m^2

property aspect_ratio(self)Optional[float]

The ratio between the height of the tyre’s sidewall to its width.

Optional[float]

The aspect ratio to 3 decimal places.