mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Rotate azimuthal distributions by pi/2
This commit is contained in:
parent
684bc7ef1b
commit
45aeb35aa9
2 changed files with 3 additions and 3 deletions
|
|
@ -59,8 +59,8 @@ Direction PolarAzimuthal::sample() const
|
|||
double mu = mu_->sample();
|
||||
if (mu == 1.0) return u_ref_;
|
||||
|
||||
// Sample azimuthal angle
|
||||
double phi = phi_->sample();
|
||||
// Sample the azimuthal angle with an offset to match azimuth conventions
|
||||
double phi = phi_->sample() + 0.5*PI;
|
||||
return rotate_angle(u_ref_, mu, &phi);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
k-combined:
|
||||
3.026614E-01 3.952008E-03
|
||||
2.800827E-01 7.360163E-03
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue