LengthUnit#
- class ansys.meshing.prime.LengthUnit(value)#
Length units
Methods
Returns self, the complex conjugate of any int.
Number of bits necessary to represent self in binary.
Number of ones in the binary representation of the absolute value of self.
LengthUnit.to_bytes
(/, length, byteorder, *)Return an array of bytes representing an integer.
LengthUnit.from_bytes
(/, bytes, byteorder, *)Return the integer represented by the given array of bytes.
Return integer ratio.
Attributes
the real part of a complex number
the imaginary part of a complex number
the numerator of a rational number in lowest terms
the denominator of a rational number in lowest terms
Denotes length unit is meters.
Denotes length unit is centimeters.
Denotes length unit is milimeters.
Denotes length unit is micrometers.
Denotes length unit is nanometers.
Denotes length unit is inches.
Denotes length unit is feet.
Examples using LengthUnit#
Mesh a mid-surfaced bracket for a structural analysis