Revision 8977f9f69dccdeecc339419aca193f3a8fcbe92e authored by Thomas Fischer on 08 July 2021, 13:11:06 UTC, committed by Dmitry Yu. Naumov on 09 July 2021, 10:13:49 UTC
1 parent 7d00a87
Raw File
BishopsPowerLaw.h
/**
 * \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
 */
#pragma once

#include "MaterialLib/MPL/Property.h"

namespace MaterialPropertyLib
{
/// Bishop's power law for effective stress.
class BishopsPowerLaw final : public Property
{
public:
    BishopsPowerLaw(std::string name, double const exponent);

    void checkScale() const override;

    PropertyDataType value(VariableArray const& variable_array,
                           ParameterLib::SpatialPosition const& /*pos*/,
                           double const /*t*/,
                           double const /*dt*/) const override;
    PropertyDataType dValue(VariableArray const& variable_array,
                            Variable const variable,
                            ParameterLib::SpatialPosition const& /*pos*/,
                            double const /*t*/,
                            double const /*dt*/) const override;

private:
    double const m_;  //< Exponent.
};
}  // namespace MaterialPropertyLib
back to top