mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Added MGXS support for void materials
This commit is contained in:
parent
ca602e8b97
commit
0911de76eb
1 changed files with 9 additions and 2 deletions
|
|
@ -91,8 +91,15 @@ contains
|
|||
else
|
||||
! Since the MGXS can be angle dependent, this needs to be done
|
||||
! After every collision for the MGXS mode
|
||||
call calculate_mgxs(macro_xs(p % material) % obj, p % g, &
|
||||
p % coord(p % n_coord) % uvw, material_xs)
|
||||
if (p % material /= MATERIAL_VOID) then
|
||||
call calculate_mgxs(macro_xs(p % material) % obj, p % g, &
|
||||
p % coord(p % n_coord) % uvw, material_xs)
|
||||
else
|
||||
material_xs % total = ZERO
|
||||
material_xs % elastic = ZERO
|
||||
material_xs % absorption = ZERO
|
||||
material_xs % nu_fission = ZERO
|
||||
end if
|
||||
end if
|
||||
|
||||
! Find the distance to the nearest boundary
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue