camfr_stack_expr_for_structure
- ipkiss3.all.device_sim.camfr_stack_expr_for_structure(structure, discretisation_resolution, environment, material_stack_to_material_map, window_size_info=None, process_flow=None, material_stack_factory=None, include_growth=0.0, visualize=False)
For a given layout, call virtual fabrication and return a camfr.Expression that can be used to run a simulation. Any camfr global settings (like PML thickness) must be set beforehand.
- Parameters:
- structureLayoutView
Layout of the structure that will be simulated.
- discretisation_resolutionint
1 / discretisation_resolution defines what is the minimal change between the widths and lengths of consecutive slabs of a longitudinally variant structure.
- environmentEnvironment
Environment object, used to specify the wavelength.
- material_stack_to_material_mapdict
Mapping from a material stack to an effective material with a (model) for an effective index of refraction. Needs to be specified for each stack.
- window_size_infoSizeInfo, optional
Defines the computational domain. If smaller than the actual structure it defines the simulation region.
- process_flowVFabricationProcessFlow, optional
Defines the virtual fabrication stacks. The default is TECH.VFABRICATION.PROCESS_FLOW.
- material_stack_factoryMaterialStackFactory, optional
A set of material stacks that define the virtual fabrication. The default is TECH.MATERIAL_STACKS.
- include_growthfloat, optional
Grows the simulation region, default 0.0.
- visualizebool, optional
If True, visualizes the discretised structure. Default False.
- Returns:
- camfr.Expression()
Camfr expression for stacked slabs, which are defined by discretising the geometry. To be used with camfr.Stack()