idstools.compute.distributions¶
This module provides compute functions and classes for distributions ids data
Module Contents¶
- class idstools.compute.distributions.DistributionsCompute(ids)[source]¶
This class provides compute functions for distributions ids.
- ids¶
The distributions IDS (Integrated Data Structure) object containing fast particle and energetic ion distribution functions.
-
active_distributions =
'None'¶
-
cur_calc =
'None'¶
- ids¶
-
is_radial_grid_info_processed =
'False'¶
- ndistributions¶
-
nrho =
'None'¶
-
radial_grid_info =
'None'¶
-
rho_tor_norm =
'None'¶
-
get_power_absorbedto_individual_ions(time_slice, verbose=
False)[source]¶ This function calculates the power absorbed by individual ions in a plasma simulation.
- Parameters:¶
- Returns:¶
The function get_power_absorbedto_individual_ions returns a dictionary power_absorbed containing information about the power absorbed to individual ions. The dictionary includes keys such as “all_injectors_total_power_waveform_per_ion”, “element”, and “compo_detail” with corresponding values calculated based on the input parameters and data within the function.
-
get_profiles(time_slice, process_index=
0)[source]¶ The function get_profiles retrieves and organizes various profiles and waveforms related to injectors and distributions for a given time index.
- Parameters:¶
- time_slice¶
The time_slice parameter
- Returns:¶
The get_profiles method returns a dictionary containing various profiles related to injectors, waveforms, and power density. The dictionary includes information such as injector names, current waveforms, power waveforms, current density profiles, and power density profiles for both individual injectors and all injectors combined. The method also logs information about total power, power to electrons, power to ions, and total current
- get_radial_grid_info(time_slice)[source]¶
The function get_radial_grid_info retrieves radial grid information for distributions in a plasma simulation.
- Parameters:¶
- time_slice¶
The time_slice parameter
- Returns:¶
The function get_radial_grid_info returns the radial_grid_info dictionary containing information about radial grid data for each distribution. If the radial_grid_info dictionary is empty, it returns None. The function also sets several attributes of the class instance based on the computed radial grid information before returning the radial_grid_info dictionary.
- idstools.compute.distributions.logger¶