Quantity#

class ansys.fluent.mcp.solve.lib.units.Quantity#

A parsed numeric value with its unit and CFD quantity classification.

Overview#

to_default

Convert this quantity into the Fluent default unit for its quantity.

to_dict

Convert the object to a dictionary representation.

Import detail#

from ansys.fluent.mcp.solve.lib.units import Quantity

Attribute detail#

Quantity.value: float#
Quantity.unit: str#
Quantity.quantity: str#
Quantity.raw: str#

Method detail#

Quantity.to_default() Quantity#

Convert this quantity into the Fluent default unit for its quantity.

Returns:
‘Quantity’

Result produced by the function.

Quantity.to_dict() dict[str, object]#

Convert the object to a dictionary representation.

Returns:
dict[str, object]

Mapping containing the operation result.