cherab.imas.plasma.load_edge_plasmaยถ
-
cherab.imas.plasma.load_edge_plasma(*args, time: float =
0, occurrence: int =0, grid_ggd: IDSStructure | None =None, grid_subset_id: int | str =5, b_field: Function2D | None =None, time_threshold: float =inf, split_ion_bundles: bool =True, atomic_data: AtomicData | None =None, parent: _NodeBase | None =None, **kwargs) PlasmaSourceยถ Load edge profiles and create a
Plasmaobject.Prefer
density_thermaloverdensityprofile.The distribution of each species is defined with
Maxwellianusing its density, temperature, and bulk velocity profiles, which are mapped to GGD grid coordinates.The plasma geometry is defined as a cylindrical annulus between the inner and outer limits of the grid, and its height is defined as the difference between the maximum and minimum z-coordinates of the grid.
The ion bundle species are split into their constituent charge states using
solve_coronal_equilibriumwhensplit_ion_bundlesis True and the necessary atomic data is available. Otherwise, ion bundles are ignored with a warning.- Parameters:
- *argsยถ
Arguments passed to the
DBEntryconstructor.- time: float =
0ยถ Time for the edge plasma, by default 0.
- occurrence: int =
0ยถ Occurrence index of the
edge_profilesIDS, by default 0.- grid_ggd: IDSStructure | None =
Noneยถ Alternative
grid_ggdstructure with the grid description, by default None.- grid_subset_id: int | str =
5ยถ Identifier of the grid subset. Either index or name, by default 5 (
"Cells").- b_field: Function2D | None =
Noneยถ Alternative 2D interpolator of the magnetic field vector (Br, Bphi, Bz). Default is None. The magnetic field will be loaded from the
equilibriumIDS.- time_threshold: float =
infยถ Maximum allowed difference between the requested time and the nearest available time, by default
numpy.inf.- split_ion_bundles: bool =
Trueยถ Whether to split ion bundles into their constituent charge states using
solve_coronal_equilibrium, by default True.- atomic_data: AtomicData | None =
Noneยถ Atomic data provider class for this plasma, by default None. If None, some species (e.g. ion_bundle) may not be properly loaded.
- parent: _NodeBase | None =
Noneยถ Parent node in the Raysect scene graph, by default None. Typically a
Worldinstance.- **kwargsยถ
Keyword arguments passed to the
DBEntryconstructor.
- Returns:
Plasmaโ Plasma object with edge profiles.- Raises:
RuntimeError โ If the
grid_ggdorggdAOS of the edge_profiles IDS is empty.