Skip to content

Commit

Permalink
Fix omission of rec multiplier in fast recycling
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekryjak committed Oct 1, 2023
1 parent b8910c9 commit 7b8e026
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/recycling.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void Recycling::transform(Options& state) {
// Blend fast (ion energy) and thermal (constant energy) recycling
// Calculate returning neutral heat flow in [W]
BoutReal neutral_heatflow =
ion_heatflow * channel.target_fast_recycle_energy_factor * channel.target_fast_recycle_fraction // Fast recycling part
ion_heatflow * channel.target_multiplier * channel.target_fast_recycle_energy_factor * channel.target_fast_recycle_fraction // Fast recycling part
+ flow * (1 - channel.target_fast_recycle_fraction) * channel.target_energy; // Thermal recycling part

// Divide heat flow in [W] by cell volume to get source in [m^-3 s^-1]
Expand Down Expand Up @@ -245,7 +245,7 @@ void Recycling::transform(Options& state) {
// Blend fast (ion energy) and thermal (constant energy) recycling
// Calculate returning neutral heat flow in [W]
BoutReal neutral_heatflow =
ion_heatflow * channel.target_fast_recycle_energy_factor * channel.target_fast_recycle_fraction // Fast recycling part
ion_heatflow * channel.target_multiplier * channel.target_fast_recycle_energy_factor * channel.target_fast_recycle_fraction // Fast recycling part
+ flow * (1 - channel.target_fast_recycle_fraction) * channel.target_energy; // Thermal recycling part


Expand Down Expand Up @@ -310,7 +310,7 @@ void Recycling::transform(Options& state) {
// Blend fast (ion energy) and thermal (constant energy) recycling
// Calculate returning neutral heat flow in [W]
BoutReal neutral_heatflow =
ion_heatflow * channel.sol_fast_recycle_energy_factor * channel.sol_fast_recycle_fraction // Fast recycling part
ion_heatflow * channel.sol_multiplier * channel.sol_fast_recycle_energy_factor * channel.sol_fast_recycle_fraction // Fast recycling part
+ recycle_particle_flow * (1 - channel.sol_fast_recycle_fraction) * channel.sol_energy; // Thermal recycling part

// Divide heat flow in [W] by cell volume to get energy source in [m^-3 s^-1]
Expand Down Expand Up @@ -358,7 +358,7 @@ void Recycling::transform(Options& state) {
// Blend fast (ion energy) and thermal (constant energy) recycling
// Calculate returning neutral heat flow in [W]
BoutReal neutral_heatflow =
ion_heatflow * channel.pfr_fast_recycle_energy_factor * channel.pfr_fast_recycle_fraction // Fast recycling part
ion_heatflow * channel.pfr_multiplier * channel.pfr_fast_recycle_energy_factor * channel.pfr_fast_recycle_fraction // Fast recycling part
+ recycle_particle_flow * (1 - channel.pfr_fast_recycle_fraction) * channel.pfr_energy; // Thermal recycling part

// Divide heat flow in [W] by cell volume to get energy source in [m^-3 s^-1]
Expand Down

0 comments on commit 7b8e026

Please sign in to comment.