discretize.CylindricalMesh.cartesian_grid#

CylindricalMesh.cartesian_grid(location_type='cell_centers', theta_shift=None, **kwargs)[source]#

Return the specified grid in cartesian coordinates.

Takes a grid location (‘CC’, ‘N’, ‘Ex’, ‘Ey’, ‘Ez’, ‘Fx’, ‘Fy’, ‘Fz’) and returns that grid in cartesian coordinates

Parameters:
location_type{‘CC’, ‘N’, ‘Ex’, ‘Ey’, ‘Ez’, ‘Fx’, ‘Fy’, ‘Fz’}

grid location

theta_shiftfloat, optional

shift for theta

Returns:
(n_items, dim) numpy.ndarray

cartesian coordinates for the cylindrical grid