25namespace PhreeqcIOData
38 std::string
const& project_file_name,
39 std::string&& database,
40 std::unique_ptr<ChemicalSystem>&& chemical_system,
41 std::vector<ReactionRate>&& reaction_rates,
42 std::unique_ptr<UserPunch>&& user_punch,
43 std::unique_ptr<Output>&& output,
44 std::unique_ptr<Dump>&& dump,
52 std::vector<double>
const& concentrations,
56 double const t)
override;
59 std::vector<double>
const& concentrations,
64 double const dt)
override;
71 int const component_id,
74 friend std::ostream&
operator<<(std::ostream& os,
83 double const t,
double const dt)
override;
87 double& porosity)
override;
90 std::size_t
const ele_id,
91 std::vector<GlobalIndexType>
const& chemical_system_indices)
override;
117 double _dt = std::numeric_limits<double>::quiet_NaN();
GlobalMatrix::IndexType GlobalIndexType
GlobalLinearSolver & linear_solver
friend std::ostream & operator<<(std::ostream &os, PhreeqcIO const &phreeqc_io)
std::string const _phreeqc_input_file
double getConcentration(int const component_id, GlobalIndexType const chemical_system_id) const override
PhreeqcIO(MeshLib::Mesh const &mesh, GlobalLinearSolver &linear_solver, std::string const &project_file_name, std::string &&database, std::unique_ptr< ChemicalSystem > &&chemical_system, std::vector< ReactionRate > &&reaction_rates, std::unique_ptr< UserPunch > &&user_punch, std::unique_ptr< Output > &&output, std::unique_ptr< Dump > &&dump, Knobs &&knobs)
void setAqueousSolutionsPrevFromDumpFile() override
std::unique_ptr< ChemicalSystem > _chemical_system
std::vector< ReactionRate > const _reaction_rates
std::unique_ptr< UserPunch > _user_punch
const int phreeqc_instance_id
void writeInputsToFile(double const dt)
void setChemicalSystemConcrete(std::vector< double > const &concentrations, GlobalIndexType const &chemical_system_id, MaterialPropertyLib::Medium const *medium, MaterialPropertyLib::VariableArray const &vars, ParameterLib::SpatialPosition const &pos, double const t, double const dt) override
PhreeqcIO & operator<<(double const dt)
std::unique_ptr< Dump > const _dump
void initialize() override
std::unique_ptr< Output > const _output
void readOutputsFromFile()
std::size_t _num_chemical_systems
void computeSecondaryVariable(std::size_t const ele_id, std::vector< GlobalIndexType > const &chemical_system_indices) override
void initializeChemicalSystemConcrete(std::vector< double > const &concentrations, GlobalIndexType const &chemical_system_id, MaterialPropertyLib::Medium const &medium, ParameterLib::SpatialPosition const &pos, double const t) override
void updateVolumeFractionPostReaction(GlobalIndexType const &chemical_system_id, MaterialPropertyLib::Medium const &medium, ParameterLib::SpatialPosition const &pos, double const porosity, double const t, double const dt) override
void executeSpeciationCalculation(double const dt) override
std::string const _database
friend std::istream & operator>>(std::istream &in, PhreeqcIO &phreeqc_io)
std::vector< std::string > const getComponentList() const override
void updatePorosityPostReaction(GlobalIndexType const &chemical_system_id, MaterialPropertyLib::Medium const &medium, double &porosity) override