swh:1:snp:6088ab52ef49920e01e3f334cdf4d5d6c8a822b9
Raw File
Tip revision: 9477ea5f4ef8ea3b617a17cacaaab8da9c52af8a authored by Norbert Grunwald on 09 September 2021, 12:46:32 UTC
update reference files
Tip revision: 9477ea5
BoundaryCondition.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 "FemCondition.h"

namespace DataHolderLib
{
class BoundaryCondition final : public FemCondition
{
public:
    enum class ConditionType
    {
        NONE,
        DIRICHLET,
        NEUMANN,
        ROBIN
    };

    BoundaryCondition(ProcessVariable const& process_var,
                      std::string const& param_name, ConditionType type);

    std::string const getConditionClassStr() const override
    {
        return "Boundary Condition";
    }

    /// Returns the type of boundary condition this is
    ConditionType getType() const { return _type; }

    /// Converts the type enum into a string
    static ConditionType convertStringToType(std::string const& str);

    /// Converts a string specifying the type into an enum
    static std::string convertTypeToString(ConditionType type);

private:
    ConditionType _type;
};

}  // namespace DataHolderLib
back to top