BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
cl_Material_Abundance.hpp
Go to the documentation of this file.
1/*
2 * BELFEM -- The Berkeley Lab Finite Element Framework
3 * Copyright (c) 2026, The Regents of the University of California,
4 * through Lawrence Berkeley National Laboratory (subject to receipt of any required
5 * approvals from the U.S. Dept. of Energy). All rights reserved.
6 *
7 * Developers: Christian Messe, Gregory Giard
8 *
9 * See the top-level LICENSE file for the complete license and disclaimer.
10 */
11
12#ifndef BELFEM_CL_MATERIAL_ABUNDANCE_HPP
13#define BELFEM_CL_MATERIAL_ABUNDANCE_HPP
14
60
61#include "typedefs.hpp"
62#include "cl_Map.hpp"
63#include "cl_Vector.hpp"
64#include "cl_Cell.hpp"
65
66namespace belfem
67{
68 namespace material
69 {
77 typedef std::pair< Vector< real >, Vector< real > > AbundanceEntry ;
78
129 {
137
138 public:
139
146 Abundance();
147
151 ~Abundance() = default;
152
181 void
183 const Cell< string > & aElements,
184 const Vector< real > & aVolumeFractions,
185 real & aMolarMass,
186 real & aImpurity ) const;
187
221 void
223 const Cell< string > & aElements,
224 const Vector< real > & aMassFractions,
225 real & aMolarMass,
226 real & aImpurity ) const;
227
245 real
247 const string & aElement ) const;
248
249 };
250 }
251}
252#endif //BELFEM_CL_MATERIAL_ABUNDANCE_HPP
Column vector.
Definition cl_BZ_Vector.hpp:41
Abundance()
Constructor - initializes isotope database.
Definition cl_Material_Abundance.cpp:22
real compute_molar_mass(const string &aElement) const
Get molar mass of a single element.
Definition cl_Material_Abundance.cpp:455
~Abundance()=default
Destructor.
void compute_molar_mass_and_impurity_from_masses(const Cell< string > &aElements, const Vector< real > &aMassFractions, real &aMolarMass, real &aImpurity) const
Compute molar mass and impurity parameter from mass fractions.
Definition cl_Material_Abundance.cpp:379
void compute_molar_mass_and_impurity_from_volumes(const Cell< string > &aElements, const Vector< real > &aVolumeFractions, real &aMolarMass, real &aImpurity) const
Compute molar mass and impurity parameter from volume fractions.
Definition cl_Material_Abundance.cpp:339
Definition cl_BhCurve.cpp:19
std::pair< Vector< real >, Vector< real > > AbundanceEntry
Database entry for an element's isotopes.
Definition cl_Material_Abundance.hpp:77
USER GUIDES:
Definition cl_Capacitor.cpp:16
double real
Definition typedefs.hpp:36