LengthUnit#

class ansys.meshing.prime.LengthUnit(value)#

Length units

Methods

LengthUnit.conjugate

Returns self, the complex conjugate of any int.

LengthUnit.bit_length(/)

Number of bits necessary to represent self in binary.

LengthUnit.bit_count(/)

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.

LengthUnit.as_integer_ratio(/)

Return integer ratio.

Attributes

LengthUnit.real

the real part of a complex number

LengthUnit.imag

the imaginary part of a complex number

LengthUnit.numerator

the numerator of a rational number in lowest terms

LengthUnit.denominator

the denominator of a rational number in lowest terms

LengthUnit.M

Denotes length unit is meters.

LengthUnit.CM

Denotes length unit is centimeters.

LengthUnit.MM

Denotes length unit is milimeters.

LengthUnit.UM

Denotes length unit is micrometers.

LengthUnit.NM

Denotes length unit is nanometers.

LengthUnit.IN

Denotes length unit is inches.

LengthUnit.FT

Denotes length unit is feet.

Examples using LengthUnit#

Mesh a mid-surfaced bracket for a structural analysis

Mesh a mid-surfaced bracket for a structural analysis