OGS
BranchProperty.h
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#pragma once
5
6#include <Eigen/Core>
7
8#include "MeshLib/Node.h"
9
10namespace ProcessLib
11{
12namespace LIE
13{
14struct BranchProperty final
15{
16 BranchProperty(MeshLib::Node const& branchNode,
17 int const master_fracture_id_,
18 int const slave_fracture_id_)
19 : coords{branchNode.data()},
20 node_id{branchNode.getID()},
21 master_fracture_id{master_fracture_id_},
22 slave_fracture_id{slave_fracture_id_}
23 {
24 }
25
26 Eigen::Vector3d const coords;
27 // unit vector normal to the master fracture in a direction to the slave
28 Eigen::Vector3d normal_vector_branch;
29 std::size_t const node_id;
32
33 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
34};
35
36} // namespace LIE
37} // namespace ProcessLib
Eigen::Vector3d const coords
BranchProperty(MeshLib::Node const &branchNode, int const master_fracture_id_, int const slave_fracture_id_)