swh:1:snp:f521c49ab17ef7db6ec70b2430e1ed203f50383f
Raw File
Tip revision: 6972175bbad949c8bfffbbc2c717a01dbc47f94e authored by Thomas Fischer on 12 October 2021, 04:18:47 UTC
[A/U/GeoTools] Rm. tool TriangulatePolyline.
Tip revision: 6972175
GetSymmetricTensor.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
 *
 * Created on March 04, 2020, 5:20 PM
 */

#pragma once

#include <Eigen/Dense>

#include "MaterialLib/MPL/Property.h"
#include "MathLib/KelvinVector.h"

namespace MaterialPropertyLib
{
template <int GlobalDim>
constexpr int symmetric_tensor_size =
    MathLib::KelvinVector::kelvin_vector_dimensions(GlobalDim);

template <int GlobalDim>
using SymmetricTensor =
    Eigen::Matrix<double, symmetric_tensor_size<GlobalDim>, 1>;

template <int GlobalDim>
SymmetricTensor<GlobalDim> getSymmetricTensor(
    MaterialPropertyLib::PropertyDataType const& values);
}  // namespace MaterialPropertyLib
back to top