BETDiskSectionalPolar#

class BETDiskSectionalPolar[source]#

Bases: Flow360BaseModel

BETDiskSectionalPolar class for setting up BETDisk.sectional_polars for BETDisk. There are two variables, “lift_coeffs” and “drag_coeffs”, need to be set up as 3D arrays (implemented as nested lists). The first index of the array corresponds to the BETDisk.mach_numbers of the specified polar data. The second index of the array corresponds to the BETDisk.reynolds_numbers of the polar data. The third index corresponds to the BETDisk.alphas. The value specifies the lift or drag coefficient, respectively.

Example

Define BETDiskSectionalPolar at one single radial location. lift_coeffs and drag_coeffs are lists with the dimension of 3 x 2 x 2, corresponding to 3 BETDisk.mach_numbers by 2 BETDisk.reynolds_numbers by 2 BETDisk.alphas.

>>> lift_coeffs = [[[0.1, 0.2], [0.3, 0.4]], [[0.5, 0.6], [0.7, 0.8]], [[0.9, 1.0], [1.1, 1.2]]]
>>> drag_coeffs = [[[0.01, 0.02], [0.03, 0.04]], [[0.05, 0.06], [0.07, 0.08]], [[0.09, 0.1], [0.11, 0.12]]]
>>> fl.BETDiskSectionalPolar(
...     lift_coeffs=lift_coeffs,
...     drag_coeffs=drag_coeffs
... )

Attributes

lift_coeffs: list[list[list[float]]]#

The 3D arrays specifying the list coefficient.

drag_coeffs: list[list[list[float]]]#

The 3D arrays specifying the drag coefficient.

Additional Constructors

classmethod from_file(filename)#

Load a Flow360BaseModel from a .json file.

Parameters:

filename (str)

Return type:

Flow360BaseModel

Methods

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