BETDiskSectionalPolar#
- class BETDiskSectionalPolar[source]#
Bases:
Flow360BaseModelBETDiskSectionalPolarclass for setting upBETDisk.sectional_polarsforBETDisk. 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 theBETDisk.mach_numbersof the specified polar data. The second index of the array corresponds to theBETDisk.reynolds_numbersof the polar data. The third index corresponds to theBETDisk.alphas. The value specifies the lift or drag coefficient, respectively.Example
Define
BETDiskSectionalPolarat one single radial location.lift_coeffsanddrag_coeffsare lists with the dimension of 3 x 2 x 2, corresponding to 3BETDisk.mach_numbersby 2BETDisk.reynolds_numbersby 2BETDisk.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
Additional Constructors
- classmethod from_file(filename)#
Loads a
Flow360BaseModelfrom .json, or .yaml file.- Parameters:
filename (str) – Full path to the .yaml or .json file to load the
Flow360BaseModelfrom.- 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)