pyflange.bolts
The bolts
module contains objects representing the bolt, washer and nut
fastener components. In particular it contains
- A
MetricBolt
class that generates generic bolts with metric screw thread and aStandardMetricBolt
function that generates MetricBolt objects with standard properties. - A
FlatWasher
class that generates generic flat washer and aISOFlatWasher
frunction that returns aFlatWasher
with standard dimensions. - A
HexNut
class that generates a generic hexagonal nut, aISOHExNut
function that generates aHexNut
with ISO 4032 dimensionsand a
RoundNutfunction that generates a standard flanged
HexNut``.
BoltCrossSection
dataclass
Bolt circular cross-section.
Parameters: |
|
---|
Attributes: |
|
---|
area
cached
property
The cross-section area.
elastic_section_modulus
cached
property
The elastic section modulus of the cross-section.
second_moment_of_area
cached
property
The second moment of area of the cross-section.
FlatWasher
dataclass
Bases: Washer
Generic flat washer.
Parameters: |
|
---|
The parameters must be expressed in a consistent system of units. For example, if you chose to input distances in mm and forces in N, then stresses must be expressed in N/mm². All the bolt attributes and methods will return values consistently with the input units of measurement.
All the input parameters are also available as attributes of the generated
object (e.g. washer.thickness
, washer.poissons_ratio
, etc.).
This instances of this calss are designed to be immutable, which means than changing an attribute after creating an object is not a good idea. If you need a different washer with different attributes, create a new one.
area
cached
property
Area of the washer flat surface
axial_stiffness
cached
property
The compressive stiffness of the washer: t / EA
HexNut
dataclass
Bases: Nut
Generates a generic hexagonal nut.
Parameters: |
|
---|
The parameters must be expressed in a consistent system of units. For example, if you chose to input distances in mm and forces in N, then stresses must be expressed in N/mm². All the bolt attributes and methods will return values consistently with the input units of measurement.
All the input parameters are also available as attributes of the generated
object (e.g. washer.thickness
, washer.poissons_ratio
, etc.).
This instances of this calss are designed to be immutable, which means than changing an attribute after creating an object is not a good idea. If you need a different nut with different attributes, create a new one.
MetricBolt
dataclass
Bases: Bolt
Generic bolt with ISO 68-1 metric screw thread
Parameters: |
|
---|
The parameters must be expressed in a consistent system of units. For example, if you chose to input distances in mm and forces in N, then stresses must be expressed in N/mm². All the bolt attributes and methods will return values consistently with the input units of measurement.
All the input parameters are also available as attributes of the generated
object (e.g. bolt.shank_length
, bolt.yield_stress
, etc.).
This instances of this calss are designed to be immutable, which means than changing an attribute after creating an object is not a good idea. If you need a different bolt with different attributes, create a new one.
designation
cached
property
Bolt designation string.
For example, "M16"
is the designation of a bolt with nominal
diameter 16 mm.
nominal_cross_section
cached
property
Bolt cross-section with nominal diameter.
Instance of BoltCrossSection
class.
nominal_cross_section_area
cached
property
Area of a circle with nominal diameter.
DEPRECATED: use bolt.nominal_cross_section.area
instead
shank_cross_section
cached
property
Bolt shank cross-section.
Instance of BoltCrossSection
class.
shank_cross_section_area
cached
property
Area of the shank transversal cross-section.
DEPRECATED: use bolt.shank_cross_section.area
instead.
shank_diameter
cached
property
Diameter of the shank.
shear_modulus
cached
property
Shear modulus G.
Calculated from the Young's modulus and Poisson's ratio, under the assumption of isotropic and elastic bolt material.
tensile_cross_section_area
cached
property
Tensile stress area, according to ISO 891-1:2013, section 9.1.6.1.
DEPRECATED: use bolt.thread_cross_section.area
instead
tensile_moment_of_resistance
cached
property
Tensile moment of resistance, according to ISO 891-1:2013, section 9.1.6.1.
DEPRECATED: use bolt.thread_cross_section.elastic_section_modulus
instead
thread_basic_minor_diameter
cached
property
Basic minor diameter (d1).
As defined in ISO 68-1:1998.
thread_basic_pitch_diameter
cached
property
Basic minor diameter (d2).
As defined in ISO 68-1:1998.
thread_cross_section
cached
property
Bolt cross-section used for tensile calculations.
Instance of BoltCrossSection
class.
Ref. ISO 891-1:2013, section 9.1.6.1
thread_height
cached
property
Height of the metric thread fundamental triangle (H).
As defined in ISO 68-1:1998.
thread_minor_diameter
cached
property
Minor diameter (d3).
As defined in ISO 898-1:2013.
axial_stiffness(length)
Evaluate the axial stiffness of the bolt.
Parameters: |
|
---|
Returns: |
|
---|
bending_stiffness(length)
Evaluates the bending stiffness of the bolt.
Parameters: |
|
---|
Returns: |
|
---|
ultimate_tensile_capacity(standard='Eurocode')
Evaluate the ultimate tensile force that the bolt can take.
Parameters: |
|
---|
Returns: |
|
---|
Raises: |
|
---|
ISOFlatWasher(designation)
Generates a standard washer according to ISO 7089.
Parameters: |
|
---|
Returns: |
|
---|
For example, ISOFlatWasher("M16")
will return a FlatWasher
instance with outer diameter 30 mm, hole diameter 17 mm and
thickness 3 mm.
ISOHexNut(designation)
Generates a standard Hex Nut.
Parameters: |
|
---|
Returns: |
|
---|
RoundNut(designation)
Generates a standard round nut.
Parameters: |
|
---|
Returns: |
|
---|
StandardMetricBolt(designation, material_grade, shank_length=0.0, shank_diameter_ratio=1.0, stud=False)
Create a metric bolt with standard dimensions.
This function provides a convenient way for creating MetricBolt
object,
given the standard geometry designation (e.g. "M20") and the standard material
grade designation (e.g. "8.8").
Parameters: |
|
---|
Returns: |
|
---|