View

casingSimulations.view.plotEdge2D(mesh2D, h, real_or_imag='real', ax=None, range_x=None, range_y=None, sample_grid=None, logScale=True, clim=None, mirror=False, pcolorOpts=None)

Create a pcolor plot (a slice in the theta direction) of an edge vector

Parameters:
  • mesh2D (discretize.CylMesh) – cylindrically symmetric mesh
  • h (np.ndarray) – edge vector (y components)
  • real_or_imag (str) – real or imaginary component
  • ax (matplotlib.axes) – axes
  • range_x (numpy.ndarray) – x-extent over which we want to plot
  • range_y (numpy.ndarray) – y-extent over which we want to plot
  • sample_grid (numpy.ndarray) – x, y spacings at which to re-sample the plotting grid
  • logScale (bool) – use a log scale for the colorbar?
casingSimulations.view.plotFace2D(mesh2D, j, real_or_imag='real', ax=None, range_x=None, range_y=None, sample_grid=None, logScale=True, clim=None, mirror=False, pcolorOpts=None, cbar=True)

Create a streamplot (a slice in the theta direction) of a face vector

Parameters:
  • mesh2D (discretize.CylMesh) – cylindrically symmetric mesh
  • j (np.ndarray) – face vector (x, z components)
  • real_or_imag (str) – real or imaginary component
  • ax (matplotlib.axes) – axes
  • range_x (numpy.ndarray) – x-extent over which we want to plot
  • range_y (numpy.ndarray) – y-extent over which we want to plot
  • sample_grid (numpy.ndarray) – x, y spacings at which to re-sample the plotting grid
  • logScale (bool) – use a log scale for the colorbar?
casingSimulations.view.plotLinesFx(mesh, field, pltType='semilogy', ax=None, theta_ind=0, xlim=[0.0, 2500.0], zloc=0.0, real_or_imag='real', color_ind=0, label=None)