Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Private Member Functions

Chem Class Reference

#include <Chem.h>

List of all members.

Public Member Functions

 Chem (void)
 constructor
virtual ~Chem ()
 destructor;

Static Public Member Functions

static void parseFormula (char *formula, double *elarray)
 parse formula and return results in elememt array
static double mwt (double *elarray)
 given element array, calculate molecular weight
static double mwt (Stoich *)
 given stoichiometry, calculate molecular weight
static void elToOx (double *elarray, double *oxarray)
static void oxToEl (double *oxarray, double *elarray) throw (PhaseError *)
static void oxMolToWt (double *oxarray)
 converts oxide array in moles to grams
static void oxWtToMol (double *oxarray)
 converts oxide array in grams to moles

Static Public Attributes

static const int nele = 106
 number of elements considered in this class plus one (space allocation)
static const EleProp ele []
 nele array of element properties
static const int nox = 19
 number of oxides considered in this class
static const OxProp ox []
 nox array of oxide properties

Static Private Member Functions

static void parseFormulaToken (char *token, int len, double mult, double *elarray) throw (PhaseError *)
 parses formula token. May be called recursively by public parseFormula()

Detailed Description

static class for data and methods associated with chemistry calculations.

Author:
Victor Kress
Version:
Revision:
1.7

Definition at line 49 of file Chem.h.


Member Function Documentation

static void Chem::elToOx ( double *  elarray,
double *  oxarray 
) [static]

given element array, return oxide abundances

Parameters:
elarray elemant abundanced on entry. Contains remainder on exit
oxarray array of moles of oxides.
static void Chem::oxToEl ( double *  oxarray,
double *  elarray 
) throw (PhaseError *) [static]

given oxide array, return corresponding element array

Parameters:
oxarray nox array of oxide moles
elarray nele array of element moles

The documentation for this class was generated from the following file: