diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c14a10..f0619ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## Unreleased + ## v2.0.0 (2025-11-07) ### BREAKING CHANGE diff --git a/Doxyfile b/Doxyfile index 26fe876..e76f4a4 100644 --- a/Doxyfile +++ b/Doxyfile @@ -2570,7 +2570,7 @@ HIDE_UNDOC_RELATIONS = YES # set to NO # The default value is: NO. -HAVE_DOT = NO +HAVE_DOT = YES # The DOT_NUM_THREADS specifies the number of dot invocations Doxygen is allowed # to run in parallel. When set to 0 Doxygen will base this on the number of @@ -2798,7 +2798,7 @@ DIR_GRAPH_MAX_DEPTH = 1 # The default value is: png. # This tag requires that the tag HAVE_DOT is set to YES. -DOT_IMAGE_FORMAT = png +DOT_IMAGE_FORMAT = svg # If DOT_IMAGE_FORMAT is set to svg or svg:svg or svg:svg:core, then this option # can be set to YES to enable generation of interactive SVG images that allow @@ -2812,7 +2812,7 @@ DOT_IMAGE_FORMAT = png # The default value is: NO. # This tag requires that the tag HAVE_DOT is set to YES. -INTERACTIVE_SVG = NO +INTERACTIVE_SVG = YES # The DOT_PATH tag can be used to specify the path where the dot tool can be # found. If left blank, it is assumed the dot tool can be found in the path. diff --git a/docs/html/annotated.html b/docs/html/annotated.html index 51f8c56..26930cf 100644 --- a/docs/html/annotated.html +++ b/docs/html/annotated.html @@ -29,7 +29,7 @@
| ▼Nfourdst | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▼Natomic | Contains classes and functions related to atomic data, such as properties of atomic species | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▼Natomic | Contains canonical information about atomic species and elements used by 4D-STAR | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CSpecies | Represents an atomic species (isotope) with its fundamental physical properties | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▼Ncomposition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▼Ncomposition | Utilities and types for representing and manipulating chemical compositions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▼Nexceptions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CCompositionEntryError | Base class for exceptions related to individual entries within a composition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CCompositionError | Base class for exceptions related to composition objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CCompositionModeError | Exception thrown due to a conflict in composition modes at the entry level | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CCompositionNotFinalizedError | Exception thrown when an operation is attempted on a composition that has not been finalized | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CEntryAlreadyInitializedError | Exception thrown when attempting to initialize a composition entry that has already been initialized | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CFailedToFinalizeCompositionError | Exception thrown when the finalization process of a composition fails | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CInvalidCompositionError | Exception thrown when a composition is in an invalid or inconsistent state | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CInvalidMixingMode | Exception thrown for an invalid or unsupported mixing mode | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CInvalidSpeciesSymbolError | Exception thrown for an invalid chemical species symbol in a composition entry | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CInvalidSymbolError | Exception thrown when a symbol used in a composition is invalid | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CUnregisteredSymbolError | Exception thrown when a symbol is used that has not been registered | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CCompositionError | Base class for exceptions related to composition objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CInvalidCompositionError | Exception thrown when a composition is in an invalid or inconsistent state | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CSpeciesError | Base class for exceptions related to atomic species | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CUnknownSymbolError | Exception thrown when an unknown symbol is encountered | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CUnregisteredSymbolError | Exception thrown when a symbol is used that has not been registered | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CCanonicalComposition | Represents the canonical (X, Y, Z) composition of stellar material | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▼CComposition | Manages a collection of chemical species and their abundances | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CCompositionCache | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CCompositionEntry | Represents a single entry (an isotope) within a composition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CGlobalComposition | Represents global properties of a finalized composition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CCompositionCache | Caches computed properties of the composition to avoid redundant calculations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▼Nstd | STL namespace | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Chash< fourdst::atomic::Species > | Specialization of std::hash for fourdst::atomic::Species | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CCompositionAbstract | Abstract base class for chemical composition representations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- fourdst::libcomposition v1.9.0
+ fourdst::libcomposition v2.0.0
Robust atomic species information library
|
@@ -108,8 +108,18 @@ $(function(){initNavTree('atomic_species_8h.html',''); initResizable(true); });
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Namespaces | |
| namespace | fourdst::atomic |
| Contains classes and functions related to atomic data, such as properties of atomic species. | |
| Contains canonical information about atomic species and elements used by 4D-STAR. | |
| namespace | fourdst |
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| double | fourdst::atomic::convert_jpi_to_double (const std::string &jpi_string) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Converts a spin-parity string (JPI string) to a double-precision floating-point number. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| double | fourdst::atomic::convert_jpi_to_double (const std::string &jpi_string) noexcept | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Converts a spin-parity string (JPI string) to a double-precision floating-point number. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| bool | fourdst::atomic::operator== (const Species &lhs, const Species &rhs) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Equality operator for Species. Compares based on name. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- fourdst::libcomposition v1.9.0
+ fourdst::libcomposition v2.0.0
Robust atomic species information library
|
@@ -107,12 +107,12 @@ $(function(){initNavTree('atomic_species_8h_source.html',''); initResizable(true
-
+
-
+
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- fourdst::libcomposition v1.9.0
+ fourdst::libcomposition v2.0.0
Robust atomic species information library
|
@@ -102,32 +102,23 @@ $(function(){initNavTree('classes.html',''); initResizable(true); });
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- fourdst::libcomposition v1.9.0
+ fourdst::libcomposition v2.0.0
Robust atomic species information library
|
@@ -109,71 +109,53 @@ $(function(){initNavTree('classfourdst_1_1composition_1_1_composition.html','');
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| begin() const | fourdst::composition::Composition | inline | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Composition()=default | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Composition(const std::vector< std::string > &symbols) | fourdst::composition::Composition | explicit | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Composition(const std::set< std::string > &symbols) | fourdst::composition::Composition | explicit | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Composition(const std::vector< std::string > &symbols, const std::vector< double > &fractions, bool massFracMode=true) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Composition(const std::vector< atomic::Species > &species) | fourdst::composition::Composition | explicit | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Composition(const std::set< std::string > &symbols) | fourdst::composition::Composition | explicit | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Composition(const std::set< atomic::Species > &species) | fourdst::composition::Composition | explicit | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Composition(const std::vector< std::string > &symbols, const std::vector< double > &molarAbundances) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Composition(const std::vector< atomic::Species > &species, const std::vector< double > &molarAbundances) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Composition(const std::set< std::string > &symbols, const std::vector< double > &molarAbundances) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Composition(const Composition &composition) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| contains(const atomic::Species &isotope) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| end() | fourdst::composition::Composition | inline | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| end() const | fourdst::composition::Composition | inline | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| finalize(bool norm=false) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| finalizeMassFracMode(bool norm) | fourdst::composition::Composition | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| finalizeNumberFracMode(bool norm) | fourdst::composition::Composition | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getCanonicalComposition(bool harsh=false) const | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getComposition(const std::string &symbol) const | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getComposition(const fourdst::atomic::Species &species) const | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getComposition() const | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getElectronAbundance() const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getMassFraction() const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| contains(const atomic::Species &species) const noexcept override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| contains(const std::string &symbol) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| end() | fourdst::composition::Composition | inline | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| end() const | fourdst::composition::Composition | inline | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getCanonicalComposition() const | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getElectronAbundance() const noexcept override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getLogger() | fourdst::composition::Composition | inlineprivatestatic | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getMassFraction() const noexcept override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getMassFraction(const std::string &symbol) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getMassFraction(const fourdst::atomic::Species &species) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getMassFractionVector() const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getMeanAtomicNumber() const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getMeanParticleMass() const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getMolarAbundance(const std::string &symbol) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getMolarAbundance(const fourdst::atomic::Species &species) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getMolarAbundanceVector() const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getNumberFraction(const std::string &symbol) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getNumberFraction(const fourdst::atomic::Species &species) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getNumberFraction() const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getNumberFractionVector() const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getRegisteredSpecies() const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getRegisteredSymbols() const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getSpeciesAtIndex(size_t index) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getSpeciesIndex(const std::string &symbol) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getSpeciesIndex(const atomic::Species &species) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| hasSpecies(const fourdst::atomic::Species &species) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| hasSymbol(const std::string &symbol) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| isValidComposition(const std::vector< double > &fractions) const | fourdst::composition::Composition | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| isValidSymbol(const std::string &symbol) | fourdst::composition::Composition | privatestatic | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| m_cache | fourdst::composition::Composition | mutableprivate | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| m_compositions | fourdst::composition::Composition | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| m_config | fourdst::composition::Composition | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| m_finalized | fourdst::composition::Composition | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| m_logger | fourdst::composition::Composition | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| m_logManager | fourdst::composition::Composition | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| m_massFracMode | fourdst::composition::Composition | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| m_meanParticleMass | fourdst::composition::Composition | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| m_registeredSymbols | fourdst::composition::Composition | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| m_specificNumberDensity | fourdst::composition::Composition | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mix(const Composition &other, double fraction) const | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| operator+(const Composition &other) const | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getMassFraction(const atomic::Species &species) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getMassFractionVector() const noexcept override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getMeanParticleMass() const noexcept override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getMolarAbundance(const std::string &symbol) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getMolarAbundance(const atomic::Species &species) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getMolarAbundanceVector() const noexcept override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getNumberFraction(const std::string &symbol) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getNumberFraction(const atomic::Species &species) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getNumberFraction() const noexcept override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getNumberFractionVector() const noexcept override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getRegisteredSpecies() const noexcept override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getRegisteredSymbols() const noexcept override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getSpeciesAtIndex(size_t index) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getSpeciesIndex(const std::string &symbol) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getSpeciesIndex(const atomic::Species &species) const override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| m_cache | fourdst::composition::Composition | mutableprivate | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| m_molarAbundances | fourdst::composition::Composition | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| m_registeredSpecies | fourdst::composition::Composition | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| operator<<(std::ostream &os, const Composition &composition) | fourdst::composition::Composition | friend | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| operator=(Composition const &other) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| registerSpecies(const fourdst::atomic::Species &species, bool massFracMode=true) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| registerSpecies(const std::vector< fourdst::atomic::Species > &species, bool massFracMode=true) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| registerSymbol(const std::string &symbol, bool massFracMode=true) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| registerSymbol(const std::vector< std::string > &symbols, bool massFracMode=true) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| setCompositionMode(bool massFracMode) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| setMassFraction(const std::string &symbol, const double &mass_fraction) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| setMassFraction(const std::vector< std::string > &symbols, const std::vector< double > &mass_fractions) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| setMassFraction(const fourdst::atomic::Species &species, const double &mass_fraction) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| setMassFraction(const std::vector< fourdst::atomic::Species > &species, const std::vector< double > &mass_fractions) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| setNumberFraction(const std::string &symbol, const double &number_fraction) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| setNumberFraction(const std::vector< std::string > &symbols, const std::vector< double > &number_fractions) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| setNumberFraction(const fourdst::atomic::Species &species, const double &number_fraction) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| setNumberFraction(const std::vector< fourdst::atomic::Species > &species, const std::vector< double > &number_fractions) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| subset(const std::vector< std::string > &symbols, const std::string &method="norm") const | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| validateComposition(const std::vector< double > &fractions) const | fourdst::composition::Composition | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| registerSpecies(const atomic::Species &species) noexcept | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| registerSpecies(const std::vector< atomic::Species > &species) noexcept | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| registerSymbol(const std::string &symbol) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| registerSymbol(const std::vector< std::string > &symbols) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| setMolarAbundance(const std::string &symbol, const double &molar_abundance) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| setMolarAbundance(const atomic::Species &species, const double &molar_abundance) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| setMolarAbundance(const std::vector< std::string > &symbols, const std::vector< double > &molar_abundances) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| setMolarAbundance(const std::vector< atomic::Species > &species, const std::vector< double > &molar_abundances) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| setMolarAbundance(const std::set< std::string > &symbols, const std::vector< double > &molar_abundances) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| setMolarAbundance(const std::set< atomic::Species > &species, const std::vector< double > &molar_abundances) | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| size() const noexcept override | fourdst::composition::Composition | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ~Composition() override=default | fourdst::composition::Composition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ~CompositionAbstract()=default | CompositionAbstract | virtual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-
-Classes | |
| struct | CompositionCache |
| Caches computed properties of the composition to avoid redundant calculations. More... | |
@@ -138,138 +139,120 @@ Public Member Functions | |
| ~Composition () override=default | |
| Default destructor. | |
| bool | finalize (bool norm=false) |
| Finalizes the composition, making it ready for querying. | |
| Composition (const std::vector< std::string > &symbols) | |
| Constructs a Composition and registers the given symbols. | |
| Constructs a Composition and registers the given symbols from a vector. | |
| Composition (const std::vector< atomic::Species > &species) | |
| Constructs a Composition and registers the given species from a vector. | |
| Composition (const std::set< std::string > &symbols) | |
| Constructs a Composition and registers the given symbols from a set. | |
| Composition (const std::vector< std::string > &symbols, const std::vector< double > &fractions, bool massFracMode=true) | |
| Constructs and finalizes a Composition with the given symbols and fractions. | |
| Composition (const std::set< atomic::Species > &species) | |
| Constructs a Composition and registers the given species from a set. | |
| Composition (const std::vector< std::string > &symbols, const std::vector< double > &molarAbundances) | |
| Constructs a Composition from symbols and their corresponding molar abundances. | |
| Composition (const std::vector< atomic::Species > &species, const std::vector< double > &molarAbundances) | |
| Constructs a Composition from species and their corresponding molar abundances. | |
| Composition (const std::set< std::string > &symbols, const std::vector< double > &molarAbundances) | |
| Constructs a Composition from symbols in a set and their corresponding molar abundances. | |
| Composition (const Composition &composition) | |
| Constructs a Composition from another Composition. | |
| Composition & | operator= (Composition const &other) |
| Assignment operator. | |
| void | registerSymbol (const std::string &symbol, bool massFracMode=true) |
| Registers a new symbol for inclusion in the composition. | |
| void | registerSymbol (const std::vector< std::string > &symbols, bool massFracMode=true) |
| Registers multiple new symbols. | |
| void | registerSpecies (const fourdst::atomic::Species &species, bool massFracMode=true) |
| Registers a new species by extracting its symbol. | |
| void | registerSpecies (const std::vector< fourdst::atomic::Species > &species, bool massFracMode=true) |
| Registers a vector of new species. | |
| std::set< std::string > | getRegisteredSymbols () const override |
| Gets the registered symbols. | |
| std::set< fourdst::atomic::Species > | getRegisteredSpecies () const override |
| Get a set of all species that are registered in the composition. | |
| double | setMassFraction (const std::string &symbol, const double &mass_fraction) |
| Sets the mass fraction for a given symbol. | |
| std::vector< double > | setMassFraction (const std::vector< std::string > &symbols, const std::vector< double > &mass_fractions) |
| Sets the mass fraction for multiple symbols. | |
| double | setMassFraction (const fourdst::atomic::Species &species, const double &mass_fraction) |
| Sets the mass fraction for a given species. | |
| std::vector< double > | setMassFraction (const std::vector< fourdst::atomic::Species > &species, const std::vector< double > &mass_fractions) |
| Sets the mass fraction for multiple species. | |
| double | setNumberFraction (const std::string &symbol, const double &number_fraction) |
| Sets the number fraction for a given symbol. | |
| std::vector< double > | setNumberFraction (const std::vector< std::string > &symbols, const std::vector< double > &number_fractions) |
| Sets the number fraction for multiple symbols. | |
| double | setNumberFraction (const fourdst::atomic::Species &species, const double &number_fraction) |
| Sets the number fraction for a given species. | |
| std::vector< double > | setNumberFraction (const std::vector< fourdst::atomic::Species > &species, const std::vector< double > &number_fractions) |
| Sets the number fraction for multiple species. | |
| Composition | mix (const Composition &other, double fraction) const |
| Mixes this composition with another to produce a new composition. | |
| std::unordered_map< std::string, double > | getMassFraction () const override |
| Gets the mass fractions of all species in the composition. | |
| void | registerSymbol (const std::string &symbol) |
| Registers a new symbol for inclusion in the composition. | |
| void | registerSymbol (const std::vector< std::string > &symbols) |
| Registers multiple new symbols. | |
| void | registerSpecies (const atomic::Species &species) noexcept |
| Registers a new species by extracting its symbol. | |
| void | registerSpecies (const std::vector< atomic::Species > &species) noexcept |
| Registers a vector of new species. | |
| bool | contains (const atomic::Species &species) const noexcept override |
| Checks if a given species is present in the composition. | |
| bool | contains (const std::string &symbol) const override |
| Checks if a given symbol is present in the composition. | |
| size_t | size () const noexcept override |
| Gets the number of registered species in the composition. | |
| void | setMolarAbundance (const std::string &symbol, const double &molar_abundance) |
| Sets the molar abundance for a given symbol. | |
| void | setMolarAbundance (const atomic::Species &species, const double &molar_abundance) |
| Sets the molar abundance for a given isotope. | |
| void | setMolarAbundance (const std::vector< std::string > &symbols, const std::vector< double > &molar_abundances) |
| Sets the molar abundances for a list of symbols. | |
| void | setMolarAbundance (const std::vector< atomic::Species > &species, const std::vector< double > &molar_abundances) |
| Sets the molar abundances for a list of isotopes. | |
| void | setMolarAbundance (const std::set< std::string > &symbols, const std::vector< double > &molar_abundances) |
| Sets the molar abundances for a set of symbols. | |
| void | setMolarAbundance (const std::set< atomic::Species > &species, const std::vector< double > &molar_abundances) |
| Sets the molar abundances for a set of isotopes. | |
| std::set< std::string > | getRegisteredSymbols () const noexcept override |
| Gets the registered symbols. | |
| const std::set< atomic::Species > & | getRegisteredSpecies () const noexcept override |
| Get a set of all species that are registered in the composition. | |
| std::unordered_map< atomic::Species, double > | getMassFraction () const noexcept override |
| Gets the mass fractions of all species in the composition. | |
| double | getMassFraction (const std::string &symbol) const override |
| Gets the mass fraction for a given symbol. | |
| Gets the mass fraction for a given symbol. See the overload for species-based lookup for more details on how mass fractions are calculated. | |
| double | getMassFraction (const fourdst::atomic::Species &species) const override |
| Gets the mass fraction for a given isotope. | |
| double | getMassFraction (const atomic::Species &species) const override |
| Gets the mass fraction for a given species. | |
| double | getNumberFraction (const std::string &symbol) const override |
| Gets the number fraction for a given symbol. | |
| Gets the number fraction for a given symbol. See the overload for species-based lookup for more details on how number fractions are calculated. | |
| double | getNumberFraction (const fourdst::atomic::Species &species) const override |
| Gets the number fraction for a given isotope. | |
| std::unordered_map< std::string, double > | getNumberFraction () const override |
| Gets the number fractions of all species in the composition. | |
| double | getNumberFraction (const atomic::Species &species) const override |
| Gets the number fraction for a given species. | |
| std::unordered_map< atomic::Species, double > | getNumberFraction () const noexcept override |
| Gets the number fractions of all species in the composition. | |
| double | getMolarAbundance (const std::string &symbol) const override |
| Gets the molar abundance (X_i / A_i) for a given symbol. | |
| Gets the molar abundances of all species in the composition. | |
| double | getMolarAbundance (const fourdst::atomic::Species &species) const override |
| Gets the molar abundance for a given isotope. | |
| std::pair< CompositionEntry, GlobalComposition > | getComposition (const std::string &symbol) const |
| Gets the composition entry and global composition data for a given symbol. | |
| std::pair< CompositionEntry, GlobalComposition > | getComposition (const fourdst::atomic::Species &species) const |
| Gets the composition entry and global composition data for a given species. | |
| std::pair< std::unordered_map< std::string, CompositionEntry >, GlobalComposition > | getComposition () const |
| Gets all composition entries and the global composition data. | |
| double | getMeanParticleMass () const override |
| Compute the mean particle mass of the composition. | |
| double | getMeanAtomicNumber () const override |
| Compute the mean atomic number of the composition. | |
| double | getElectronAbundance () const override |
| Compute the electron abundance of the composition. | |
| Composition | subset (const std::vector< std::string > &symbols, const std::string &method="norm") const |
| Creates a new Composition object containing a subset of species from this one. | |
| bool | hasSymbol (const std::string &symbol) const override |
| Checks if a symbol is registered in the composition. | |
| bool | hasSpecies (const fourdst::atomic::Species &species) const override |
| Checks if a species is registered in the composition. | |
| bool | contains (const atomic::Species &isotope) const override |
| Checks if a given isotope is present in the composition. | |
| void | setCompositionMode (bool massFracMode) |
| Sets the composition mode (mass fraction vs. number fraction). | |
| CanonicalComposition | getCanonicalComposition (bool harsh=false) const |
| Gets the current canonical composition (X, Y, Z). | |
| std::vector< double > | getMassFractionVector () const override |
| Get a uniform vector representation of the mass fraction stored in the composition object sorted such that the lightest species is at index 0 and the heaviest is at the last index. | |
| std::vector< double > | getNumberFractionVector () const override |
| Get a uniform vector representation of the number fractions stored in the composition object sorted such that the lightest species is at index 0 and the heaviest is at the last index. | |
| std::vector< double > | getMolarAbundanceVector () const override |
| Get a uniform vector representation of the molar abundances stored in the composition object sorted such that the lightest species is at index 0 and the heaviest is at the last index. | |
| double | getMolarAbundance (const atomic::Species &species) const override |
| Gets the molar abundance for a given species. | |
| double | getMeanParticleMass () const noexcept override |
| Compute the mean particle mass of the composition. | |
| double | getElectronAbundance () const noexcept override |
| Compute the electron abundance of the composition. | |
| CanonicalComposition | getCanonicalComposition () const |
| Compute the canonical composition (X, Y, Z) of the composition. | |
| std::vector< double > | getMassFractionVector () const noexcept override |
| Get a uniform vector representation of the mass fraction stored in the composition object sorted such that the lightest species is at index 0 and the heaviest is at the last index. | |
| std::vector< double > | getNumberFractionVector () const noexcept override |
| Get a uniform vector representation of the number fractions stored in the composition object sorted such that the lightest species is at index 0 and the heaviest is at the last index. | |
| std::vector< double > | getMolarAbundanceVector () const noexcept override |
| Get a uniform vector representation of the molar abundances stored in the composition object sorted such that the lightest species is at index 0 and the heaviest is at the last index. | |
| size_t | getSpeciesIndex (const std::string &symbol) const override |
| get the index in the sorted vector representation for a given symbol | |
| atomic::Species | getSpeciesAtIndex (size_t index) const override |
| Get the species at a given index in the sorted vector representation. | |
| Composition | operator+ (const Composition &other) const |
| Overloads the + operator to mix two compositions with a 50/50 fraction. | |
| auto | begin () |
| Returns an iterator to the beginning of the composition map. | |
| Returns an iterator to the beginning of the molar abundance map. | |
| auto | begin () const |
| Returns a const iterator to the beginning of the composition map. | |
| Returns a const iterator to the beginning of the molar abundance map. | |
| auto | end () |
| Returns an iterator to the end of the composition map. | |
| Returns an iterator to the end of the molar abundance map. | |
| auto | end () const |
| Returns a const iterator to the end of the composition map. | |
| Returns a const iterator to the end of the molar abundance map. | |
Public Member Functions inherited from CompositionAbstract | |
| virtual | ~CompositionAbstract ()=default |
| Virtual destructor. | |
-Private Member Functions | |
| bool | isValidComposition (const std::vector< double > &fractions) const |
| Checks if the given fractions are valid (sum to ~1.0). | |
| void | validateComposition (const std::vector< double > &fractions) const |
| Validates the given fractions, throwing an exception on failure. | |
| bool | finalizeMassFracMode (bool norm) |
| Finalizes the composition in mass fraction mode. | |
| bool | finalizeNumberFracMode (bool norm) |
| Finalizes the composition in number fraction mode. | |
Static Private Member Functions | |
| static bool | isValidSymbol (const std::string &symbol) |
| Checks if the given symbol is valid by checking against the global species database. | |
| static quill::Logger * | getLogger () |
| Gets the logger instance for the Composition class. This is static to ensure that all composition objects share the same logger instance. | |
Private Attributes | |
| config::Config & | m_config = config::Config::getInstance() |
| logging::LogManager & | m_logManager = logging::LogManager::getInstance() |
| quill::Logger * | m_logger = m_logManager.getLogger("log") |
| bool | m_finalized = false |
| True if the composition is finalized. | |
| double | m_specificNumberDensity = 0.0 |
| The specific number density of the composition (\sum_{i} X_i m_i. Where X_i is the number fraction of the ith species and m_i is the mass of the ith species). | |
| double | m_meanParticleMass = 0.0 |
| The mean particle mass of the composition (\sum_{i} \frac{n_i}{m_i}. where n_i is the number fraction of the ith species and m_i is the mass of the ith species). | |
| bool | m_massFracMode = true |
| True if mass fraction mode, false if number fraction mode. | |
| std::set< std::string > | m_registeredSymbols |
| The registered symbols. | |
| std::unordered_map< std::string, CompositionEntry > | m_compositions |
| The compositions. | |
| std::set< atomic::Species > | m_registeredSpecies |
| Set of registered species in the composition. | |
| std::map< atomic::Species, double > | m_molarAbundances |
| Map of species to their molar abundances. | |
| CompositionCache | m_cache |
| Cache for computed properties to avoid redundant calculations. | |
Manages a collection of chemical species and their abundances.
-This class is a primary interface for defining and manipulating material compositions. It can operate in two modes: mass fraction or number fraction.
-Key Rules and Workflow:
registerSymbol() or registerSpecies(). All registered species must conform to the same abundance mode (mass or number fraction).setMassFraction() or setNumberFraction() to define the composition.getMassFraction(), getMeanParticleMass()), the composition must be finalized by calling finalize(). This step validates the composition (abundances sum to ~1.0) and computes global properties.finalize() before data can be retrieved again.This class is a primary interface for defining and manipulating material compositions. In order to use the Composition class a user must first register symbols or species. Symbols are the string representation of a species (i.e. deuterium would be "H-2" whereas Beryllium 7 would be "Be-7") and then set the molar abundances. Species are the data structure fourdst::atomic::Species version. Here Deuterium would be represented by the Species fourdst::atomic::H_2 whereas Beryllium 7 would be fourdst::atomic::Be_7. Once the symbols/species have been registered the user can then set molar abundances.
+Once the Composition object has been populated the user can query mass fractions, number fractions, electron abundances, mean particle mass, molar abundance, and Canonical (X, Y, Z) composition.
+fourdst::composition::buildCompositionFromMassFractions which wll facilitate just that.| This | class throws various exceptions from fourdst::composition::exceptions for invalid operations, such as using unregistered symbols, providing invalid abundances, or accessing data from a non-finalized composition. |
| This | class throws various exceptions from fourdst::composition::exceptions for invalid operations, such as using unregistered symbols or providing invalid abundances. |
Definition at line 255 of file composition.h.
+Definition at line 97 of file composition.h.
Default constructor.
+Creates an empty Composition object. No symbols or species are registered initially; however, the user can register symbols or species later using the provided methods.
Constructs a Composition and registers the given symbols.
+Constructs a Composition and registers the given symbols from a vector.
| symbols | The symbols to register. The composition will be in mass fraction mode by default. |
| symbols | The symbols to register. |
| exceptions::InvalidSymbolError | if any symbol is invalid. |
| exceptions::UnknownSymbolError | if any symbol is invalid. Symbols are invalid if they are not registered at compile time in the atomic species database (fourdst/atomic/species.h). |
Definition at line 187 of file composition.cpp.
+Definition at line 84 of file composition.cpp.
+ +
+
|
+ +explicit | +
Constructs a Composition and registers the given species from a vector.
+| species | The species to register. |
Definition at line 100 of file composition.cpp.
Constructs a Composition and registers the given symbols from a set.
| symbols | The symbols to register. The composition will be in mass fraction mode by default. |
| symbols | The symbols to register. |
| exceptions::InvalidSymbolError | if any symbol is invalid. |
| exceptions::UnknownSymbolError | if any symbol is invalid. Symbols are invalid if they are not registered at compile time in the atomic species database (fourdst/atomic/species.h). |
Definition at line 195 of file composition.cpp.
+Definition at line 92 of file composition.cpp.
+
|
+ +explicit | +
Constructs a Composition and registers the given species from a set.
+| species | The species to register. |
Definition at line 108 of file composition.cpp.
+ +Constructs and finalizes a Composition with the given symbols and fractions.
-This constructor provides a convenient way to create a fully-formed, finalized composition in one step. The provided fractions must be valid and sum to 1.0.
Constructs a Composition from symbols and their corresponding molar abundances.
+| symbols | The symbols to initialize the composition with. |
| fractions | The fractions (mass or number) corresponding to the symbols. |
| massFracMode | True if fractions are mass fractions, false if they are number fractions. [Default: true] |
| symbols | The symbols to register. |
| molarAbundances | The corresponding molar abundances for each symbol. |
| exceptions::InvalidCompositionError | if the number of symbols and fractions do not match, or if the fractions do not sum to ~1.0. |
| exceptions::InvalidSymbolError | if any symbol is invalid. |
| exceptions::UnknownSymbolError | if any symbol is invalid. Symbols are invalid if they are not registered at compile time in the atomic species database (fourdst/atomic/species.h). |
| exceptions::InvalidCompositionError | if the number of symbols does not match the number of molar abundances. |
Definition at line 203 of file composition.cpp.
+Definition at line 116 of file composition.cpp.
+ +| fourdst::composition::Composition::Composition | +( | +const std::vector< atomic::Species > & | species, | +
| + | + | const std::vector< double > & | molarAbundances ) | +
Constructs a Composition from species and their corresponding molar abundances.
+| species | The species to register. |
| molarAbundances | The corresponding molar abundances for each species. |
| exceptions::InvalidCompositionError | if the number of species does not match the number of molar abundances. |
Definition at line 131 of file composition.cpp.
+ +| fourdst::composition::Composition::Composition | +( | +const std::set< std::string > & | symbols, | +
| + | + | const std::vector< double > & | molarAbundances ) | +
Constructs a Composition from symbols in a set and their corresponding molar abundances.
+| symbols | The symbols to register. |
| molarAbundances | The corresponding molar abundances for each symbol. |
| exceptions::UnknownSymbolError | if any symbol is invalid. Symbols are invalid if they are not registered at compile time in the atomic species database (fourdst/atomic/species.h). |
| exceptions::InvalidCompositionError | if the number of symbols does not match the number of molar abundances. |
Definition at line 146 of file composition.cpp.
Definition at line 234 of file composition.cpp.
+Definition at line 161 of file composition.cpp.
Returns an iterator to the beginning of the composition map.
-Returns an iterator to the beginning of the molar abundance map.
+Definition at line 864 of file composition.h.
+Definition at line 753 of file composition.h.
Returns a const iterator to the beginning of the composition map.
-Returns a const iterator to the beginning of the molar abundance map.
+Definition at line 872 of file composition.h.
+Definition at line 774 of file composition.h.
Checks if a given species is present in the composition.
+| species | The isotope to check for. |
Implements CompositionAbstract.
+ +Definition at line 509 of file composition.cpp.
+ +
+
|
Checks if a given isotope is present in the composition.
-Checks if a given symbol is present in the composition.
| isotope | The isotope to check for. |
| symbol | The symbol to check for. |
| exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
| exceptions::UnknownSymbolError | if the symbol is not in the atomic species database. |
Implements CompositionAbstract.
+Implements CompositionAbstract.
-Definition at line 1038 of file composition.cpp.
+Definition at line 515 of file composition.cpp.
Returns an iterator to the end of the composition map.
-Returns an iterator to the end of the molar abundance map.
+Definition at line 880 of file composition.h.
+Definition at line 795 of file composition.h.
Returns a const iterator to the end of the composition map.
-Returns a const iterator to the end of the molar abundance map.
+Definition at line 888 of file composition.h.
+Definition at line 816 of file composition.h.
-
|
- -nodiscard | -
Finalizes the composition, making it ready for querying.
-This method checks if the sum of all fractions (mass or number) is approximately 1.0. It also computes global properties like mean particle mass. This must be called before any get... method can be used.
| norm | If true, the composition will be normalized to sum to 1 before validation. [Default: false] |
m_finalized is true and global properties are computed. Definition at line 445 of file composition.cpp.
- -
-
|
- -private | -
Finalizes the composition in mass fraction mode.
-| norm | If true, the composition will be normalized to sum to 1. |
Definition at line 453 of file composition.cpp.
- -
-
|
- -private | -
Finalizes the composition in number fraction mode.
-| norm | If true, the composition will be normalized to sum to 1. |
Definition at line 489 of file composition.cpp.
- -Gets the current canonical composition (X, Y, Z).
-Calculates the total mass fractions for H, He, and metals.
| harsh | If true, this will throw an error if 1 - (X + Y) is not equal to the directly summed Z (within a tolerance). If false, it will only log a warning. |
CanonicalComposition struct. | exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
| std::runtime_error | if harsh is true and the canonical composition is not self-consistent. |
Definition at line 785 of file composition.cpp.
- -
-
-
-
-Gets all composition entries and the global composition data. -
Compute the canonical composition (X, Y, Z) of the composition. +The canonical composition is defined as:
The canonical composition is computed by summing the mass fractions of all registered species in the composition according to their element type. +
Definition at line 682 of file composition.cpp. +Definition at line 330 of file composition.cpp. ◆ getComposition() [2/3]- -
-
-
-
-
-
-
-Gets the composition entry and global composition data for a given species. -
Definition at line 676 of file composition.cpp. - -◆ getComposition() [3/3]- -
-
-
-
-
-
-
-Gets the composition entry and global composition data for a given symbol. -
Definition at line 662 of file composition.cpp. - -◆ getElectronAbundance()+ +◆ getElectronAbundance()
@@ -1085,23 +999,30 @@ Friends |
Compute the electron abundance of the composition.
-Ye is defined as the sum over all species of (Z_i * X_i / A_i), where Z_i is the atomic number, X_i is the mass fraction, and A_i is the atomic mass of species i.
The electron abundance is calculated using the formula:
+
+
where:
Implements CompositionAbstract.
+Implements CompositionAbstract.
-Definition at line 716 of file composition.cpp.
+Definition at line 321 of file composition.cpp.
| std::unordered_map< std::string, double > fourdst::composition::Composition::getMassFraction | +static quill::Logger * fourdst::composition::Composition::getLogger | +( | +) | ++ |
Gets the logger instance for the Composition class. This is static to ensure that all composition objects share the same logger instance.
+Definition at line 144 of file composition.h.
+ +
+
|
-nodiscardoverridevirtual | +nodiscardoverridevirtualnoexcept
Gets the mass fractions of all species in the composition.
-| exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
Implements CompositionAbstract.
+Implements CompositionAbstract.
-Definition at line 601 of file composition.cpp.
+Definition at line 251 of file composition.cpp.
Gets the mass fraction for a given isotope.
-Gets the mass fraction for a given species.
+The mass fraction X_i for a species is calculated using the formula:
+
+
where:
This formula ensures that the mass fractions of all species sum to 1.0.
| species | The isotope to get the mass fraction for. |
| species | The species to get the mass fraction for. |
| exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
| exceptions::UnregisteredSymbolError | if the isotope is not registered in the composition. |
Implements CompositionAbstract.
-Definition at line 595 of file composition.cpp.
+Definition at line 235 of file composition.cpp.
Gets the mass fraction for a given symbol.
-Gets the mass fraction for a given symbol. See the overload for species-based lookup for more details on how mass fractions are calculated.
| symbol | The symbol to get the mass fraction for. |
| exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
| exceptions::UnknownSymbolError | if the symbol is not in the atomic species database. |
| exceptions::UnregisteredSymbolError | if the symbol is not in the composition. |
Implements CompositionAbstract.
-Definition at line 568 of file composition.cpp.
+Definition at line 227 of file composition.cpp.
- -Get a uniform vector representation of the mass fraction stored in the composition object sorted such that the lightest species is at index 0 and the heaviest is at the last index.
This is primarily useful for external libraries which need to ensure that vector representation uniformity is maintained
| exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
Implements CompositionAbstract.
+Implements CompositionAbstract.
-Definition at line 840 of file composition.cpp.
+Definition at line 373 of file composition.cpp.
-
|
- -nodiscardoverridevirtual | -
Compute the mean atomic number of the composition.
-| exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
Implements CompositionAbstract.
- -Definition at line 698 of file composition.cpp.
- -Compute the mean particle mass of the composition.
-The mean particle mass is calculated using the formula:
+
+
where:
| exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
Implements CompositionAbstract.
+Implements CompositionAbstract.
-Definition at line 690 of file composition.cpp.
+Definition at line 311 of file composition.cpp.
Gets the molar abundance for a given isotope.
-Gets the molar abundance for a given species.
| species | The isotope to get the molar abundance for. |
| species | The species to get the molar abundance for. |
| exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
| exceptions::UnregisteredSymbolError | if the isotope is not registered in the composition. |
| exceptions::UnregisteredSymbolError | if the isotope is not registered in the composition. |
Implements CompositionAbstract.
-Definition at line 656 of file composition.cpp.
+Definition at line 302 of file composition.cpp.
Gets the molar abundance (X_i / A_i) for a given symbol.
-| symbol | The symbol to get the molar abundance for. |
Gets the molar abundances of all species in the composition.
| exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
| exceptions::UnregisteredSymbolError | if the symbol is not in the composition. |
| exceptions::UnknownSymbolError | if any symbol is not in the atomic species database. |
| exceptions::UnregisteredSymbolError | if any symbol is not in the composition. |
Implements CompositionAbstract.
-Definition at line 641 of file composition.cpp.
+Definition at line 291 of file composition.cpp.
Get a uniform vector representation of the molar abundances stored in the composition object sorted such that the lightest species is at index 0 and the heaviest is at the last index.
This is primarily useful for external libraries which need to ensure that vector representation uniformity is maintained
| exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
Implements CompositionAbstract.
+Implements CompositionAbstract.
-Definition at line 891 of file composition.cpp.
+Definition at line 416 of file composition.cpp.
| std::unordered_map< std::string, double > fourdst::composition::Composition::getNumberFraction | +std::unordered_map< atomic::Species, double > fourdst::composition::Composition::getNumberFraction | ( | ) | const | @@ -1497,29 +1391,23 @@ Friends
Gets the number fractions of all species in the composition.
-| exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
Implements CompositionAbstract.
+Implements CompositionAbstract.
-Definition at line 633 of file composition.cpp.
+Definition at line 283 of file composition.cpp.
Gets the number fraction for a given isotope.
-Gets the number fraction for a given species.
+The number fraction Y_i for a species is calculated using the formula:
+
+
where:
This formula ensures that the number fractions of all species sum to 1.0.
| species | The isotope to get the number fraction for. |
| species | The species to get the number fraction for. |
| exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
| exceptions::UnregisteredSymbolError | if the isotope is not registered in the composition. |
Implements CompositionAbstract.
-Definition at line 627 of file composition.cpp.
+Definition at line 270 of file composition.cpp.
Gets the number fraction for a given symbol.
-Gets the number fraction for a given symbol. See the overload for species-based lookup for more details on how number fractions are calculated.
| symbol | The symbol to get the number fraction for. |
| exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
| exceptions::UnknownSymbolError | if the symbol is not in the atomic species database. |
| exceptions::UnregisteredSymbolError | if the symbol is not in the composition. |
Implements CompositionAbstract.
-Definition at line 610 of file composition.cpp.
+Definition at line 260 of file composition.cpp.
- -Get a uniform vector representation of the number fractions stored in the composition object sorted such that the lightest species is at index 0 and the heaviest is at the last index.
This is primarily useful for external libraries which need to ensure that vector representation uniformity is maintained
| exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
Implements CompositionAbstract.
+Implements CompositionAbstract.
-Definition at line 866 of file composition.cpp.
+Definition at line 395 of file composition.cpp.
| std::set< atomic::Species > fourdst::composition::Composition::getRegisteredSpecies | +const std::set< atomic::Species > & fourdst::composition::Composition::getRegisteredSpecies | ( | ) | const | @@ -1667,22 +1554,23 @@ Friends
Get a set of all species that are registered in the composition.
-atomic::Species objects registered in the composition. atomic::Species objects registered in the composition.Implements CompositionAbstract.
+Implements CompositionAbstract.
-Definition at line 313 of file composition.cpp.
+Definition at line 222 of file composition.cpp.
Gets the registered symbols.
-getRegisteredSpecies() instead which returns a constant reference to the internal set. Implements CompositionAbstract.
+Implements CompositionAbstract.
-Definition at line 309 of file composition.cpp.
+Definition at line 214 of file composition.cpp.
Get the species at a given index in the sorted vector representation.
-This is primarily useful for external libraries which need to ensure that vector representation uniformity is maintained
This is primarily useful for external libraries which need to ensure that vector representation uniformity is maintained
| index | The index in the sorted vector representation for which to return the species. Must be in [0, N-1] where N is the number of registered species. |
| exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
| std::out_of_range | if the index is out of range. |
Implements CompositionAbstract.
-Definition at line 993 of file composition.cpp.
+Definition at line 483 of file composition.cpp.
get the index in the sorted vector representation for a given symbol
-This is primarily useful for external libraries which need to ensure that vector representation uniformity is maintained
This is primarily useful for external libraries which need to ensure that vector representation uniformity is maintained
| species | the species to look up the index for. Note that this is the index species data will be at if you were to call getMolarAbundanceVector(), getMassFractionVector(), or getNumberFractionVector() |
| species | the species to look up the index for. Note that this is the index species data will be at if you were to call getMolarAbundanceVector(), getMassFractionVector(), or getNumberFractionVector() |
| exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
| exceptions::UnregisteredSymbolError | if the symbol is not registered in the composition |
Implements CompositionAbstract.
-Definition at line 955 of file composition.cpp.
+Definition at line 449 of file composition.cpp.
get the index in the sorted vector representation for a given symbol
-This is primarily useful for external libraries which need to ensure that vector representation uniformity is maintained
This is primarily useful for external libraries which need to ensure that vector representation uniformity is maintained
| symbol | the symbol to look up the index for. Note that this is the index species data will be at if you were to call getMolarAbundanceVector(), getMassFractionVector(), or getNumberFractionVector() |
| symbol | the symbol to look up the index for. Note that this is the index species data will be at if you were to call getMolarAbundanceVector(), getMassFractionVector(), or getNumberFractionVector() |
| exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
| exceptions::UnknownSymbolError | if the symbol is not in the atomic species database. |
| exceptions::UnregisteredSymbolError | if the symbol is not registered in the composition |
Implements CompositionAbstract.
-Definition at line 917 of file composition.cpp.
- -
-
|
- -nodiscardoverridevirtual | -
Checks if a species is registered in the composition.
-| species | The species to check. |
Implements CompositionAbstract.
- -Definition at line 1029 of file composition.cpp.
- -
-
|
- -nodiscardoverridevirtual | -
Checks if a symbol is registered in the composition.
-| symbol | The symbol to check. |
Implements CompositionAbstract.
- -Definition at line 1023 of file composition.cpp.
- -
-
|
- -nodiscardprivate | -
Checks if the given fractions are valid (sum to ~1.0).
-| fractions | The fractions to check. |
Definition at line 334 of file composition.cpp.
- -
-
|
- -staticprivate | -
Checks if the given symbol is valid by checking against the global species database.
-| symbol | The symbol to check. |
Definition at line 321 of file composition.cpp.
- -
-
|
- -nodiscard | -
Mixes this composition with another to produce a new composition.
-The mixing is performed linearly on the mass fractions. The formula for each species is: new_X_i = fraction * this_X_i + (1 - fraction) * other_X_i. The resulting composition is automatically finalized.
| other | The other composition to mix with. |
| fraction | The mixing fraction. A value of 1.0 means the new composition is 100% this, 0.0 means 100% other. |
Composition object representing the mixture. this and other compositions must be finalized. | exceptions::CompositionNotFinalizedError | if either composition is not finalized. |
| exceptions::InvalidCompositionError | if the fraction is not between 0 and 1. |
Definition at line 533 of file composition.cpp.
- -| Composition fourdst::composition::Composition::operator+ | -( | -const Composition & | other | ) | -const | -
Overloads the + operator to mix two compositions with a 50/50 fraction.
-OVERLOADS.
-This is a convenience operator that calls mix(other, 0.5).
| other | The other composition to mix with. |
| See | mix() for exceptions. |
Definition at line 1054 of file composition.cpp.
+Definition at line 438 of file composition.cpp.
Definition at line 243 of file composition.cpp.
+Definition at line 168 of file composition.cpp.
- -
|
+ +noexcept | +
Registers a new species by extracting its symbol.
| species | The species to register. |
| massFracMode | True for mass fraction mode, false for number fraction mode. |
| exceptions::InvalidSymbolError | if the species' symbol is invalid. |
| exceptions::CompositionModeError | if the mode conflicts. |
fourdst/atomic/species.h header file. These can be accessed directly through their fully qualified names (e.g., fourdst::atomic::C_12 for Carbon-12). Alternatively, these can also be accessed through a string-indexed map located in fourdst/atomic/species.h called fourdst::atomic::species ( e.g., fourdst::atomic::species.at("C-12") for Carbon-12). Definition at line 293 of file composition.cpp.
+Definition at line 197 of file composition.cpp.
|
+ +noexcept | +
Registers a vector of new species.
| species | The vector of species to register. |
| massFracMode | True for mass fraction mode, false for number fraction mode. |
| exceptions::InvalidSymbolError | if any species' symbol is invalid. |
| exceptions::CompositionModeError | if the mode conflicts. |
fourdst/atomic/species.h header file. These can be accessed directly through their fully qualified names (e.g., fourdst::atomic::C_12 for Carbon-12). Alternatively, these can also be accessed through a string-indexed map located in fourdst/atomic/species.h called fourdst::atomic::species ( e.g., fourdst::atomic::species.at("C-12") for Carbon-12). Definition at line 300 of file composition.cpp.
+Definition at line 206 of file composition.cpp.
Registers a new symbol for inclusion in the composition.
-A symbol must be registered before its abundance can be set. The first registration sets the mode (mass/number fraction) for the entire composition.
A symbol must be registered before its abundance can be set.
| symbol | The symbol to register (e.g., "Fe-56"). |
| massFracMode | True for mass fraction mode, false for number fraction mode. This is only effective for the first symbol registered. |
| exceptions::InvalidSymbolError | if the symbol is not in the atomic species database. |
| exceptions::CompositionModeError | if attempting to register with a mode that conflicts with the existing mode. |
| exceptions::UnknownSymbolError | if the symbol is not in the atomic species database. |
Definition at line 255 of file composition.cpp.
+Definition at line 178 of file composition.cpp.
| symbols | The symbols to register. |
| massFracMode | True for mass fraction mode, false for number fraction mode. |
| exceptions::InvalidSymbolError | if any symbol is invalid. |
| exceptions::CompositionModeError | if the mode conflicts with an already set mode. |
| exceptions::UnknownSymbolError | if any symbol is invalid. |
Definition at line 284 of file composition.cpp.
+Definition at line 189 of file composition.cpp.
| void fourdst::composition::Composition::setCompositionMode | +void fourdst::composition::Composition::setMolarAbundance | ( | -bool | massFracMode | ) | -- |
Sets the composition mode (mass fraction vs. number fraction).
-This function converts all entries in the composition to the specified mode.
| massFracMode | True to switch to mass fraction mode, false for number fraction mode. |
| exceptions::CompositionNotFinalizedError | if the composition is not finalized. |
| std::runtime_error | if the conversion fails for an unknown reason. |
Definition at line 762 of file composition.cpp.
- -| double fourdst::composition::Composition::setMassFraction | -( | -const fourdst::atomic::Species & | species, | +const atomic::Species & | species, |
| - | const double & | mass_fraction ) | +const double & | molar_abundance ) |
Sets the mass fraction for a given species.
+Sets the molar abundance for a given isotope.
| species | The species to set the mass fraction for. |
| mass_fraction | The mass fraction to set. |
| species | The isotope to set the molar abundance for. |
| molar_abundance | The molar abundance to set. |
| exceptions::UnregisteredSymbolError | if the species is not registered. |
| exceptions::CompositionModeError | if the composition is in number fraction mode. |
| exceptions::InvalidCompositionError | if the mass fraction is not between 0 and 1. |
| exceptions::UnregisteredSymbolError | if the isotope is not registered in the composition. |
| exceptions::InvalidAbundanceError | if the molar abundance is negative. |
Definition at line 411 of file composition.cpp.
+Definition at line 541 of file composition.cpp.
| double fourdst::composition::Composition::setMassFraction | +void fourdst::composition::Composition::setMolarAbundance | +( | +const std::set< atomic::Species > & | species, | +
| + | + | const std::vector< double > & | molar_abundances ) | +
Sets the molar abundances for a set of isotopes.
+| species | The isotopes to set the molar abundances for. |
| molar_abundances | The molar abundances to set. |
| exceptions::UnregisteredSymbolError | if any isotope is not registered in the composition. |
| exceptions::InvalidAbundanceError | if any molar abundance is negative. |
Definition at line 582 of file composition.cpp.
+ +| void fourdst::composition::Composition::setMolarAbundance | +( | +const std::set< std::string > & | symbols, | +
| + | + | const std::vector< double > & | molar_abundances ) | +
Sets the molar abundances for a set of symbols.
+| symbols | The symbols to set the molar abundances for. |
| molar_abundances | The molar abundances to set. |
| exceptions::UnknownSymbolError | if any symbol is not in the atomic species database. |
| exceptions::UnregisteredSymbolError | if any symbol is not in the composition. |
| exceptions::InvalidAbundanceError | if any molar abundance is negative. |
Definition at line 573 of file composition.cpp.
+ +| void fourdst::composition::Composition::setMolarAbundance | ( | const std::string & | symbol, | ||
| - | const double & | mass_fraction ) | +const double & | molar_abundance ) |
Sets the mass fraction for a given symbol.
+Sets the molar abundance for a given symbol.
| symbol | The symbol to set the mass fraction for. |
| mass_fraction | The mass fraction to set (must be in [0, 1]). |
| symbol | The symbol to set the molar abundance for. |
| molar_abundance | The molar abundance to set. |
| exceptions::UnregisteredSymbolError | if the symbol is not registered. |
| exceptions::CompositionModeError | if the composition is in number fraction mode. |
| exceptions::InvalidCompositionError | if the mass fraction is not between 0 and 1. |
| exceptions::UnknownSymbolError | if the symbol is not in the atomic species database. |
| exceptions::UnregisteredSymbolError | if the symbol is not in the composition. |
| exceptions::InvalidAbundanceError | if the molar abundance is negative. |
Definition at line 343 of file composition.cpp.
+Definition at line 529 of file composition.cpp.
| std::vector< double > fourdst::composition::Composition::setMassFraction | +void fourdst::composition::Composition::setMolarAbundance | ( | -const std::vector< fourdst::atomic::Species > & | species, | +const std::vector< atomic::Species > & | species, |
| - | const std::vector< double > & | mass_fractions ) | +const std::vector< double > & | molar_abundances ) |
Sets the mass fraction for multiple species.
+Sets the molar abundances for a list of isotopes.
| species | The vector of species to set the mass fractions for. |
| mass_fractions | The vector of mass fractions corresponding to the species. |
| species | The isotopes to set the molar abundances for. |
| molar_abundances | The molar abundances to set. |
| See | setMassFraction(const std::vector<std::string>&, const std::vector<double>&) for exceptions. |
| exceptions::UnregisteredSymbolError | if any isotope is not registered in the composition. |
| exceptions::InvalidAbundanceError | if any molar abundance is negative. |
Definition at line 418 of file composition.cpp.
+Definition at line 564 of file composition.cpp.
| std::vector< double > fourdst::composition::Composition::setMassFraction | +void fourdst::composition::Composition::setMolarAbundance | ( | const std::vector< std::string > & | symbols, | |
| - | const std::vector< double > & | mass_fractions ) | +const std::vector< double > & | molar_abundances ) |
Sets the mass fraction for multiple symbols.
+Sets the molar abundances for a list of symbols.
| symbols | The symbols to set the mass fractions for. |
| mass_fractions | The mass fractions corresponding to the symbols. |
| symbols | The symbols to set the molar abundances for. |
| molar_abundances | The molar abundances to set. |
| exceptions::InvalidCompositionError | if symbol and fraction counts differ. |
| See | setMassFraction(const std::string&, const double&) for other exceptions. |
| exceptions::UnknownSymbolError | if any symbol is not in the atomic species database. |
| exceptions::UnregisteredSymbolError | if any symbol is not in the composition. |
| exceptions::InvalidAbundanceError | if any molar abundance is negative. |
Definition at line 362 of file composition.cpp.
+Definition at line 555 of file composition.cpp.
| double fourdst::composition::Composition::setNumberFraction | -( | -const fourdst::atomic::Species & | species, | -
| - | - | const double & | number_fraction ) | -
Sets the number fraction for a given species.
-| species | The species to set the number fraction for. |
| number_fraction | The number fraction to set for the species. |
| exceptions::UnregisteredSymbolError | if the species is not registered. |
| exceptions::CompositionModeError | if the composition is in mass fraction mode. |
| exceptions::InvalidCompositionError | if the number fraction is not between 0 and 1. |
Definition at line 428 of file composition.cpp.
- -| double fourdst::composition::Composition::setNumberFraction | -( | -const std::string & | symbol, | -
| - | - | const double & | number_fraction ) | -
Sets the number fraction for a given symbol.
-| symbol | The symbol to set the number fraction for. |
| number_fraction | The number fraction to set (must be in [0, 1]). |
| exceptions::UnregisteredSymbolError | if the symbol is not registered. |
| exceptions::CompositionModeError | if the composition is in mass fraction mode. |
| exceptions::InvalidCompositionError | if the number fraction is not between 0 and 1. |
Definition at line 374 of file composition.cpp.
- -| std::vector< double > fourdst::composition::Composition::setNumberFraction | -( | -const std::vector< fourdst::atomic::Species > & | species, | -
| - | - | const std::vector< double > & | number_fractions ) | -
Sets the number fraction for multiple species.
-| species | The vector of species to set the number fractions for. |
| number_fractions | The vector of number fractions corresponding to the species. |
| See | setNumberFraction(const std::vector<std::string>&, const std::vector<double>&) for exceptions. |
Definition at line 435 of file composition.cpp.
- -| std::vector< double > fourdst::composition::Composition::setNumberFraction | -( | -const std::vector< std::string > & | symbols, | -
| - | - | const std::vector< double > & | number_fractions ) | -
Sets the number fraction for multiple symbols.
-| symbols | The symbols to set the number fractions for. |
| number_fractions | The number fractions corresponding to the symbols. |
| exceptions::InvalidCompositionError | if symbol and fraction counts differ. |
| See | setNumberFraction(const std::string&, const double&) for other exceptions. |
Definition at line 396 of file composition.cpp.
- -| Composition fourdst::composition::Composition::subset | +size_t fourdst::composition::Composition::size | ( | -const std::vector< std::string > & | symbols, | -
| - | - | const std::string & | method = "norm" ) const | -
Creates a new Composition object containing a subset of species from this one.
-| symbols | The symbols to include in the subset. |
| method | The method for handling the abundances of the new subset. Can be "norm" (normalize abundances to sum to 1) or "none" (keep original abundances). |
Composition object containing the subset. | exceptions::UnregisteredSymbolError | if any requested symbol is not in the original composition. |
| exceptions::InvalidMixingMode | if an invalid method is provided. |
| exceptions::FailedToFinalizeCompositionError | if normalization fails. |
Definition at line 734 of file composition.cpp.
- -
-
|
-private | +nodiscardoverridevirtualnoexcept
Validates the given fractions, throwing an exception on failure.
-| fractions | The fractions to validate. |
| exceptions::InvalidCompositionError | if the fractions are invalid. |
Gets the number of registered species in the composition.
+Definition at line 327 of file composition.cpp.
+Implements CompositionAbstract.
+ +Definition at line 525 of file composition.cpp.
Definition at line 1078 of file composition.cpp.
+Definition at line 593 of file composition.cpp.
Cache for computed properties to avoid redundant calculations.
-Definition at line 297 of file composition.h.
+Definition at line 152 of file composition.h.
- -| std::unordered_map<std::string, CompositionEntry> fourdst::composition::Composition::m_compositions | +std::map<atomic::Species, double> fourdst::composition::Composition::m_molarAbundances |
The compositions.
+Map of species to their molar abundances.
-Definition at line 295 of file composition.h.
+Definition at line 150 of file composition.h.
| config::Config& fourdst::composition::Composition::m_config = config::Config::getInstance() | +std::set<atomic::Species> fourdst::composition::Composition::m_registeredSpecies |
Definition at line 285 of file composition.h.
+Set of registered species in the composition.
-
-
|
- -private | -
True if the composition is finalized.
- -Definition at line 289 of file composition.h.
- -
-
|
- -private | -
Definition at line 287 of file composition.h.
- -
-
|
- -private | -
Definition at line 286 of file composition.h.
- -
-
|
- -private | -
True if mass fraction mode, false if number fraction mode.
- -Definition at line 292 of file composition.h.
- -
-
|
- -private | -
The mean particle mass of the composition (\sum_{i} \frac{n_i}{m_i}. where n_i is the number fraction of the ith species and m_i is the mass of the ith species).
- -Definition at line 291 of file composition.h.
- -
-
|
- -private | -
The registered symbols.
- -Definition at line 294 of file composition.h.
- -
-
|
- -private | -
The specific number density of the composition (\sum_{i} X_i m_i. Where X_i is the number fraction of the ith species and m_i is the mass of the ith species).
- -Definition at line 290 of file composition.h.
+Definition at line 149 of file composition.h.
-
-Public Member Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- fourdst::libcomposition v1.9.0
+ fourdst::libcomposition v2.0.0
Robust atomic species information library
|
diff --git a/docs/html/classfourdst_1_1composition_1_1exceptions_1_1_invalid_composition_error.html b/docs/html/classfourdst_1_1composition_1_1exceptions_1_1_invalid_composition_error.html
index 73db1c1..ba136ae 100644
--- a/docs/html/classfourdst_1_1composition_1_1exceptions_1_1_invalid_composition_error.html
+++ b/docs/html/classfourdst_1_1composition_1_1exceptions_1_1_invalid_composition_error.html
@@ -29,7 +29,7 @@
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- fourdst::libcomposition v1.9.0
+ fourdst::libcomposition v2.0.0
Robust atomic species information library
|
@@ -113,12 +113,13 @@ $(function(){initNavTree('classfourdst_1_1composition_1_1exceptions_1_1_invalid_
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Private Member Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- fourdst::libcomposition v1.9.0
+ fourdst::libcomposition v2.0.0
Robust atomic species information library
|
diff --git a/docs/html/classfourdst_1_1composition_1_1exceptions_1_1_unregistered_symbol_error.html b/docs/html/classfourdst_1_1composition_1_1exceptions_1_1_unregistered_symbol_error.html
index 364e39a..9c9ff32 100644
--- a/docs/html/classfourdst_1_1composition_1_1exceptions_1_1_unregistered_symbol_error.html
+++ b/docs/html/classfourdst_1_1composition_1_1exceptions_1_1_unregistered_symbol_error.html
@@ -29,7 +29,7 @@
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- fourdst::libcomposition v1.9.0
+ fourdst::libcomposition v2.0.0
Robust atomic species information library
|
@@ -113,12 +113,13 @@ $(function(){initNavTree('classfourdst_1_1composition_1_1exceptions_1_1_unregist
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Private Member Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- fourdst::libcomposition v1.9.0
+ fourdst::libcomposition v2.0.0
Robust atomic species information library
|
@@ -109,15 +109,20 @@ $(function(){initNavTree('composition_8cpp.html',''); initResizable(true); });
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| namespace | fourdst |
| namespace | fourdst::composition |
| Utilities and types for representing and manipulating chemical compositions. | |
Functions | |
| std::ostream & | fourdst::composition::operator<< (std::ostream &os, const GlobalComposition &comp) |
| std::ostream & | fourdst::composition::operator<< (std::ostream &os, const CompositionEntry &entry) |
| std::ostream & | fourdst::composition::operator<< (std::ostream &os, const Composition &composition) |
| OVERLOADS. | |
#include <string>#include <unordered_map>#include <set>#include <utility>#include <optional>#include "fourdst/config/config.h"#include "fourdst/logging/logging.h"#include "fourdst/composition/composition_abstract.h"#include "fourdst/composition/atomicSpecies.h"#include "fourdst/atomic/atomicSpecies.h"Go to the source code of this file.
| struct | fourdst::composition::CanonicalComposition |
| Represents the canonical (X, Y, Z) composition of stellar material. More... | |
| struct | fourdst::composition::GlobalComposition |
| Represents global properties of a finalized composition. More... | |
| struct | fourdst::composition::CompositionEntry |
| Represents a single entry (an isotope) within a composition. More... | |
| class | fourdst::composition::Composition |
| Manages a collection of chemical species and their abundances. More... | |
| struct | fourdst::composition::Composition::CompositionCache |
| Caches computed properties of the composition to avoid redundant calculations. More... | |
@@ -138,6 +143,7 @@ Namespaces | |
| namespace | fourdst |
| namespace | fourdst::composition |
| Utilities and types for representing and manipulating chemical compositions. | |
Directories | |
| atomic | |
| composition | |
Directories | |||||||||||||||||||||||||||||||||||||||
|
- fourdst::libcomposition v1.9.0
+ fourdst::libcomposition v2.0.0
Robust atomic species information library
|
diff --git a/docs/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html b/docs/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html
index 8c38bc4..cb89acd 100644
--- a/docs/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html
+++ b/docs/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html
@@ -29,7 +29,7 @@
|||||||||||||||||||||||||||||||||||||||
|
- fourdst::libcomposition v1.9.0
+ fourdst::libcomposition v2.0.0
Robust atomic species information library
|
@@ -102,6 +102,11 @@ $(function(){initNavTree('dir_68267d1309a1af8e8297ef4c3efbcdba.html',''); initRe
|||||||||||||||||||||||||||||||||||||||
Directories | ||||||||||||||||||||||||||||||||||||
|
- fourdst::libcomposition v1.9.0
+ fourdst::libcomposition v2.0.0
Robust atomic species information library
|
@@ -102,6 +102,11 @@ $(function(){initNavTree('dir_88aa30610c51652b536406602eb05405.html',''); initRe
||||||||||||||||||||||||||||||||||||
Files | ||||||||||||||||||||||||||||||||
|
- fourdst::libcomposition v1.9.0
+ fourdst::libcomposition v2.0.0
Robust atomic species information library
|
@@ -102,6 +102,11 @@ $(function(){initNavTree('dir_c34d5e8363cf0aa3fabc4f3fad3412a4.html',''); initRe
||||||||||||||||||||||||||||||||
|
- fourdst::libcomposition v1.9.0
+ fourdst::libcomposition v2.0.0
Robust atomic species information library
|
@@ -102,6 +102,11 @@ $(function(){initNavTree('dir_cb6fc2f7165eff3b2362b2440dfaea8e.html',''); initRe
||||||||||||||||||||||||||||||||
Directories | ||||||||||||||||||||||||||||
|
- fourdst::libcomposition v1.9.0
+ fourdst::libcomposition v2.0.0
Robust atomic species information library
|
@@ -102,11 +102,18 @@ $(function(){initNavTree('dir_e22a97de167fe22ecd13733f7a34b9f0.html',''); initRe
||||||||||||||||||||||||||||
|
- fourdst::libcomposition v1.9.0
+ fourdst::libcomposition v2.0.0
Robust atomic species information library
|
@@ -102,6 +102,11 @@ $(function(){initNavTree('dir_f0fdd83dd0cb4aa6fd6a832374ae4f05.html',''); initRe
||||||||||||||||||||||||||||
Directories |
Files | |
| atomicSpecies.h | |
| composition.h | |
| composition_abstract.h | |
| elements.h | |
| Provides mappings between atomic numbers and element symbols for the periodic table. | |
| species.h | |
| utils.h | |