Skip to content

Commit 6f17182

Browse files
committed
Revert explicit void treatment in kinetic random ray
1 parent 63d1f69 commit 6f17182

2 files changed

Lines changed: 7 additions & 18 deletions

File tree

src/random_ray/random_ray.cpp

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ void RandomRay::attenuate_flux_flat_source(
504504
}
505505

506506
// Alternative flux attenuation function for true void regions.
507+
// TODO: Implement support for time-dependent voids
507508
void RandomRay::attenuate_flux_flat_source_void(
508509
SourceRegionHandle& srh, double distance, bool is_active, Position r)
509510
{
@@ -549,24 +550,6 @@ void RandomRay::attenuate_flux_flat_source_void(
549550
angular_flux_[g] += srh.external_source(g) * distance;
550551
}
551552
}
552-
553-
if (settings::kinetic_simulation && !simulation::is_initial_condition) {
554-
for (int g = 0; g < negroups_; g++) {
555-
if (RandomRay::time_method_ == RandomRayTimeMethod::ISOTROPIC) {
556-
angular_flux_[g] -= srh.phi_prime(g) * distance;
557-
} else if (RandomRay::time_method_ == RandomRayTimeMethod::PROPAGATION) {
558-
float inverse_vbar = domain_->inverse_vbar_[material * negroups_ + g];
559-
float T1 = srh.T1(g);
560-
561-
// Source Derivative Propogation terms for Characteristic Equation
562-
angular_flux_[g] -= inverse_vbar * angular_flux_prime_[g] * distance;
563-
angular_flux_[g] -= distance * distance * 0.5f * T1;
564-
565-
// Time Derivative Characteristic Equation
566-
angular_flux_prime_[g] += T1 * distance;
567-
}
568-
}
569-
}
570553
}
571554

572555
void RandomRay::attenuate_flux_linear_source(

src/settings.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,12 @@ void get_run_parameters(pugi::xml_node node_base)
266266
fatal_error("Unsupported solver selected for kinetic simulation. Kinetic "
267267
"simulations currently only support the random ray solver.");
268268
}
269+
if (run_mode != RunMode::EIGENVALUE) {
270+
fatal_error(
271+
"Unsupported run mode selected for kinetic simulation. Kinetic "
272+
"simulations currently only support run mode based on an eigenvalue "
273+
"simulation establishing an initial condition.");
274+
}
269275
}
270276

271277
// Get timestep parameters for kinetic simulations

0 commit comments

Comments
 (0)