desc.profiles.TwoPowerProfile.compute
- TwoPowerProfile.compute(grid, params=None, dr=0, dt=0, dz=0)Source
Compute values of profile at specified nodes.
- Parameters:
grid (Grid) – Locations to compute values at.
params (array-like) – Power law coefficients to use. Must be an array of size 3. If not given, uses the values given by the params attribute.
dr (int) – Derivative order in rho, theta, zeta.
dt (int) – Derivative order in rho, theta, zeta.
dz (int) – Derivative order in rho, theta, zeta.
- Returns:
values (ndarray) – Values of the profile or its derivative at the points specified.