swh:1:snp:f521c49ab17ef7db6ec70b2430e1ed203f50383f
Raw File
Tip revision: 1bf0c0d8fa4ceb65487bea1f482a9f801bccce41 authored by Lars Bilke on 16 November 2020, 12:00:35 UTC
drop
Tip revision: 1bf0c0d
ChemicalSolverInterface.h
/**
 * \file
 * \copyright
 * Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#pragma once

#include "MathLib/LinAlg/GlobalMatrixVectorTypes.h"

namespace ChemistryLib
{
class ChemicalSolverInterface
{
public:
    virtual void initialize() {}

    virtual void executeInitialCalculation(
        std::vector<GlobalVector> const& interpolated_process_solutions) = 0;

    virtual void doWaterChemistryCalculation(
        std::vector<GlobalVector> const& interpolated_process_solutions,
        double const dt) = 0;

    virtual std::vector<GlobalVector*> getIntPtProcessSolutions() const = 0;

    virtual std::vector<std::string> const getComponentList() const
    {
        return {};
    }

    virtual ~ChemicalSolverInterface() = default;

public:
    std::vector<std::vector<GlobalIndexType>> chemical_system_index_map;
};
}  // namespace ChemistryLib
back to top