bluemira.radiation_transport.midplane_temperature_density
1-D radiation model inspired by the PROCESS function “plot_radprofile” in plot_proc.py.
Classes
Midplane profiles parameters |
|
midplane profiles |
Functions
|
Calculate the core radiation source profiles. |
|
Calculation of core dimensionless radial coordinate rho (between 0 and 1). |
Calculation of electron density and electron temperature, |
Module Contents
- class bluemira.radiation_transport.midplane_temperature_density.MidplaneProfilesParams
Bases:
bluemira.base.parameter_frame.ParameterFrameMidplane profiles parameters
- alpha_n: bluemira.base.parameter_frame.Parameter[float]
Density profile factor
- alpha_t: bluemira.base.parameter_frame.Parameter[float]
Temperature profile index
- n_e_0: bluemira.base.parameter_frame.Parameter[float]
Electron density on axis
- n_e_ped: bluemira.base.parameter_frame.Parameter[float]
Electron density pedestal height
- n_e_sep: bluemira.base.parameter_frame.Parameter[float]
Electron density at separatrix
- rho_ped_n: bluemira.base.parameter_frame.Parameter[float]
Density pedestal r/a location
- rho_ped_t: bluemira.base.parameter_frame.Parameter[float]
Temperature pedestal r/a location
- n_points_core_95: bluemira.base.parameter_frame.Parameter[int]
rho discretisation to 95% of core
- n_points_core_99: bluemira.base.parameter_frame.Parameter[int]
rho discretisation to 99% of core
- n_points_mantle: bluemira.base.parameter_frame.Parameter[int]
rho discretisation to separatrix
- t_beta: bluemira.base.parameter_frame.Parameter[float]
Temperature profile index beta
- T_e_0: bluemira.base.parameter_frame.Parameter[float]
Electron temperature on axis
- T_e_ped: bluemira.base.parameter_frame.Parameter[float]
Electron temperature pedestal height
- T_e_sep: bluemira.base.parameter_frame.Parameter[float]
Electron temperature at separatrix
- class bluemira.radiation_transport.midplane_temperature_density.MidplaneProfiles
midplane profiles
- psi_n: numpy.typing.NDArray[numpy.float64]
squared dimensionless core radius
- ne: numpy.typing.NDArray[numpy.float64]
electron densities at the mid-plane. Unit [1/m^3]
- te: numpy.typing.NDArray[numpy.float64]
electron temperature at the mid-plane. Unit [keV]
- bluemira.radiation_transport.midplane_temperature_density.midplane_profiles(params: bluemira.base.parameter_frame.typed.ParameterFrameLike) MidplaneProfiles
Calculate the core radiation source profiles.
Temperature and density are assumed to be constant along a single flux tube.
- Returns:
Electron density and electron temperature as function of rho, from the magnetic axis to the separatrix along the midplane.
- Parameters:
params (bluemira.base.parameter_frame.typed.ParameterFrameLike)
- Return type:
- bluemira.radiation_transport.midplane_temperature_density.collect_rho_core_values(rho_ped: numpy.ndarray, n_points_core_95: int, n_points_core_99: int, n_points_mantle: int) numpy.ndarray
Calculation of core dimensionless radial coordinate rho (between 0 and 1).
- Parameters:
rho_ped (numpy.ndarray) – dimensionless pedestal radius. Values between 0 and 1
n_points_core_95 (int) – no of discretisation points to 95% of core
n_points_core_99 (int) – no of discretisation points to 99% of core
n_points_mantle (int) – no of discretisation points to separatrix
- Returns:
radial coordinate rho [dimensionless].
- Return type:
numpy.ndarray
Notes
The plasma bulk is divided into plasma core and plasma mantle according to rho rho is a nondimensional radial coordinate: rho = r/a (r varies from 0 to a)
- bluemira.radiation_transport.midplane_temperature_density.core_electron_density_temperature_profile(params: MidplaneProfilesParams, rho_core: numpy.ndarray, rho_ped: numpy.ndarray) MidplaneProfiles
Calculation of electron density and electron temperature, as function of rho, from the magnetic axis to the separatrix, along the midplane.
- Parameters:
params (MidplaneProfilesParams) – midplane parameters
rho_core (numpy.ndarray) – dimensionless core radius. Values between 0 and 1
rho_ped (numpy.ndarray) – dimensionless pedestal radius. Values between 0 and 1
- Returns:
electron density and electron temperature, stored as a MidplaneProfiles object.
- Return type:
Notes
The region that extends through the plasma core until its outer layer is referred as core. The region that extends from the pedestal to the separatrix is referred as pedestal.