Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion documentation/proc-pages/io/utilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ The configuration file `config_evaluate_uncertainties.json` uses the [JSON forma
"Std": 0.1
},
{
"Varname": "coreradius",
"Varname": "radius_plasma_core_norm",
"Errortype": "Gaussian",
"Mean": 0.6,
"Std": 0.15
Expand Down
4 changes: 2 additions & 2 deletions documentation/proc-pages/physics-models/error.txt
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ The synchrotron radiation power\footnote{Albajar, Nuclear Fusion
plasma core. The wall reflection factor \texttt{f_sync_reflect} may be set by the
user.

By changing the input parameter \texttt{coreradius}, the user may set
By changing the input parameter \texttt{radius_plasma_core_norm}, the user may set
the normalised radius defining the core region. Only the impurity and
synchrotron radiation from the core region affects the confinement
scaling. Figure 1 below shows the radiation power contributions.
Expand Down Expand Up @@ -999,7 +999,7 @@ radiation
\texttt{i_rad_loss\ =\ 1} -- Total power lost is scaling power plus core
radiation only

\texttt{pscaling\ +\ pcoreradpv\ =\ f_alpha_plasma*alpha_power_density\ +\ charged_power_density\ +\ pden_plasma_ohmic_mw\ +\ pinjmw/vol_plasma}
\texttt{pscaling\ +\ pden_plasma_core_rad_mw\ =\ f_alpha_plasma*alpha_power_density\ +\ charged_power_density\ +\ pden_plasma_ohmic_mw\ +\ pinjmw/vol_plasma}

\texttt{i_rad_loss\ =\ 2} -- Total power lost is scaling power only, with
no additional allowance for radiation. This is not recommended for power
Expand Down
192 changes: 153 additions & 39 deletions documentation/proc-pages/physics-models/plasma_radiation.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import numpy as np
from bokeh.models import ColumnDataSource
from bokeh.plotting import figure, output_file, save

x = np.linspace(0.0, 1, 500)
y = ((1 - x) ** 0.62 / (1 + (1 - x) ** 0.41) ** 1.51) / 0.3511112189
y2 = (1 - x) ** 0.5
source = ColumnDataSource(data={"x": x, "y": y})
source2 = ColumnDataSource(data={"x": x, "y2": y2})

plot = figure(
x_range=(0, 1),
y_range=(0, 1),
width=400,
height=400,
title=r"Normalised synchrotron loss vs wall reflectivity",
)
plot.xaxis.axis_label = r"Wall reflectivity, \ $$[f_{\text{reflect}}]$$"
plot.yaxis.axis_label = "Normalized synchrotron radiation loss"

plot.line(
"x",
"y",
source=source,
line_width=3,
line_alpha=0.6,
line_color="blue",
legend_label="Fidone - Correction",
)
plot.line(
"x",
"y2",
source=source2,
line_width=3,
line_alpha=0.6,
line_color="red",
legend_label="Albajar - Original",
)

plot.legend.title = "Legend"
plot.legend.location = "bottom_left"

# Save the plot as HTML
output_file(
"psync_albajar_fidone_reflectivity.html",
title=r"Normalised synchrotron radiation loss vs wall reflectivity",
)
save(plot)
14 changes: 7 additions & 7 deletions examples/data/csv_output_large_tokamak_MFILE.DAT
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,9 @@
Total_power_deposited_in_plasma_(MW)____________________________________ (tot_power_plasma)____________ 3.7935E+02 OP
Bremsstrahlung_radiation_power_(MW)_____________________________________ (pbrempv*vol)_________________ 6.4356E+01 OP
Line_radiation_power_(MW)_______________________________________________ (plinepv*vol)_________________ 1.4715E+02 OP
Synchrotron_radiation_power_(MW)________________________________________ (pden_plasma_sync_mw*vol)_________________ 1.2665E+01 OP
Synchrotron_radiation_power_(MW)________________________________________ (p_plasma_sync_mw)_________________ 1.2665E+01 OP
Synchrotron_wall_reflectivity_factor____________________________________ (f_sync_reflect)_______________________ 6.0000E-01
Normalised_minor_radius_defining_'core'_________________________________ (coreradius)__________________ 7.5000E-01
Normalised_minor_radius_defining_'core'_________________________________ (radius_plasma_core_norm)__________________ 7.5000E-01
Fraction_of_core_radiation_subtracted_from_P_L__________________________ (coreradiationfraction)_______ 6.0000E-01
Radiation_power_from_inner_zone_(MW)____________________________________ (p_plasma_inner_rad_mw)_____________ 8.9376E+01 OP
Radiation_power_from_outer_zone_(MW)____________________________________ (p_plasma_outer_rad_mw)_____________ 1.3480E+02 OP
Expand All @@ -437,10 +437,10 @@
LCFS_radiation_fraction_=_total_radiation_in_LCFS_/_total_power_deposite (rad_fraction_LCFS)___________ 5.9094E-01 OP
Nominal_mean_radiation_load_on_inside_surface_of_reactor_(MW/m2)________ (pflux_fw_rad_mw)_________________ 1.7570E-01 OP
Peaking_factor_for_radiation_wall_load__________________________________ (f_fw_rad_max)_________________ 3.3300E+00 IP
Maximum_permitted_radiation_wall_load_(MW/m^2)__________________________ (maxradwallload)______________ 1.0000E+00 IP
Maximum_permitted_radiation_wall_load_(MW/m^2)__________________________ (pflux_fw_rad_max)______________ 1.0000E+00 IP
Peak_radiation_wall_load_(MW/m^2)_______________________________________ (pflux_fw_rad_max_mw)_____________ 5.8507E-01 OP
Fast_alpha_particle_power_incident_on_the_first_wall_(MW)_______________ (palpfwmw)____________________ 1.5907E+01 OP
Nominal_mean_neutron_load_on_inside_surface_of_reactor_(MW/m2)__________ (wallmw)______________________ 9.9792E-01 OP
Fast_alpha_particle_power_incident_on_the_first_wall_(MW)_______________ (p_fw_alpha_mw)____________________ 1.5907E+01 OP
Nominal_mean_neutron_load_on_inside_surface_of_reactor_(MW/m2)__________ (pflux_fw_neutron_mw)______________________ 9.9792E-01 OP
Radiation_power_from_SoL_(MW)___________________________________________ (pradsolmw)___________________ 1.2414E+02 OP
SoL_radiation_fraction_=_total_radiation_in_SoL_/_total_power_accross_se (rad_fraction_sol)____________ 8.0000E-01 IP
Radiation_fraction_total_=_SoL_+_LCFS_radiation_/_total_power_deposited_ (rad_fraction_total)__________ 9.1819E-01 OP
Expand Down Expand Up @@ -1137,7 +1137,7 @@
Total_High-grade_thermal_power_(MW)_____________________________________ (pthermmw)____________________ 2.1348E+03
Number_of_primary_heat_exchangers_______________________________________ (nphx)________________________ 3 OP
Transport_power_from_scaling_law_(MW)___________________________________ (pscalingmw)__________________ 2.8997E+02
Radiation_power_from_inside_"coreradius"_(MW)___________________________ (pcoreradmw.)_________________ 8.9376E+01
Radiation_power_from_inside_"radius_plasma_core_norm"_(MW)___________________________ (pcoreradmw.)_________________ 8.9376E+01
Total_(MW)______________________________________________________________ ______________________________ 3.7935E+02
Alpha_power_deposited_in_plasma_(MW)____________________________________ (falpha*palpmw)_______________ 3.0224E+02
Power_from_charged_products_of_DD_and/or_D-He3_fusion_(MW)______________ (pchargemw.)__________________ 1.2322E+00
Expand Down Expand Up @@ -1664,7 +1664,7 @@ pheat = 75.0
**********************

* Normalised radius defining the 'core' region
coreradius = 0.75
radius_plasma_core_norm = 0.75

* fraction of radiation from 'core' region that is subtracted
coreradiationfraction = 0.6
Expand Down
14 changes: 7 additions & 7 deletions examples/data/large_tokamak_1_MFILE.DAT
Original file line number Diff line number Diff line change
Expand Up @@ -427,20 +427,20 @@
Total_power_deposited_in_plasma_(MW)____________________________________ (tot_power_plasma)____________ 3.8950E+02 OP
Bremsstrahlung_radiation_power_(MW)_____________________________________ (pbrempv*vol)_________________ 6.5195E+01 OP
Line_radiation_power_(MW)_______________________________________________ (plinepv*vol)_________________ 1.4609E+02 OP
Synchrotron_radiation_power_(MW)________________________________________ (pden_plasma_sync_mw*vol)_________________ 1.5187E+01 OP
Synchrotron_radiation_power_(MW)________________________________________ (p_plasma_sync_mw)_________________ 1.5187E+01 OP
Synchrotron_wall_reflectivity_factor____________________________________ (f_sync_reflect)_______________________ 6.0000E-01
Normalised_minor_radius_defining_'core'_________________________________ (coreradius)__________________ 7.5000E-01
Normalised_minor_radius_defining_'core'_________________________________ (radius_plasma_core_norm)__________________ 7.5000E-01
Fraction_of_core_radiation_subtracted_from_P_L__________________________ (coreradiationfraction)_______ 6.0000E-01
Radiation_power_from_inner_zone_(MW)____________________________________ (p_plasma_inner_rad_mw)_____________ 9.1650E+01 OP
Radiation_power_from_outer_zone_(MW)____________________________________ (p_plasma_outer_rad_mw)_____________ 1.3482E+02 OP
Total_radiation_power_from_inside_LCFS_(MW)_____________________________ (p_plasma_rad_mw)______________________ 2.2647E+02 OP
LCFS_radiation_fraction_=_total_radiation_in_LCFS_/_total_power_deposite (rad_fraction_LCFS)___________ 5.8144E-01 OP
Nominal_mean_radiation_load_on_inside_surface_of_reactor_(MW/m2)________ (pflux_fw_rad_mw)_________________ 1.7749E-01 OP
Peaking_factor_for_radiation_wall_load__________________________________ (f_fw_rad_max)_________________ 3.3300E+00 IP
Maximum_permitted_radiation_wall_load_(MW/m^2)__________________________ (maxradwallload)______________ 1.0000E+00 IP
Maximum_permitted_radiation_wall_load_(MW/m^2)__________________________ (pflux_fw_rad_max)______________ 1.0000E+00 IP
Peak_radiation_wall_load_(MW/m^2)_______________________________________ (pflux_fw_rad_max_mw)_____________ 5.9106E-01 OP
Fast_alpha_particle_power_incident_on_the_first_wall_(MW)_______________ (palpfwmw)____________________ 1.6182E+01 OP
Nominal_mean_neutron_load_on_inside_surface_of_reactor_(MW/m2)__________ (wallmw)______________________ 1.0152E+00 OP
Fast_alpha_particle_power_incident_on_the_first_wall_(MW)_______________ (p_fw_alpha_mw)____________________ 1.6182E+01 OP
Nominal_mean_neutron_load_on_inside_surface_of_reactor_(MW/m2)__________ (pflux_fw_neutron_mw)______________________ 1.0152E+00 OP
Power_incident_on_the_divertor_targets_(MW)_____________________________ (ptarmw)______________________ 3.2606E+01 OP
Fraction_of_power_to_the_lower_divertor_________________________________ (ftar)________________________ 1.0000E+00 IP
Outboard_side_heat_flux_decay_length_(m)________________________________ (lambdaio)____________________ 1.5700E-03 OP
Expand Down Expand Up @@ -1132,7 +1132,7 @@
Total_High-grade_thermal_power_(MW)_____________________________________ (pthermmw)____________________ 2.1751E+03
Number_of_primary_heat_exchangers_______________________________________ (nphx)________________________ 3 OP
Transport_power_from_scaling_law_(MW)___________________________________ (pscalingmw)__________________ 2.9785E+02
Radiation_power_from_inside_"coreradius"_(MW)___________________________ (pcoreradmw.)_________________ 9.1650E+01
Radiation_power_from_inside_"radius_plasma_core_norm"_(MW)___________________________ (pcoreradmw.)_________________ 9.1650E+01
Total_(MW)______________________________________________________________ ______________________________ 3.8950E+02
Alpha_power_deposited_in_plasma_(MW)____________________________________ (falpha*palpmw)_______________ 3.0746E+02
Power_from_charged_products_of_DD_and/or_D-He3_fusion_(MW)______________ (pchargemw.)__________________ 1.2659E+00
Expand Down Expand Up @@ -1658,7 +1658,7 @@ pheat = 75.0
**********************

* Normalised radius defining the 'core' region
coreradius = 0.75
radius_plasma_core_norm = 0.75

* fraction of radiation from 'core' region that is subtracted
coreradiationfraction = 0.6
Expand Down
14 changes: 7 additions & 7 deletions examples/data/large_tokamak_2_MFILE.DAT
Original file line number Diff line number Diff line change
Expand Up @@ -427,20 +427,20 @@
Total_power_deposited_in_plasma_(MW)____________________________________ (tot_power_plasma)____________ 3.8950E+02 OP
Bremsstrahlung_radiation_power_(MW)_____________________________________ (pbrempv*vol)_________________ 6.5195E+01 OP
Line_radiation_power_(MW)_______________________________________________ (plinepv*vol)_________________ 1.4609E+02 OP
Synchrotron_radiation_power_(MW)________________________________________ (pden_plasma_sync_mw*vol)_________________ 1.5187E+01 OP
Synchrotron_radiation_power_(MW)________________________________________ (p_plasma_sync_mw)_________________ 1.5187E+01 OP
Synchrotron_wall_reflectivity_factor____________________________________ (f_sync_reflect)_______________________ 6.0000E-01
Normalised_minor_radius_defining_'core'_________________________________ (coreradius)__________________ 7.5000E-01
Normalised_minor_radius_defining_'core'_________________________________ (radius_plasma_core_norm)__________________ 7.5000E-01
Fraction_of_core_radiation_subtracted_from_P_L__________________________ (coreradiationfraction)_______ 6.0000E-01
Radiation_power_from_inner_zone_(MW)____________________________________ (p_plasma_inner_rad_mw)_____________ 9.1650E+01 OP
Radiation_power_from_outer_zone_(MW)____________________________________ (p_plasma_outer_rad_mw)_____________ 1.3482E+02 OP
Total_radiation_power_from_inside_LCFS_(MW)_____________________________ (p_plasma_rad_mw)______________________ 2.2647E+02 OP
LCFS_radiation_fraction_=_total_radiation_in_LCFS_/_total_power_deposite (rad_fraction_LCFS)___________ 5.8144E-01 OP
Nominal_mean_radiation_load_on_inside_surface_of_reactor_(MW/m2)________ (pflux_fw_rad_mw)_________________ 1.7749E-01 OP
Peaking_factor_for_radiation_wall_load__________________________________ (f_fw_rad_max)_________________ 3.3300E+00 IP
Maximum_permitted_radiation_wall_load_(MW/m^2)__________________________ (maxradwallload)______________ 1.0000E+00 IP
Maximum_permitted_radiation_wall_load_(MW/m^2)__________________________ (pflux_fw_rad_max)______________ 1.0000E+00 IP
Peak_radiation_wall_load_(MW/m^2)_______________________________________ (pflux_fw_rad_max_mw)_____________ 5.9106E-01 OP
Fast_alpha_particle_power_incident_on_the_first_wall_(MW)_______________ (palpfwmw)____________________ 1.6182E+01 OP
Nominal_mean_neutron_load_on_inside_surface_of_reactor_(MW/m2)__________ (wallmw)______________________ 1.0152E+00 OP
Fast_alpha_particle_power_incident_on_the_first_wall_(MW)_______________ (p_fw_alpha_mw)____________________ 1.6182E+01 OP
Nominal_mean_neutron_load_on_inside_surface_of_reactor_(MW/m2)__________ (pflux_fw_neutron_mw)______________________ 1.0152E+00 OP
Power_incident_on_the_divertor_targets_(MW)_____________________________ (ptarmw)______________________ 3.2606E+01 OP
Fraction_of_power_to_the_lower_divertor_________________________________ (ftar)________________________ 1.0000E+00 IP
Outboard_side_heat_flux_decay_length_(m)________________________________ (lambdaio)____________________ 1.5700E-03 OP
Expand Down Expand Up @@ -1132,7 +1132,7 @@
Total_High-grade_thermal_power_(MW)_____________________________________ (pthermmw)____________________ 2.1751E+03
Number_of_primary_heat_exchangers_______________________________________ (nphx)________________________ 3 OP
Transport_power_from_scaling_law_(MW)___________________________________ (pscalingmw)__________________ 2.9785E+02
Radiation_power_from_inside_"coreradius"_(MW)___________________________ (pcoreradmw.)_________________ 9.1650E+01
Radiation_power_from_inside_"radius_plasma_core_norm"_(MW)___________________________ (pcoreradmw.)_________________ 9.1650E+01
Total_(MW)______________________________________________________________ ______________________________ 3.8950E+02
Alpha_power_deposited_in_plasma_(MW)____________________________________ (falpha*palpmw)_______________ 3.0746E+02
Power_from_charged_products_of_DD_and/or_D-He3_fusion_(MW)______________ (pchargemw.)__________________ 1.2659E+00
Expand Down Expand Up @@ -1658,7 +1658,7 @@ pheat = 75.0
**********************

* Normalised radius defining the 'core' region
coreradius = 0.75
radius_plasma_core_norm = 0.75

* fraction of radiation from 'core' region that is subtracted
coreradiationfraction = 0.6
Expand Down
Loading