gplugins.palace.run_capacitive_simulation_palace

gplugins.palace.run_capacitive_simulation_palace#

gplugins.palace.run_capacitive_simulation_palace(component: Component, n_processes: int = 1, layer_stack: LayerStack | None = None, material_spec: dict[str, dict[str, float | int]] | None = None, simulation_folder: Path | str | None = None, solver_config: Mapping[str, Any] | None = None, mesh_parameters: dict[str, Any] | None = None, mesh_file: Path | str | None = None) ElectrostaticResults[source]#

Run electrostatic finite element method simulations using Palace. Returns the field solution and resulting capacitance matrix.

Note

You should have palace in your PATH.

Parameters:
  • component – Simulation environment as a gdsfactory component.

  • n_processes – Number of processes to use for parallelization

  • layer_stackLayerStack defining defining what layers to include in the simulation and the material properties and thicknesses.

  • material_specRFMaterialSpec defining material parameters for the ones used in layer_stack.

  • simulation_folder – Directory for storing the simulation results. Default is a temporary directory.

  • solver_config – Palace-specific parameters. This will be expanded to config["Solver"] in the Palace config, see Palace documentation

  • mesh_parameters – Keyword arguments to provide to mesh().

  • mesh_file – Path to a ready mesh to use. Useful for reusing one mesh file. By default a mesh is generated according to mesh_parameters.