tidy3d.RelativeGridRefinementLine#

class RelativeGridRefinementLine[source]#

Bases: _GridRefinementLineBase

Line refinement sized relative to an enclosing AutoUnstructuredGrid.

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_ratio (PositiveFloat) – Mesh size near the line, relative to dl_reference.

  • distance_near_ratio (NonNegativeFloat = 2.0) – Near transition distance relative to the local line mesh size.

  • distance_bulk_ratio (NonNegativeFloat = 4.0) – Far transition distance relative to the enclosing grid’s bulk mesh size.

Notes

This refinement type is supported only by AutoUnstructuredGrid.

Example

>>> line = RelativeGridRefinementLine(
...     r1=(-0.5, 0, 0),
...     r2=(0.5, 0, 0),
...     dl_ratio=0.25,
...     distance_near_ratio=2,
...     distance_bulk_ratio=4,
... )

Attributes

dl_ratio#
distance_near_ratio#
distance_bulk_ratio#