AxisymmetricRefinement#

class AxisymmetricRefinement[source]#

Bases: Flow360BaseModel

  • The mesh inside the AxisymmetricRefinement is semi-structured.

  • The AxisymmetricRefinement cannot enclose/intersect with other objects.

  • Users could create a donut-shape AxisymmetricRefinement and place their hub/centerbody in the middle.

  • AxisymmetricRefinement can be used for resolving the strong flow gradient

    along the axial direction for the actuator or BET disks.

  • The spacings along the axial, radial and circumferential directions can be adjusted independently.

Example

>>> fl.AxisymmetricRefinement(
...     entities=[cylinder],
...     spacing_axial=1e-4,
...     spacing_radial=0.3*fl.u.cm,
...     spacing_circumferential=5*fl.u.mm
... )

Attributes

name: str, optional#
Default:

'Axisymmetric refinement'

entities: EntityList[Cylinder]#
spacing_axial: LengthType.Positive#

Spacing along the axial direction.

spacing_radial: LengthType.Positive#

Spacing along the radial direction.

spacing_circumferential: LengthType.Positive#

Spacing along the circumferential direction.

Additional Constructors

classmethod from_file(filename)#

Loads a Flow360BaseModel from .json, or .yaml file.

Parameters:

filename (str) – Full path to the .yaml or .json file to load the Flow360BaseModel from.

Returns:

An instance of the component class calling load.

Return type:

Flow360BaseModel

Example

>>> params = Flow360BaseModel.from_file(filename='folder/sim.json') 

Methods

help(methods=False)#

Prints message describing the fields and methods of a Flow360BaseModel.

Parameters:

methods (bool = False) – Whether to also print out information about object’s methods.

Return type:

None

Example

>>> params.help(methods=True) 
to_file(filename, **kwargs)#

Exports Flow360BaseModel instance to .json or .yaml file

Parameters:

filename (str) – Full path to the .json or .yaml or file to save the Flow360BaseModel to.

Return type:

None

Example

>>> params.to_file(filename='folder/flow360.json')