From 4dd663dd781560802f8e4374a2ddf769a71894db Mon Sep 17 00:00:00 2001 From: Sam Shaner Date: Thu, 10 Nov 2016 17:19:39 -0500 Subject: [PATCH] changed molar_mass to average_molar_mass --- openmc/material.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/openmc/material.py b/openmc/material.py index 4b382c5e3..70a070ddd 100644 --- a/openmc/material.py +++ b/openmc/material.py @@ -64,12 +64,10 @@ class Material(object): List in which each item is a 3-tuple consisting of an :class:`openmc.Nuclide` instance, the percent density, and the percent type ('ao' or 'wo'). - molar_mass : float - The molar mass of the material computed in units of grams per mole of - nuclides in a material. This entails that the molar mass does not depend - on the magnitude of the sum of atomic amounts of elements and nuclides - in the material. For instance, the molar mass of UO2 would be - ~90 g/mol. + average_molar_mass : float + The average molar mass of nuclides in the material in units of grams per + mol. For example, UO2 with 3 nuclides will have an average molar mass + of 270 / 3 = 90 g / mol. """ @@ -201,7 +199,7 @@ class Material(object): return self._distrib_otf_file @property - def molar_mass(self): + def average_molar_mass(self): # Get a list of all the nuclides, with elements expanded nuclide_densities = self.get_nuclide_densities()