bluemira.codes.openmc.sources

Neutronics sources

Functions

make_tokamak_source(→ tuple[list[openmc.Source], ...)

Make a tokamak neutron source using an equilibrium and PlasmaSourceParameters

make_ring_source(→ openmc.Source)

Create the ring source

create_ring_source(→ openmc.Source)

Creating simple line ring source lying on the Z=0 plane,

Module Contents

bluemira.codes.openmc.sources.make_tokamak_source(eq: bluemira.equilibria.equilibrium.Equilibrium, source_parameters: bluemira.codes.openmc.params.PlasmaSourceParameters, cell_side_length: float = 0.1) tuple[list[openmc.Source], float, float]

Make a tokamak neutron source using an equilibrium and PlasmaSourceParameters for PROCESS parabolic-pedestal profiles.

Parameters:
Returns:

  • source – Fusion source for OpenMC

  • source_rate – Absolute neutron production rate (used for tallying)

  • source_T_rate – Absolute plasma T consumption rate (used for tallying)

Return type:

tuple[list[openmc.Source], float, float]

bluemira.codes.openmc.sources.make_ring_source(source_parameters: bluemira.codes.openmc.params.PlasmaSourceParameters) openmc.Source

Create the ring source

Parameters:

source_parameters (bluemira.codes.openmc.params.PlasmaSourceParameters)

Return type:

openmc.Source

bluemira.codes.openmc.sources.create_ring_source(major_r_cm: float, shaf_shift_cm: float) openmc.Source

Creating simple line ring source lying on the Z=0 plane, at r = major radius + shafranov shift, producing 14.1 MeV neutrons with no variation in energy. A more accurate source will slightly affect the wall loadings and dpa profiles.

Parameters:
  • major_r_cm (float) – major radius [cm]

  • shaf_shift_cm (float) – shafranov shift [cm]

Return type:

openmc.Source