mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Raise exception if periodic boundary used with rounded corners
This commit is contained in:
parent
dbb30c6eb1
commit
e2094435b8
1 changed files with 4 additions and 0 deletions
|
|
@ -2141,6 +2141,10 @@ def get_hexagonal_prism(edge_length=1., orientation='y',
|
|||
|
||||
# Handle rounded corners if given
|
||||
if corner_radius > 0.:
|
||||
if boundary_type == 'periodic':
|
||||
raise ValueError('Periodic boundary conditions not permitted when '
|
||||
'rounded corners are used.')
|
||||
|
||||
c = sqrt(3.)/2
|
||||
t = l - corner_radius/c
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue