desc.grid.ConcentricGrid.expand
- ConcentricGrid.expand(x, surface_label='rho')Source
Expand
xby duplicating elements to match the grid’s pattern.- Parameters:
x (ndarray) – Stores the values of a surface function (constant over a surface) for all unique surfaces of the specified label on the grid. The length of
xshould match the number of unique surfaces of the corresponding label in this grid.xshould be sorted such that the first element corresponds to the value associated with the smallest surface, and the last element corresponds to the value associated with the largest surface.surface_label ({"rho", "poloidal", "zeta"}) – The surface label of rho, poloidal, or zeta.
- Returns:
expand_x (ndarray) –
xexpanded to match the grid’s pattern.