Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

Chem Class Reference

#include <Chem.h>

List of all members.

Public Member Functions

 Chem (void)
 constructor

virtual ~Chem ()
 destructor;


Static Public Member Functions

void parseFormula (char *formula, double *elarray)
 parse formula and return results in elememt array

double mwt (double *elarray)
 given element array, calculate molecular weight

double mwt (Stoich *)
 given stoichiometry, calculate molecular weight

void elToOx (double *elarray, double *oxarray)
void oxToEl (double *oxarray, double *elarray) throw (PhaseError *)
void oxMolToWt (double *oxarray)
 converts oxide array in moles to grams

void oxWtToMol (double *oxarray)
 converts oxide array in grams to moles


Static Public Attributes

const int nele = 106
 number of elements considered in this class plus one (space allocation)

const EleProp ele []
 nele array of element properties

const int nox = 19
 number of oxides considered in this class

const OxProp ox []
 nox array of oxide properties


Static Private Member Functions

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

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.

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:
Generated on Mon Jul 7 21:43:01 2008 for phases by doxygen 1.3.4