flow360.Sutherland#
- class Sutherland[source]#
Bases:
Flow360BaseModel
Represents Sutherland’s law for calculating dynamic viscosity. This class implements Sutherland’s formula to compute the dynamic viscosity of a gas as a function of temperature.
Example
>>> fl.Sutherland( ... reference_viscosity=1.70138e-5 * fl.u.Pa * fl.u.s, ... reference_temperature=300.0 * fl.u.K, ... effective_temperature=110.4 * fl.u.K, ... )
- reference_viscosity: Annotated[_Constrained, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)] [Required]#
The reference dynamic viscosity at the reference temperature.
- Constraints:
func = <function _dimensioned_type_serializer at 0x79c44aad7130>
return_type = PydanticUndefined
when_used = always
- reference_temperature: Annotated[_AbsoluteTemperatureType, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always), AfterValidator(func=_check_temperature_is_physical)] [Required]#
The reference temperature associated with the reference viscosity.
- Constraints:
func = <function _check_temperature_is_physical at 0x79c44aad76d0>
return_type = PydanticUndefined
when_used = always
- effective_temperature: Annotated[_AbsoluteTemperatureType, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always), AfterValidator(func=_check_temperature_is_physical)] [Required]#
The effective temperature constant used in Sutherland’s formula.
- Constraints:
func = <function _check_temperature_is_physical at 0x79c44aad76d0>
return_type = PydanticUndefined
when_used = always
- get_dynamic_viscosity(temperature)[source]#
Calculates the dynamic viscosity at a given temperature using Sutherland’s law.
- Parameters:
temperature (AbsoluteTemperatureType) – The temperature at which to calculate the dynamic viscosity.
- Returns:
The calculated dynamic viscosity at the specified temperature.
- Return type:
ViscosityType.NonNegative