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:
attrs (dict = {}) β Dictionary storing arbitrary metadata for a Tidy3D object. This dictionary can be freely used by the user for storing data without affecting the operation of Tidy3D as it is not used internally. Note that, unlike regular Tidy3D fields,
attrs
are mutable. For example, the following is allowed for setting anattr
obj.attrs['foo'] = bar
. Also note that Tidy3D` will raise aTypeError
ifattrs
contain objects that can not be serialized. One can check ifattrs
are serializable by callingobj.json()
.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 asdl_near
or its multiple.distance_bulk (NonNegativeFloat) β [units = um]. Distance from the line outside of which
dl_bulk
is enforced.Typically twice ofdl_bulk
or its multiple. Use larger values for a smoother transition fromdl_near
todl_bulk
.
Attributes
Methods
names_exist_bcs
(val,Β values)Error if distance_bulk is less than distance_near
Inherited Common Usage
- r1#
- r2#
- dl_near#
- distance_near#
- distance_bulk#
- __hash__()#
Hash method.