tidy3d.GridRefinementLine#

class GridRefinementLine[source]#

Bases: Tidy3dBaseModel, ABC

Refinement line for the unstructured mesh. The cell size depends on the distance from the line.

Parameters:
  • r1 (tuple[float, float, float]) – [units = um]. Start point of the line in x, y, and z.

  • r2 (tuple[float, float, float]) – [units = um]. End point of the line in x, y, and z.

  • dl_near (PositiveFloat) – [units = um]. Mesh cell size near the line

  • distance_near (NonNegativeFloat) – [units = um]. Distance from the line within which dl_near is enforced.Typically the same as dl_near or its multiple.

  • distance_bulk (NonNegativeFloat) – [units = um]. Distance from the line outside of which dl_bulk is enforced.Typically twice of dl_bulk or its multiple. Use larger values for a smoother transition from dl_near to dl_bulk.

Attributes

Methods

names_exist_bcs()

Error if distance_bulk is less than distance_near

r1#
r2#
dl_near#
distance_near#
distance_bulk#
names_exist_bcs()[source]#

Error if distance_bulk is less than distance_near