Revision 334069ce1bc59f3a1bba7182c9c0b4db6d6e514e authored by renchao.lu on 03 June 2021, 08:11:42 UTC, committed by renchao.lu on 03 June 2021, 08:11:42 UTC
[CL] Exchange reactions feature to ChemistryLib

See merge request ogs/ogs!3648
2 parent s 8b35b21 + 1952481
Raw File
TESLocalAssemblerData.cpp
/**
 * \file
 * \copyright
 * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 */

#include "TESLocalAssemblerData.h"

#include "TESReactionAdaptor.h"

namespace ProcessLib
{
namespace TES
{
TESLocalAssemblerData::TESLocalAssemblerData(AssemblyParams const& ap_,
                                             const unsigned num_int_pts,
                                             const unsigned dimension)
    : ap(ap_),
      solid_density(num_int_pts, ap_.initial_solid_density),
      reaction_rate(num_int_pts),
      velocity(dimension, std::vector<double>(num_int_pts)),
      reaction_adaptor(TESFEMReactionAdaptor::newInstance(*this)),
      solid_density_prev_ts(num_int_pts, ap_.initial_solid_density),
      reaction_rate_prev_ts(num_int_pts)
{
}

TESLocalAssemblerData::~TESLocalAssemblerData() = default;
}  // namespace TES
}  // namespace ProcessLib
back to top