Unwrap a blade’s skin¶
import antares myt = antares.Treatment('UnwrapBlade')
The input base must correspond to the blade’s skin. In addition, the variable CoordinateReducedHeight computed from the
antares.treatment.turbomachine.TreatmenthHmust be included in the input base.
list(str), default = None
Names of variables present in the input base that will also be in the output base. If None, all input variables will be conserved. Variables like ‘d’, ‘d_D’ and ‘R’ respectively associated to curvilinear coordinate and its reduced form, and the radius.
int, default = 101
The number of iso-h/H needed to discretize the blade through the variable CoordinateReducedHeight.
int, default = 1001
The number of discretization along the blade’s curvilinear coordinate. This number has to be strictly greater than one.
str, default = ‘LE’
Convention : ‘LE’ (leading edge) or ‘TE’ (trailing edge). In other words, either sort the blade from the LE to the TE or vice versa. Therefore, if begin_unwrap is set to ‘LE’, the curvilinear coordinate’s zero is at the leading edge.
str, default = ‘Psta’
Name of the pressure variable. Necessary to discriminate pressure from suction side on every profile.
str, default = ‘CoordinateReducedHeight’
Name of the coordinate reduced height variable.
str, default = None
Either None and h/H borders are limited by the CAD, or borders are manually fixed: hH_range = [min_hH, max_hH].
list(str, str, str), default = [‘x’, ‘y’, ‘z’]
Names of the 3 cartesian coordinates.
antares.treatment.turbomachine.ptris.TreatmentPtris, default = None
Call a TreatmentPtris defined upstream with at least convention and in_vars options. For more details, please refer to the corresponding treatment.
The treatment must be applied on a 3D
antares.api.Zone corresponding to a blade
skin and its fillet. The
antares.api.Base must have only one
antares.api.Instant with reduced height and meridional coordinates
The output is a mono-zone base containing the variables from the input base, plus the curvilinear curvature coordinate and it’s reduced form and the radius. If TreatmentPtris is not None, the input base is also extended with the isentropic Mach number Mis and its reference pressure Ptris.
The input base is a mono-zone base containing the variables defined by the user. It is also extended with the variables:
The curvilinear curvature coordinate.
The reduced form of the previous one.
The total isentropic pressure of reference, necessary to compute Mis. Only if a TreatmentPtris has been called.
The isentropic Mach number. Only if a TreatmentPtris has been called.
import antares myt = antares.Treatment('UnwrapBlade') myt['base'] = blade_skin_base myt['number_of_heights'] = 101 myt['number_of_d_D'] = 1001 base = myt.execute()
If you like to plot a 2D contouring of the unwraped blade on a (d/D, R) plan, the following lines should be added to the previous ones.
from matplotlib.tri import Triangulation tri = Triangulation(base['x'], base['y']) tri.x = base['d_D'] tri.y = base['R']
If you like the get Mis on the 2D unwraped blade, the following exemple shows an efficient way to do so.
import antares # Fill Ptris information. For more details, # refer to the corresponding treatment. myt_Ptris = antares.Treatment('Ptris') myt_Ptris['convention'] = to be defined myt_Ptris['in_vars'] = ['x', 'y', 'z', 'r', 'CoordinateReducedMeridional', 'gamma', 'Cp', 'omega', 'P', 'T'] myt = antares.Treatment('UnwrapBlade') myt['base'] = blade_skin_base myt['TreatmentPtris'] = myt_Ptris base = myt.execute()