Sutherland#

class Sutherland[source]#

Bases: Flow360BaseModel

Represents Sutherland’s law for calculating dynamic viscosity.

Attributes

reference_viscosity: Any#

The reference dynamic viscosity at the reference temperature.

reference_temperature: Any#

The reference temperature associated with the reference viscosity.

effective_temperature: Any#

The effective temperature constant used in Sutherland’s formula.

Additional Constructors

classmethod from_file(filename)#

Load a Flow360BaseModel from a .json file.

Parameters:

filename (str)

Return type:

Flow360BaseModel

Methods

get_dynamic_viscosity(temperature)[source]#

Calculates the dynamic viscosity at a given temperature using Sutherland’s law.

Parameters:

temperature (Annotated[Any, BeforeValidator(func=~flow360_schema.framework.physical_dimensions.composers._create_validator.<locals>.validate, json_schema_input_type=PydanticUndefined), PlainSerializer(func=~flow360_schema.framework.physical_dimensions.composers._create_serializer.<locals>.serialize, return_type=PydanticUndefined, when_used=always), WithJsonSchema(json_schema={'type': 'object', 'properties': {'value': {'$ref': 'https://flexcompute.com/schemas/1.0.0/Float64.json'}, 'units': {'type': 'string'}}, 'required': ['value', 'units'], 'additionalProperties': False}, mode=None)])

Return type:

Annotated[Any, BeforeValidator(func=~flow360_schema.framework.physical_dimensions.composers._create_validator.<locals>.validate, json_schema_input_type=PydanticUndefined), PlainSerializer(func=~flow360_schema.framework.physical_dimensions.composers._create_serializer.<locals>.serialize, return_type=PydanticUndefined, when_used=always), WithJsonSchema(json_schema={‘type’: ‘object’, ‘properties’: {‘value’: {‘$ref’: ‘https://flexcompute.com/schemas/1.0.0/NonNegativeFloat64.json’}, ‘units’: {‘type’: ‘string’}}, ‘required’: [‘value’, ‘units’], ‘additionalProperties’: False}, mode=None)]

help(methods=False)#

Print fields and methods of a Flow360BaseModel using rich.

Parameters:

methods (bool)

Return type:

None

to_file(filename, **kwargs)#

Export Flow360BaseModel instance to a .json file.

Parameters:
Return type:

None