BELFEM
0.9.0
Berkeley Lab Finite Element Framework
Toggle main menu visibility
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
66
namespace
belfem
67
{
68
namespace
material
69
{
77
typedef
std::pair< Vector< real >,
Vector< real >
>
AbundanceEntry
;
78
128
class
Abundance
129
{
136
Map< string, AbundanceEntry >
mDatabase ;
137
138
public
:
139
146
Abundance
();
147
151
~Abundance
() =
default
;
152
181
void
182
compute_molar_mass_and_impurity_from_volumes
(
183
const
Cell< string >
& aElements,
184
const
Vector< real >
& aVolumeFractions,
185
real
& aMolarMass,
186
real
& aImpurity )
const
;
187
221
void
222
compute_molar_mass_and_impurity_from_masses
(
223
const
Cell< string >
& aElements,
224
const
Vector< real >
& aMassFractions,
225
real
& aMolarMass,
226
real
& aImpurity )
const
;
227
245
real
246
compute_molar_mass
(
247
const
string
& aElement )
const
;
248
249
};
250
}
251
}
252
#endif
//BELFEM_CL_MATERIAL_ABUNDANCE_HPP
cl_Cell.hpp
cl_Map.hpp
cl_Vector.hpp
belfem::Cell< string >
belfem::Map< string, AbundanceEntry >
belfem::Vector
Column vector.
Definition
cl_BZ_Vector.hpp:41
belfem::material::Abundance::Abundance
Abundance()
Constructor - initializes isotope database.
Definition
cl_Material_Abundance.cpp:22
belfem::material::Abundance::compute_molar_mass
real compute_molar_mass(const string &aElement) const
Get molar mass of a single element.
Definition
cl_Material_Abundance.cpp:455
belfem::material::Abundance::~Abundance
~Abundance()=default
Destructor.
belfem::material::Abundance::compute_molar_mass_and_impurity_from_masses
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
belfem::material::Abundance::compute_molar_mass_and_impurity_from_volumes
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
belfem::material
Definition
cl_BhCurve.cpp:19
belfem::material::AbundanceEntry
std::pair< Vector< real >, Vector< real > > AbundanceEntry
Database entry for an element's isotopes.
Definition
cl_Material_Abundance.hpp:77
belfem
USER GUIDES:
Definition
cl_Capacitor.cpp:16
belfem::real
double real
Definition
typedefs.hpp:36
typedefs.hpp
src
physics
materials
cl_Material_Abundance.hpp
Generated by
1.18.0