openmc.write_source_file¶
- openmc.write_source_file(source_particles: Iterable[SourceParticle], filename: str | os.PathLike, **kwargs)[source]¶
Write a source file using a collection of source particles
- Parameters
source_particles (iterable of SourceParticle) – Source particles to write to file
filename (str or path-like) – Path to source file to write
**kwargs – Keyword arguments to pass to
h5py.File
See also