kqcircuits.simulations.export.xsection.epr_correction_export

kqcircuits.simulations.export.xsection.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.xsection.epr_correction_export.get_epr_correction_simulations(simulations: list[Simulation], path: Path, 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, ma_bg_eps_r: float = 1, ms_bg_eps_r: float = 11.45, sa_bg_eps_r: float = 11.45, metal_height: float | None = None) tuple[list[tuple[Simulation, ElmerCrossSectionSolution]], list[PostProcess]][source]

Helper function to produce EPR correction simulations.

Parameters:
  • simulations (-) – list of simulation objects

  • path – path to simulation folder

  • 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

  • ma_bg_eps_r – rel permittivity at the location of MA layer in 3D simulation (sheet approximation in use)

  • ms_bg_eps_r – rel permittivity at the location of MS layer in 3D simulation (sheet approximation in use)

  • sa_bg_eps_r – rel permittivity at the location of SA layer in 3D simulation (sheet approximation in use)

  • metal_height – height of metal layers in correction simulations. Use None to get heights from 3D stack

Returns:

tuple containing list of correction simulations and list of post_process objects

../_images/kqcircuits.simulations.export.xsection.epr_correction_export.png