legume.Ring

class legume.Ring(eps=1.0, x_cent=0.0, y_cent=0.0, r_i=0.0, r_o=0.0)

Ring shape

__init__(eps=1.0, x_cent=0.0, y_cent=0.0, r_i=0.0, r_o=0.0)

Create a ring shape

Parameters:
  • eps (float) – Permittivity value

  • x_cent (float) – x-coordinate of ring center

  • y_cent (float) – y-coordinate of ring center

  • r_i (float) – inner radius of ring

  • r_o (float) – outer radius of ring

Methods

__init__([eps, x_cent, y_cent, r_i, r_o])

Create a ring shape

compute_ft(gvec)

Compute Fourier transform of a 2D shape function

is_inside(x, y)

Elementwise indicator function for the shape