From d1f71f23282960778cd9e4e77fb08a0e5cd0da3d Mon Sep 17 00:00:00 2001 From: Mikolaj Adam Kowalski Date: Wed, 26 Feb 2020 15:50:53 +0000 Subject: [PATCH] Address further comments by @simondrichards Corrects spelling and grammar. --- docs/source/usersguide/materials.rst | 4 ++-- openmc/element.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/source/usersguide/materials.rst b/docs/source/usersguide/materials.rst index 4468fd25e..4c6e86759 100644 --- a/docs/source/usersguide/materials.rst +++ b/docs/source/usersguide/materials.rst @@ -57,13 +57,13 @@ and are determined through a correlation based on measured data. It is also possible to perform enrichment of any element that is composed of two naturally-occurring isotopes (e.g. Li, B) in terms of atomic percent. -To invoke it, provide additional arguments `enrichment_target` to +To invoke this, provide the additional argument `enrichment_target` to :meth:`Material.add_element`. For example the following would enrich B10 to 30ao%:: mat.add_element('B', 1.0, enrichment=30.0, enrichment_target='B10') -In order to enrich an isotope in terms of mass percent (wo%). Provide extra +In order to enrich an isotope in terms of mass percent (wo%), provide the extra argument `enrichment_type`. For example the following would enrich Li6 to 15wo%:: mat.add_element('Li', 1.0, enrichment=15.0, enrichment_target='Li6', diff --git a/openmc/element.py b/openmc/element.py index 42079bc7d..d18c5213f 100644 --- a/openmc/element.py +++ b/openmc/element.py @@ -238,9 +238,9 @@ class Element(str): # Provide more informative error message for U235 if enrichment_target == 'U235': msg = "There is a special procedure for enrichment of U235 "\ - "in U. To invoke it do not specify neither "\ - "'enrichment_target' nor 'enrichment_type'. Provide "\ - "only enrichment as 'wo%'. See User Guide for more "\ + "in U. To invoke it, the arguments 'enrichment_taget'"\ + "and 'enrichment_type' should be omitted. Provide "\ + "only 'enrichment' as 'wo%'. See User Guide for more "\ "details" raise ValueError(msg)