Quantity#

class ansys.mechanical.stubs.v261.Ansys.Core.Units.Quantity#

Bases: object

Quantity class.

Overview#

Parse

Parse method.

ConvertUnit

ConvertUnit method.

HasUnit

HasUnit property.

Unit

Unit property.

Value

Value property.

Property detail#

property Quantity.HasUnit: bool | None#

HasUnit property.

property Quantity.Unit: str | None#

Unit property.

property Quantity.Value: float | None#

Value property.

Method detail#

Quantity.ConvertUnit(newUnit: str) Ansys.Core.Units.Quantity#

ConvertUnit method.

classmethod Quantity.Parse(valueUnitString: str) Ansys.Core.Units.Quantity#

Parse method.