Add Material::volume() accessor function

This commit is contained in:
Paul Romano 2019-07-03 23:08:08 -05:00
parent 1c97438be0
commit bbf529bef0
2 changed files with 18 additions and 8 deletions

View file

@ -80,6 +80,10 @@ public:
//! \param[in] units Units of density
void set_density(double density, gsl::cstring_span units);
//! Get volume of material
//! \return Volume in [cm^3]
double volume() const;
//! Write material data to HDF5
void to_hdf5(hid_t group) const;