tidy3d.GridRefinementLine#
- class GridRefinementLine[source]#
Bases:
Tidy3dBaseModel,ABCRefinement 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,
attrsare mutable. For example, the following is allowed for setting anattrobj.attrs['foo'] = bar. Also note that Tidy3D` will raise aTypeErrorifattrscontain objects that can not be serialized. One can check ifattrsare 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_nearis enforced.Typically the same asdl_nearor its multiple.distance_bulk (NonNegativeFloat) β [units = um]. Distance from the line outside of which
dl_bulkis enforced.Typically twice ofdl_bulkor its multiple. Use larger values for a smoother transition fromdl_neartodl_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.