Revision 9c63442e45c049964bce7219d16ec23cbfa7c226 authored by Christoph Lehmann on 06 March 2023, 10:21:39 UTC, committed by Christoph Lehmann on 06 March 2023, 10:21:39 UTC
Draft: Beautiful access to element degrees of freedom

See merge request ogs/ogs!4507
2 parent s e4bf9ce + 68c14c3
Raw File
HydrostaticElasticityModel.h
/**
 * \file
 * \copyright
 * Copyright (c) 2012-2023, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 * Created on August 14, 2020, 10:56 AM
 */

#pragma once

#include "SimplifiedElasticityModel.h"

namespace ProcessLib
{
namespace ThermoRichardsFlow
{
struct HydrostaticElasticityModel : SimplifiedElasticityModel
{
    HydrostaticElasticityModel()
    {
        DBUG("using hydrostatic simplified mechanics model");
    }

    double storageContribution(
        MaterialPropertyLib::Phase const& solid_phase,
        MaterialPropertyLib::VariableArray const& variable_array,
        ParameterLib::SpatialPosition const& pos, double const t,
        double const dt) override
    {
        return bulkCompressibilityFromYoungsModulus(
            solid_phase, variable_array, pos, t, dt);
    }

    double thermalExpansivityContribution(
        Eigen::Matrix<double, 3, 3> const& solid_linear_thermal_expansion_coefficient,
        MaterialPropertyLib::Phase const& /*solid_phase*/,
        MaterialPropertyLib::VariableArray const& /*variable_array*/,
        ParameterLib::SpatialPosition const& /*pos*/, double const /*t*/,
        double const /*dt*/) override
    {
        return -solid_linear_thermal_expansion_coefficient.trace();
    }
};

}  // namespace ThermoRichardsFlow
}  // namespace ProcessLib
back to top