19 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters)
21 if ((geometry_dimension != 2) && (geometry_dimension != 3))
24 "The EmbeddedFracturePermeability is implemented only for 2D or 3D "
35 DBUG(
"Create EmbeddedFracturePermeability medium property");
54 Eigen::Matrix<double, 3, 1> n;
55 if (
auto const n_ptr =
60 if ((*n_ptr).size() != 3)
63 "The size of the fracture normal vector must be 3, but is %d.",
66 DBUG(
"Using constant fracture normal vector.");
67 std::copy_n((*n_ptr).data(), 3, n.data());
74 "No constant fracture normal was given. By default it will be "
75 "determined as the third principal stress vector.");
78 std::string
const fracture_rotation_xy_param_name =
83 fracture_rotation_xy_param_name, parameters, 0,
nullptr);
85 std::string
const fracture_rotation_yz_param_name =
90 fracture_rotation_yz_param_name, parameters, 0,
nullptr);
96 if (geometry_dimension == 2)
98 return std::make_unique<EmbeddedFracturePermeability<2>>(
99 std::move(property_name), n, n_const, k, b0, a, e0, phi_xy, phi_yz,
102 return std::make_unique<EmbeddedFracturePermeability<3>>(
103 std::move(property_name), n, n_const, k, b0, a, e0, phi_xy, phi_yz, jf);
OGS_NO_DANGLING Parameter< ParameterDataType > & findParameter(std::string const ¶meter_name, std::vector< std::unique_ptr< ParameterBase > > const ¶meters, int const num_components, MeshLib::Mesh const *const mesh=nullptr)