Skip to content

Commit

Permalink
Merge pull request #526 from gdsfactory/51213
Browse files Browse the repository at this point in the history
add simulation_info to LayerLevel
  • Loading branch information
joamatab committed Jul 7, 2022
2 parents 732265c + 8026599 commit 1e27e35
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/index.rst
Expand Up @@ -7,14 +7,14 @@ Gdsfactory

README
git
notebooks
workflow
components
notebooks
plugins_mode_solver
plugins_fdtd
plugins_circuits
contribution
CHANGELOG
components
api
routing
cli
14 changes: 12 additions & 2 deletions gdsfactory/tech.py
Expand Up @@ -107,14 +107,24 @@ class LayerLevel(BaseModel):
zmin: height position where material starts in um.
material: material name.
sidewall_angle: in degrees with respect to normal.
refractive_index: optional index as a function of wavelength (um).
TODO:
figure out how to add simulation_info
simulation_info: contains information for simulating.
refractive_index: refractive_index
can be int, complex or function that depends on wavelength (um).
type: grow, etch, implant, or background.
doping_concentration: for implants.
resistiviy: for metals.
bias: in um for the etch.
"""

layer: Tuple[int, int]
thickness: float
zmin: float
material: Optional[str] = None
sidewall_angle: float = 0
# simulation_info: Dict[str, Any] = {}
# refractive_index: Optional[Callable[[float], float]] = None


Expand Down Expand Up @@ -393,7 +403,7 @@ class Tech(BaseModel):
# return gf.components.mzi(splitter=mmi1x2_longer, **kwargs)

ls = LAYER_STACK
ls.get_2p5D()
ls.get_klayout_3d_script()
# print(ls.get_layer_to_material())
# print(ls.get_layer_to_thickness())

Expand Down

0 comments on commit 1e27e35

Please sign in to comment.