From a11ccce8a3d8224413ce31fc2e2e0773bb00c50b Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Sun, 8 Nov 2015 16:06:34 -0500 Subject: [PATCH] Changed isotropic in lab scattering tag to iso-in-lab --- docs/source/usersguide/input.rst | 12 ++++++------ openmc/nuclide.py | 4 ++-- src/input_xml.F90 | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/source/usersguide/input.rst b/docs/source/usersguide/input.rst index 7815d8810..a20ceda18 100644 --- a/docs/source/usersguide/input.rst +++ b/docs/source/usersguide/input.rst @@ -1138,12 +1138,12 @@ Each ``material`` element can have the following attributes or sub-elements: An optional attribute/sub-element for each nuclide is ``scattering``. This attribute may be set to "ace" to use the scattering laws specified in the - ACE files (default). Alternatively, when set to "lab", the ACE scattering - laws are used to sample the outgoing energy but an isotropic-in-lab - distribution is used to sample the outgoing angle at each scattering - interaction. The ``scattering`` attribute may be most useful when using - OpenMC to compute multi-group cross-sections for deterministic transport - codes and to quantify the effects of anisotropic scattering. + ACE files (default). Alternatively, when set to "iso-in-lab", the ACE + scattering laws are used to sample the outgoing energy but an + isotropic-in-lab distribution is used to sample the outgoing angle at each + scattering interaction. The ``scattering`` attribute may be most useful + when using OpenMC to compute multi-group cross-sections for deterministic + transport codes and to quantify the effects of anisotropic scattering. *Default*: None diff --git a/openmc/nuclide.py b/openmc/nuclide.py index c2a4d8455..84ad112bc 100644 --- a/openmc/nuclide.py +++ b/openmc/nuclide.py @@ -102,9 +102,9 @@ class Nuclide(object): @scattering.setter def scattering(self, scattering): - if not scattering in ['ace', 'lab']: + if not scattering in ['ace', 'iso-in-lab']: msg = 'Unable to set scattering for Nuclide to {0} ' \ - 'which is not "ace" or "lab"'.format(scattering) + 'which is not "ace" or "iso-in-lab"'.format(scattering) raise ValueError(msg) self._scattering = scattering diff --git a/src/input_xml.F90 b/src/input_xml.F90 index b498b4ca7..70b9302df 100644 --- a/src/input_xml.F90 +++ b/src/input_xml.F90 @@ -1938,7 +1938,7 @@ contains ! Check enforced isotropic lab scattering if (check_for_node(node_nuc, "scattering")) then call get_node_value(node_nuc, "scattering", temp_str) - if (trim(adjustl(to_lower(temp_str))) == "lab") then + if (trim(adjustl(to_lower(temp_str))) == "iso-in-lab") then call list_iso_lab % append(1) else if (trim(adjustl(to_lower(temp_str))) == "ace") then call list_iso_lab % append(0)