Quantity#
- class ansys.stk.core.stkutil.Quantity#
Object that contains a quantity.
Overview#
Change the value in this quantity to the specified unit. |
|
Add the value from the Quantity interface to this interface. Returns a new Quantity. The dimensions must be similar. |
|
Subtracts the value from the Quantity interface to this interface. Returns a new Quantity. The dimensions must be similar. |
|
Multiplies the value from the Quantity interface to this interface. Returns a new Quantity. The dimensions must be similar. |
|
Divides the value from the Quantity interface to this interface. The dimensions must be similar. |
Import detail#
from ansys.stk.core.stkutil import Quantity
Property detail#
Method detail#
- Quantity.convert_to_unit(self, unit_abbrv: str) None #
Change the value in this quantity to the specified unit.
- Quantity.add(self, quantity: Quantity) Quantity #
Add the value from the Quantity interface to this interface. Returns a new Quantity. The dimensions must be similar.
- Parameters:
quantity :
Quantity
- Returns:
Quantity
- Quantity.subtract(self, quantity: Quantity) Quantity #
Subtracts the value from the Quantity interface to this interface. Returns a new Quantity. The dimensions must be similar.
- Parameters:
quantity :
Quantity
- Returns:
Quantity