Loading...
Searching...
No Matches
utils.cpp File Reference
`#include "fourdst/composition/composition.h"`
`#include "fourdst/composition/exceptions/exceptions_composition.h"`
`#include "fourdst/atomic/atomicSpecies.h"`
`#include "fourdst/atomic/species.h"`
`#include "fourdst/composition/utils.h"`
`#include "fourdst/logging/logging.h"`
`#include <numeric>`
`#include <ranges>`
`#include <vector>`
`#include <set>`
`#include <string>`
`#include "quill/LogMacros.h"`
Include dependency graph for utils.cpp:

Go to the source code of this file.

## Namespaces

namespace | fourdst
namespace | fourdst::composition
| Utilities and types for representing and manipulating chemical compositions.

## Functions

Composition | fourdst::composition::buildCompositionFromMassFractions (const std::set< atomic::Species > &species, const std::vector< double > &massFractions)
| Build a Composition object from species in a set and their corresponding mass fractions.
Composition | fourdst::composition::buildCompositionFromMassFractions (const std::vector< atomic::Species > &species, const std::vector< double > &massFractions)
| Build a Composition object from species and their corresponding mass fractions.
Composition | fourdst::composition::buildCompositionFromMassFractions (const std::vector< std::string > &symbols, const std::vector< double > &massFractions)
| Build a Composition object from symbols and their corresponding mass fractions.
Composition | fourdst::composition::buildCompositionFromMassFractions (const std::unordered_map< atomic::Species, double > &massFractionsMap)
| Build a Composition object from a map of species to mass fractions.
Composition | fourdst::composition::buildCompositionFromMassFractions (std::map< atomic::Species, double > massFractions)
| Build a Composition object from a map of species to mass fractions.
Composition | fourdst::composition::buildCompositionFromMassFractions (std::map< std::string, double > massFractions)
| Build a Composition object from a map of species to mass fractions.
Composition | fourdst::composition::buildCompositionFromMassFractions (const std::unordered_map< std::string, double > &massFractions)
| Build a Composition object from a map of species to mass fractions.
std::optional< fourdst::atomic::Species > | fourdst::composition::getSpecies (const std::string &symbol)