pymead.analysis.calc_aero_data.MSETSettings#
- class MSETSettings(multi_airfoil_grid: Dict[str, AirfoilMSETMeshingParameters], grid_bounds: List[float] | None = None, airfoil_side_points: int = 180, exp_side_points: float = 0.9, inlet_pts_left_stream: int = 41, outlet_pts_right_stream: int = 41, num_streams_top: int = 17, num_streams_bot: int = 23, max_streams_between: int = 15, elliptic_param: float = 1.3, stag_pt_aspect_ratio: float = 2.5, x_spacing_param: float = 0.85, alf0_stream_gen: float = 0.0, timeout: float = 10.0, use_downsampling: bool = False, downsampling_max_pts: int = 200, downsampling_curve_exp: float = 2.0)[source]#
Bases:
object- __init__(multi_airfoil_grid: Dict[str, AirfoilMSETMeshingParameters], grid_bounds: List[float] | None = None, airfoil_side_points: int = 180, exp_side_points: float = 0.9, inlet_pts_left_stream: int = 41, outlet_pts_right_stream: int = 41, num_streams_top: int = 17, num_streams_bot: int = 23, max_streams_between: int = 15, elliptic_param: float = 1.3, stag_pt_aspect_ratio: float = 2.5, x_spacing_param: float = 0.85, alf0_stream_gen: float = 0.0, timeout: float = 10.0, use_downsampling: bool = False, downsampling_max_pts: int = 200, downsampling_curve_exp: float = 2.0)[source]#
Defines a set of reasonable default values for MSET, the grid meshing tool in the MSES suite.
- Parameters:
multi_airfoil_grid (Dict[str, AirfoilMSETMeshingParameters]) – Set of airfoil meshing parameters for each airfoil in the multi-element airfoil. The keys represent the airfoil names as they appear in the
MEAobject, and the values must be instances of theAirfoilMSETMeshingParametersclass.grid_bounds (List[float] or None) – Grid bounds to use for the airfoil system mesh. The values of the list are the \(x\)-location of the left side of the grid, the \(x\)-location of the right side of the grid, the \(y\)-location of the bottom side of the grid, and the \(y\)-location of the top side of the grid, in that order. These values correspond to a pseudo-rectangular far-field boundary (the sides follow the streamwise or stream-normal direction and may not be exactly linear). The sides will also be rotated relative to the origin if any angle of attack other than
0.0is specified. IfNoneis specified, a default value of[-5.0, 5.0, -5.0, 5.0]will be used. Default:Noneairfoil_side_points (int) – Number of points along each airfoil to allocate. Default:
180exp_side_points (float) – Exponent to determine the initial distribution of the side points. Default:
0.9inlet_pts_left_stream (int) – Number of grid points to allocate along the streamlines (left of the airfoil system). Default:
41outlet_pts_right_stream (int) – Number of grid points to allocate along the streamlines (right of the airfoil system). Default:
41num_streams_top (int) – Number of streamlines to allocate above the airfoil system. Default:
17num_streams_bot (int) – Number of streamlines to allocate below the airfoil system. Default:
23max_streams_between (int) – Maximum number of streamlines to between each set of airfoils. Default:
15elliptic_param (float) – Elliptic parameter. Default:
1.3stag_pt_aspect_ratio (float) – Aspect ratio of cells at the stagnation points. Default:
2.5x_spacing_param (float) – \(x\)-spacing parameter. Default:
0.85alf0_stream_gen (float) – Angle of attack (in degrees) used to generate the initial set of streamlines using an incompressible flow solution. Default:
0.0timeout (float) – Maximum time MSET is allowed to run before premature termination. Useful to prevent a hanging process in the case of a bad set of input parameters.
use_downsampling (bool) – Whether to downsample the evaluated points along the airfoil. Useful when the number of points exceeds the hard-coded limits of XFOIL or MSES. Default:
Falsedownsampling_max_pts (int) – Total number of points to allow along the airfoil. Ignored if
use_downsampling==False. Default:200downsampling_curve_exp (float) – Curvature exponent to influence the distribution of points on the airfoil. Values close to zero cause the curvature of the airfoil to exert a large influence over the distribution, while values close to infinity create a nearly uniform spacing. Ignored if
use_downsampling==False. Default:2.0
Methods
Gets a Python dictionary description of the MSET meshing parameters.