gplugins.gmeep.write_sparameters_grating_mpi#
- gplugins.gmeep.write_sparameters_grating_mpi(instance: dict, cores: int = 2, temp_dir: str | None = None, temp_file_str: str = 'write_sparameters_meep_mpi', verbosity: bool = False)[source]#
Write grating coupler Sparameters using multiple cores.
Given a Dict of write_sparameters_meep keyword arguments (the “instance”), launches a parallel simulation on cores cores Returns the subprocess Popen object
- Parameters:
instances – keys are parameters names of write_sparameters_meep, and entries the values.
cores (int) – number of processors.
temp_dir (FilePath) – temporary directory to hold simulation files.
temp_file_str (str) – names of temporary files in temp_dir.
verbosity (bool) – progress messages.