OGS
GetSymmetricTensor.h
Go to the documentation of this file.
1/*
2 * \file
3 * \copyright
4 * Copyright (c) 2012-2024, OpenGeoSys Community (http://www.opengeosys.org)
5 * Distributed under a Modified BSD License.
6 * See accompanying file LICENSE.txt or
7 * http://www.opengeosys.org/project/license
8 *
9 * Created on March 04, 2020, 5:20 PM
10 */
11
12#pragma once
13
14#include <Eigen/Core>
15
18
19namespace MaterialPropertyLib
20{
21template <int GlobalDim>
22constexpr int symmetric_tensor_size =
24
25template <int GlobalDim>
27 Eigen::Matrix<double, symmetric_tensor_size<GlobalDim>, 1>;
28
29template <int GlobalDim>
32} // namespace MaterialPropertyLib
constexpr int symmetric_tensor_size
Eigen::Matrix< double, symmetric_tensor_size< GlobalDim >, 1 > SymmetricTensor
SymmetricTensor< GlobalDim > getSymmetricTensor(MaterialPropertyLib::PropertyDataType const &values)
std::variant< double, Eigen::Matrix< double, 2, 1 >, Eigen::Matrix< double, 3, 1 >, Eigen::Matrix< double, 2, 2 >, Eigen::Matrix< double, 3, 3 >, Eigen::Matrix< double, 4, 1 >, Eigen::Matrix< double, 6, 1 >, Eigen::MatrixXd > PropertyDataType
Definition Property.h:31
constexpr int kelvin_vector_dimensions(int const displacement_dim)
Kelvin vector dimensions for given displacement dimension.