BELFEM
0.9.3
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
148
~Abundance
() =
default
;
149
178
void
179
compute_molar_mass_and_impurity_from_volumes
(
180
const
Cell< string >
& aElements,
181
const
Vector< real >
& aVolumeFractions,
182
real
& aMolarMass,
183
real
& aImpurity )
const
;
184
218
void
219
compute_molar_mass_and_impurity_from_masses
(
220
const
Cell< string >
& aElements,
221
const
Vector< real >
& aMassFractions,
222
real
& aMolarMass,
223
real
& aImpurity )
const
;
224
242
real
243
compute_molar_mass
(
244
const
string
& aElement )
const
;
245
246
};
247
}
248
}
249
#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
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