mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Don't guess thermal name in Material.add_s_alpha_beta
This commit is contained in:
parent
4d538282f6
commit
13dc40a66d
1 changed files with 1 additions and 8 deletions
|
|
@ -700,14 +700,7 @@ class Material(IDManagerMixin):
|
|||
cv.check_type('S(a,b) fraction', fraction, Real)
|
||||
cv.check_greater_than('S(a,b) fraction', fraction, 0.0, True)
|
||||
cv.check_less_than('S(a,b) fraction', fraction, 1.0, True)
|
||||
|
||||
new_name = openmc.data.get_thermal_name(name)
|
||||
if new_name != name:
|
||||
msg = 'OpenMC S(a,b) tables follow the GND naming convention. ' \
|
||||
'Table "{}" is being renamed as "{}".'.format(name, new_name)
|
||||
warnings.warn(msg)
|
||||
|
||||
self._sab.append((new_name, fraction))
|
||||
self._sab.append((name, fraction))
|
||||
|
||||
def make_isotropic_in_lab(self):
|
||||
self.isotropic = [x.name for x in self._nuclides]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue