OGS
FractureIdentity2.cpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#include "FractureIdentity2.h"
5
6namespace MaterialLib
7{
8namespace Fracture
9{
10namespace
11{
12template <typename VectorType, int DisplacementDim>
13VectorType initIdentity2()
14{
15 VectorType ivec = VectorType::Zero(DisplacementDim);
16 ivec[DisplacementDim - 1] = 1;
17 return ivec;
18}
19} // anonymous namespace
20
21template <int DisplacementDim>
24 initIdentity2<typename FractureIdentity2<DisplacementDim>::VectorType,
25 DisplacementDim>();
26
27// template instantiation
28template struct FractureIdentity2<2>;
29template struct FractureIdentity2<3>;
30
31} // namespace Fracture
32} // namespace MaterialLib
Eigen::Matrix< double, DisplacementDim, 1 > VectorType
static MATERIALLIB_FRACTUREMODELS_EXPORT VectorType const value