transport
Transport data structures.
            DT_5050_MIXTURE = FractionalFuelComposition(D=0.5, T=0.5, He3=0.0)
  
      module-attribute
  
    Fractional fuel composition dataclass.
Notes
Fuel fractions are taken to be constant along the profile. Note that the D-He-3 reaction is aneutronic, but dilutes the fuel in the case that it is included in the fuel density profile.
            annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216)
  
      module-attribute
  
    
            FractionalFuelComposition
    Fractional fuel composition dataclass.
Notes
Fuel fractions are taken to be constant along the profile. Note that the D-He-3 reaction is aneutronic, but dilutes the fuel in the case that it is included in the fuel density profile.
Source code in tokamak_neutron_source/transport.py
                
            He3 = 0.0
  
      class-attribute
  
    Convert a string or number to a floating point number, if possible.
            TransportInformation
    Transport information.
Source code in tokamak_neutron_source/transport.py
                | 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |  | 
            from_profiles(ion_temperature_profile, fuel_density_profile, rho_profile, fuel_composition=FractionalFuelComposition(D=0.5, T=0.5, He3=0.0))
  
      classmethod
  
    Instantiate TransportInformation from profile arrays.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| ion_temperature_profile | ndarray | Ion temperature profile [keV] | required | 
| fuel_density_profile | ndarray | Fuel density profile [1/m^3] | required | 
| rho_profile | ndarray | Normalised radial coordinate profile | required | 
| fuel_composition | FractionalFuelComposition | Fractional fuel composition (constant fraction across profile) | FractionalFuelComposition(D=0.5, T=0.5, He3=0.0) | 
Source code in tokamak_neutron_source/transport.py
              
            from_parameterisations(ion_temperature_profile, fuel_density_profile, rho_profile, fuel_composition=FractionalFuelComposition(D=0.5, T=0.5, He3=0.0))
  
      classmethod
  
    Instantiate TransportInformation from profile parameterisations.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| ion_temperature_profile | PlasmaProfile | Ion temperature profile parameterisation | required | 
| fuel_density_profile | PlasmaProfile | Fuel density profile parameterisation | required | 
| rho_profile | NDArray | Noramlised radial coordinate profile | required | 
| fuel_composition | FractionalFuelComposition | Fractional fuel composition (constant fraction across profile) | FractionalFuelComposition(D=0.5, T=0.5, He3=0.0) | 
Source code in tokamak_neutron_source/transport.py
              
            from_jetto(jsp_file, frame_number=-1)
  
      classmethod
  
    Instantiate TransportInformation from JETTO file.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| jsp_file | str | Path to the JETTO .jsp file | required | 
| frame_number | int | The specific time-slice of the JETTO run that we want to investigate. This ensures that all of the extracted quantities are describing the same point in time. | -1 | 
Source code in tokamak_neutron_source/transport.py
              
            plot()
    Plot the TransportInformation
Returns:
| Name | Type | Description | 
|---|---|---|
| f | Figure | Matplotlib Figure object | 
| ax | Axes | Matplotlib Axes object | 
Source code in tokamak_neutron_source/transport.py
              
            DataProfile
    
              Bases: tokamak_neutron_source.profile.PlasmaProfile
Plasma profile from data.
Notes
Normalised radius conventions are not enforced here. Linear interpolation is used.
Source code in tokamak_neutron_source/profile.py
                
            value(rho)
    Calculate the value of the profile at given value(s) of rho.
            PlasmaProfile
    
              Bases: abc.ABC
Abstract base class for plasma profiles.
Source code in tokamak_neutron_source/profile.py
                
            set_scale(scale=1.0)
    
            load_jsp(file, frame_number=-1)
    Load a JETTO JSP binary file.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| file | str | Path | File to read | required | 
| frame_number | int | Frame number to read | -1 | 
Returns:
| Type | Description | 
|---|---|
| SimpleJETTOOutput | Simplified JETTO output | 
Raises:
| Type | Description | 
|---|---|
| ValueError | If the specified frame number is invalid. | 
Notes
For details, refer to https://users.euro-fusion.org/pages/data-cmg/wiki/JETTO_ppfjsp.html
The core values (rho = 0.0) are not provided by JETTO. Here we extrapolate them.
JETTO presently does not provide Helium-3 densities. These are taken to be 0.0.
JETTO presently does not provide D-D fusion power or reaction rates, or some files may potentially do some but only for one of the channels.