kqcircuits.simulations.export.cross_section.epr_correction_export
- kqcircuits.simulations.export.cross_section.epr_correction_export.get_epr_correction_elmer_solution(**override_args)[source]
Returns ElmerCrossSectionSolution for EPR correction simulations with default arguments. Optionally, ‘override_args’ can be used to override any arguments.
- kqcircuits.simulations.export.cross_section.epr_correction_export.get_epr_correction_simulations(simulations: list[Simulation], correction_cuts: dict[str, dict] | Callable[[Simulation], dict[str, dict]], ma_eps_r: float = 8, ms_eps_r: float = 11.4, sa_eps_r: float = 4, ma_thickness: float = 0.0048, ms_thickness: float = 0.0003, sa_thickness: float = 0.0024, metal_height: float = 0.2) tuple[list[tuple[CutSimulation, ElmerCrossSectionSolution]], list[PostProcess]] [source]
Helper function to produce EPR correction simulations.
- Parameters:
simulations (-) – list of simulation objects
correction_cuts – dictionary or function that returns a dictionary of correction cuts for given simulation.
containing (Key is the name of cut and values are dicts) –
p1 (-) – pya.DPoint indicating the first end of the cut segment
p2 (-) – pya.DPoint indicating the second end of the cut segment
metal_edges (-) – list of dictionaries indicating metal-edge-region locations and orientations in 2D simulation. Can contain keywords: - x: lateral distance from p1 to mer metal edge, - x_reversed: whether gap is closer to p1 than metal, default=False - z: height of substrate-vacuum interface, default=0 - z_reversed: whether vacuum is below substrate, default=False
partition_regions (-) – (optional) list of partition region names. The correction cut key is used if not assigned.
simulations – (optional) list of simulation names. Is applied on all simulations if not assigned.
solution (-) – (optional) solution object for the sim. get_epr_correction_elmer_solution is used if not assigned. If solution is not set, all items under correction_cuts[Key] are given to get_epr_correction_elmer_solution except items with keys [“p1”, “p2”, “metal_edges”, “partition_regions”, “simulations”].
ma_eps_r – relative permittivity of MA layer
ms_eps_r – relative permittivity of MS layer
sa_eps_r – relative permittivity of SA layer
ma_thickness – thickness of MA layer
ms_thickness – thickness of MS layer
sa_thickness – thickness of SA layer
metal_height – Thickness of metal layer if sheet in the source simulation
- Returns:
tuple containing list of correction simulations and list of post_process objects
