Gems3k
3.1
GEMS3K standalone solver for geochemical equilibria
|
Interface for writing/reading DBR and DCH I/O files of GEMS3K Works with DATACH and DATABR structures. More...
#include <iomanip>
#include <iostream>
#include "io_arrays.h"
#include "node.h"
#include "gdatastream.h"
Variables | |
const char * | _GEMIPM_version_stamp |
outField | DataBR_fields [f_lga+1] |
outField | DataCH_static_fields [14] |
outField | DataCH_dynamic_fields [30] |
Interface for writing/reading DBR and DCH I/O files of GEMS3K Works with DATACH and DATABR structures.
outField DataCH_static_fields[14] |
{ { "nIC", 1, 0, 0, "# nIC: Number of Independent Components (usually chemical elements and charge)" }, { "nDC", 1, 0, 0, "# nDC: Number of Dependent Components (chemical species made of Independent Components)" }, { "nPH", 1, 0, 0, "# nPH: Number of phases (into which Dependent Components are grouped)" }, { "nPS", 1, 0, 0, "# nPS: Number of phases-solutions (multicomponent phases) <= nPH" }, { "nDCs", 1, 0, 0, "# nDCs: Number of Dependent Components in phases-solutions <= nDC" }, { "nICb", 1, 0, 0, "# nICb: Number of ICs kept in the DBR file and DATABR memory structure (<= nIC)" }, { "nDCb", 1, 0, 0, "# nDCb: Number of DCs kept in the DBR file and DATABR memory structure (<=nDC)" }, { "nPHb", 1, 0, 0, "# nPHb: Number of phases kept in the DBR file and DATABR structure (<=nPH)" }, { "nPSb", 1, 0, 0, "# nPSb: Number of phases-solutions kept in the DBR file and DATABR structure (<=nPS)" }, { "nTp", 1, 0, 0, "# nTp: Number of temperature grid points in lookup arrays for data interpolation, >=1" }, { "nPp", 1, 0, 0, "# nPp: Number of pressure grid points in lookup arrays for data interpolation, >=1" }, { "iGrd", 1, 0, 0, "# iGrd: Flag for allocation of array of diffusition coefficients in DATACH structure (DCH file)" }, { "fAalp", 1, 0, 0, "# fAalp: Flag for keeping specific surface areas of phases in DATABR structure (1) or ignoring them (0)" }, { "mLook", 1, 0, 0, "# mLook: Lookup mode: 0 interpolation over nTp*nPp grid; 1 data for T,P pairs, no interpolation"} }