libatomprobe
Library for Atom Probe Tomography (APT) computation
Namespaces | Enumerations | Functions
massconvert.h File Reference
#include <map>
#include <vector>
Include dependency graph for massconvert.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 AtomProbe
 

Enumerations

enum  {
  AtomProbe::COMPPARSE_BAD_INPUT_FORMAT =1, AtomProbe::COMPPARSE_BAD_COMP_VALUE, AtomProbe::COMPPARSE_BAD_BAL_USAGE, AtomProbe::COMPPARSE_BAD_SYMBOL,
  AtomProbe::COMPPARSE_DUPLICATE_SYMBOL, AtomProbe::COMPPARSE_BAD_TOTAL_COMP
}
 composition parsing error messages More...
 

Functions

unsigned int AtomProbe::parseCompositionData (const std::vector< std::string > &s, const AbundanceData &atomTable, std::map< unsigned int, double > &atomData)
 Convert atomic string label data, in the form "Fe 0.81" to fraction map. More...
 
void AtomProbe::convertMolToMass (const AbundanceData &atomTable, const std::map< unsigned int, double > &compositionMols, std::map< unsigned int, double > &compositionMass)
 Convert the given composition from molar fraction data to mass fraction. More...
 
void AtomProbe::convertMassToMol (const AbundanceData &atomTable, const std::map< unsigned int, double > &compositionMass, std::map< unsigned int, double > &compositionMols)
 Convert the given composition from mass fraction data to molar fraction. More...