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)#

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')