tidy3d.components.grid.grid_spec.GridSpec1d#
- class GridSpec1d[source]#
Bases:
Tidy3dBaseModel
,ABC
Abstract base class, defines 1D grid generation specifications.
Methods
make_coords
(axis, structures, symmetry, ...)Generate 1D coords to be used as grid boundaries, based on simulation parameters.
- make_coords(axis, structures, symmetry, periodic, wavelength, num_pml_layers)[source]#
Generate 1D coords to be used as grid boundaries, based on simulation parameters. Symmetry, and PML layers will be treated here.
- Parameters:
axis (Axis) – Axis of this direction.
structures (List[StructureType]) – List of structures present in simulation, the first one being the simulation domain.
symmetry (Tuple[Symmetry, Symmetry, Symmetry]) – Reflection symmetry across a plane bisecting the simulation domain normal to each of the three axes.
wavelength (float) – Free-space wavelength.
num_pml_layers (Tuple[int, int]) – number of layers in the absorber + and - direction along one dimension.
- Returns:
1D coords to be used as grid boundaries.
- Return type:
Coords1D
- __hash__()#
Hash method.