mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 20:45:35 -04:00
Using a normalized direction for plotting.
This commit is contained in:
parent
13b9061cf3
commit
23fc873a69
1 changed files with 2 additions and 2 deletions
|
|
@ -132,7 +132,7 @@ void create_ppm(Plot pl)
|
|||
break;
|
||||
}
|
||||
|
||||
Direction u {0.5, 0.5, 0.5};
|
||||
Direction u {0.7071, 0.7071, 0.0};
|
||||
|
||||
#pragma omp parallel
|
||||
{
|
||||
|
|
@ -837,7 +837,7 @@ void create_voxel(Plot pl)
|
|||
Position ll = pl.origin_ - pl.width_ / 2.;
|
||||
|
||||
// allocate and initialize particle
|
||||
Direction u {0.5, 0.5, 0.5};
|
||||
Direction u {0.7071, 0.7071, 0.0};
|
||||
Particle p;
|
||||
p.r() = ll;
|
||||
p.u() = u;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue