desc.profiles.TwoPowerProfile
- class desc.profiles.TwoPowerProfile(params=None, name='')Source
Profile represented by two powers.
f(x) = a[0]*(1 - x**a[1])**a[2]
Notes
df/dx = inf at x = 0 if a[1] < 1 df/dx = inf at x = 1 if a[2] < dr
- Parameters:
params (array-like) – Coefficients of the two power formula. Must be an array of size 3. Default if not specified is [0, 1, 1].
name (str) – Name of the profile.
Methods
compute(grid[, params, dr, dt, dz])Compute values of profile at specified nodes.
copy([deepcopy])Return a (deep)copy of this object.
equiv(other)Compare equivalence between DESC objects.
load(load_from[, file_format])Initialize from file.
save(file_name[, file_format, file_mode])Save the object.
to_fourierzernike([L, M, N, NFP, xs, w])Convert this profile to a FourierZernikeProfile.
to_mtanh([order, xs, w, p0, pmax, pmin])Convert this profile to modified hyperbolic tangent + poly form.
to_powerseries([order, xs, sym, rcond, w])Convert this profile to a PowerSeriesProfile.
to_spline([knots, method])Convert this profile to a SplineProfile.
Attributes
Name of the profile.
Parameter values.