Gems3k  3.1
GEMS3K standalone solver for geochemical equilibria
 All Classes Files Functions Variables Enumerations Enumerator
Enumerations | Functions | Variables
/Users/kulik/DevGEMS/trunk/standalone/GEMS3K/ms_param.cpp File Reference

Implementation of default settings for the Interior Points Method (IPM) module for convex programming Gibbs energy minimization as well as I/O functions for IPM files. More...

#include <math.h>
#include "m_param.h"
#include "num_methods.h"
#include "gdatastream.h"
#include "node.h"

Enumerations

enum  volume_code {
  VOL_UNDEF, VOL_CALC, VOL_CONSTR, VOL_UNDEF,
  VOL_CALC, VOL_CONSTR
}

Functions

void strip (string &str)
istream & f_getline (istream &is, gstring &str, char delim)
 read string as: "<characters>"
gstring u_makepath (const gstring &dir, const gstring &name, const gstring &ext)
 Combines path, directory, name and extension to full pathname.
void u_splitpath (const gstring &Path, gstring &dir, gstring &name, gstring &ext)
 Splits full pathname to path, directory, name and extension.
char(* f_getfiles (const char *f_name, char *Path, long int &nElem, char delim))[fileNameLength]
 Get Path of file and Reading list of file names from it, return number of files.

Variables

const double R_CONSTANT = 8.31451
const double NA_CONSTANT = 6.0221367e23
const double F_CONSTANT = 96485.309
const double e_CONSTANT = 1.60217733e-19
const double k_CONSTANT = 1.380658e-23
const double cal_to_J = 4.184
const double C_to_K = 273.15
const double lg_to_ln = 2.302585093
const double ln_to_lg = 0.434294481
const double H2O_mol_to_kg = 55.50837344
const double Min_phys_amount = 1.66e-24
SPP_SETTING pa_
const long int bGRAN = 200

Detailed Description

Implementation of default settings for the Interior Points Method (IPM) module for convex programming Gibbs energy minimization as well as I/O functions for IPM files.


Variable Documentation

Initial value:
 {
    " GEMS-GUI v.3.1 r.2150 (rc) " " GEMS3K v.3.1 r.690 (rc) ",
    {    
         2,    2,        -5,   
         1,   130,     1,   
         0,      30000,      1,    7000, 
         1000.,    1e-13,    1e-20,  
         1e-6,    0.01,    0.01,  
         1e-5,    1e-5,      1e-5,  
         1e-5,    1e-5,     1e-5,  
         1e-6,   1e-17,     1.,   
         0.,      1.0,     1000., 
         1e-3,    12.05,     1e-13,  
         1e-13,    1e-33,    1e-20, 
         1e-5,     1e-10,     1e-3,  
         1e-10,   0,  
    },
}