flow360.OctreeSpacing#

class OctreeSpacing[source]#

Bases: Flow360BaseModel

Helper class for octree-based meshers. Holds the base for the octree spacing and lows calculation of levels.

base_spacing: Annotated[_Constrained, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)] [Required]#
Constraints:
  • func = <function _dimensioned_type_serializer at 0x76d26c7ff370>

  • return_type = PydanticUndefined

  • when_used = always

to_level(spacing)[source]#

Can be used to check in what refinement level would the given spacing result and if it is a direct match in the spacing series.

Parameters:

spacing (Annotated[_Constrained, PlainSerializer(func=~flow360.component.simulation.unit_system._dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)])