13#ifndef INC_YAMLPHREEQCRM_H
14#define INC_YAMLPHREEQCRM_H
18#include "yaml-cpp/yaml.h"
22#include "irm_dll_export.h"
33 std::map<std::string, int> method_map;
34 YAML::EmitterStyle::value style;
83 const YAML::Node&
GetYAMLDoc() {
return this->YAML_doc; };
522 void YAMLInitialPhreeqc2Module(std::vector< int > initial_conditions1, std::vector< int > initial_conditions2, std::vector< double > fraction1);
693 void YAMLRunFile(
bool workers,
bool initial_phreeqc,
bool utility, std::string chemistry_name);
723 void YAMLRunString(
bool workers,
bool initial_phreeqc,
bool utility, std::string input_string);
Enumeration used to return error codes.
IRM_RESULT
Enumeration for PhreeqcRM function return codes.
Definition IrmResult.h:8
Class to implement multiple instances of YAMLPhreeqcRM.
Definition YAMLPhreeqcRM.h:2013
static IRM_RESULT DestroyYAMLPhreeqcRM(int n)
static YAMLPhreeqcRM * GetInstance(int n)
static int CreateYAMLPhreeqcRM(void)
YAML helper class.
Definition YAMLPhreeqcRM.h:30
void YAMLSetGridCellCount(int n)
void YAMLSetUnitsSolution(int option)
void YAMLInitialExchanges2Module(std::vector< int > exchanges)
size_t Index
Definition YAMLPhreeqcRM.h:40
void YAMLSetUnitsPPassemblage(int option)
void YAMLSetTimeConversion(double conv_factor)
void YAMLUseSolutionDensityVolume(bool tf)
void YAMLScreenMessage(std::string str)
void YAMLInitialPhreeqcCell2Module(int n, std::vector< int > cell_numbers)
void YAMLSetTime(double time)
void YAMLInitialSolutions2Module(std::vector< int > solutions)
void YAMLSetUnitsExchange(int option)
void YAMLRunFile(bool workers, bool initial_phreeqc, bool utility, std::string chemistry_name)
void YAMLInitialEquilibriumPhases2Module(std::vector< int > equilibrium_phases)
void YAMLSetNthSelectedOutput(int n)
void YAMLInitialGasPhases2Module(std::vector< int > gas_phases)
void YAMLInitialPhreeqc2Module(std::vector< int > initial_conditions1)
void YAMLSetConcentrations(std::vector< double > &c)
void YAMLWarningMessage(std::string warnstr)
void YAMLDumpModule(bool dump_on, bool append)
const YAML::Node & GetYAMLDoc()
Definition YAMLPhreeqcRM.h:83
void YAMLFindComponents()
void YAMLSetPrintChemistryOn(bool workers, bool initial_phreeqc, bool utility)
void YAMLSetRepresentativeVolume(std::vector< double > rv)
void YAMLLogMessage(std::string str)
void YAMLStateDelete(int istate)
void WriteYAMLDoc(std::string file_name)
void YAMLSetGasPhaseVolume(std::vector< double > gas_volume)
void YAMLSetPrintChemistryMask(std::vector< int > cell_mask)
void YAMLSetSaturationUser(std::vector< double > sat)
void YAMLSetDensityUser(std::vector< double > density)
static std::mutex InstancesLock
Definition YAMLPhreeqcRM.h:38
void YAMLSetUnitsSSassemblage(int option)
void YAMLStateApply(int istate)
void YAMLSetSpeciesSaveOn(bool save_on)
static size_t InstancesIndex
Definition YAMLPhreeqcRM.h:39
void YAMLSetPartitionUZSolids(bool tf)
void YAMLThreadCount(int nthreads)
void YAMLInitialKinetics2Module(std::vector< int > kinetics)
void YAMLInitialSolidSolutions2Module(std::vector< int > solid_solutions)
void YAMLAddOutputVars(std::string option, std::string def)
void YAMLSetTemperature(std::vector< double > t)
void YAMLCloseFiles(void)
void YAMLRunString(bool workers, bool initial_phreeqc, bool utility, std::string input_string)
void YAMLSetRebalanceByCell(bool tf)
void YAMLSetUnitsKinetics(int option)
void YAMLSetFilePrefix(std::string prefix)
void YAMLInitialPhreeqc2Module(std::vector< int > initial_conditions1, std::vector< int > initial_conditions2, std::vector< double > fraction1)
void YAMLSetScreenOn(bool tf)
void YAMLSetDumpFileName(std::string dump_name)
void YAMLSetErrorHandlerMode(int mode)
void YAMLLoadDatabase(std::string database)
void YAMLSetRebalanceFraction(double f)
void YAMLSetTimeStep(double time_step)
void YAMLSetComponentH2O(bool tf)
void YAMLSetUnitsSurface(int option)
void YAMLSetPorosity(std::vector< double > por)
void YAMLSetUnitsGasPhase(int option)
void YAMLSetSelectedOutputOn(bool tf)
void YAMLCreateMapping(std::vector< int > &grid2chem)
void YAMLOutputMessage(std::string str)
void YAMLStateSave(int istate)
void YAMLSetCurrentSelectedOutputUserNumber(int n_user)
static std::map< size_t, YAMLPhreeqcRM * > Instances
Definition YAMLPhreeqcRM.h:37
void YAMLSetErrorOn(bool tf)
void YAMLInitialSurfaces2Module(std::vector< int > surfaces)
void YAMLSetGasCompMoles(std::vector< double > gas_moles)
void YAMLSetPressure(std::vector< double > p)
void YAMLSpeciesConcentrations2Module(std::vector< double > species_conc)