v0.14.0
HenckyOps.hpp
Go to the documentation of this file.
1 /**
2  * \file HenckyOps.hpp
3  * \example HenckyOps.hpp
4  *
5  * @copyright Copyright (c) 2023
6  */
7 
8 #ifndef __HENCKY_OPS_HPP__
9 #define __HENCKY_OPS_HPP__
10 
11 namespace HenckyOps {
12 
13 constexpr double eps = std::numeric_limits<float>::epsilon();
14 
15 auto f = [](double v) { return 0.5 * std::log(v); };
16 auto d_f = [](double v) { return 0.5 / v; };
17 auto dd_f = [](double v) { return -0.5 / (v * v); };
18 
19 struct isEq {
20  static inline auto check(const double &a, const double &b) {
21  return std::abs(a - b) / absMax < eps;
22  }
23  static double absMax;
24 };
25 
26 double isEq::absMax = 1;
27 
28 inline auto is_eq(const double &a, const double &b) {
29  return isEq::check(a, b);
30 };
31 
32 template <int DIM> inline auto get_uniq_nb(double *ptr) {
33  std::array<double, DIM> tmp;
34  std::copy(ptr, &ptr[DIM], tmp.begin());
35  std::sort(tmp.begin(), tmp.end());
36  isEq::absMax = std::max(std::abs(tmp[0]), std::abs(tmp[DIM - 1]));
37  return std::distance(tmp.begin(), std::unique(tmp.begin(), tmp.end(), is_eq));
38 };
39 
40 template <int DIM>
43 
44  isEq::absMax =
45  std::max(std::max(std::abs(eig(0)), std::abs(eig(1))), std::abs(eig(2)));
46 
47  int i = 0, j = 1, k = 2;
48 
49  if (is_eq(eig(0), eig(1))) {
50  i = 0;
51  j = 2;
52  k = 1;
53  } else if (is_eq(eig(0), eig(2))) {
54  i = 0;
55  j = 1;
56  k = 2;
57  } else if (is_eq(eig(1), eig(2))) {
58  i = 1;
59  j = 0;
60  k = 2;
61  }
62 
64  eigen_vec(i, 0), eigen_vec(i, 1), eigen_vec(i, 2),
65 
66  eigen_vec(j, 0), eigen_vec(j, 1), eigen_vec(j, 2),
67 
68  eigen_vec(k, 0), eigen_vec(k, 1), eigen_vec(k, 2)};
69 
70  FTensor::Tensor1<double, 3> eig_c{eig(i), eig(j), eig(k)};
71 
72  {
75  eig(i) = eig_c(i);
76  eigen_vec(i, j) = eigen_vec_c(i, j);
77  }
78 };
79 
80 struct CommonData : public boost::enable_shared_from_this<CommonData> {
81  boost::shared_ptr<MatrixDouble> matGradPtr;
82  boost::shared_ptr<MatrixDouble> matDPtr;
83  boost::shared_ptr<MatrixDouble> matLogCPlastic;
84 
93 
94  inline auto getMatFirstPiolaStress() {
95  return boost::shared_ptr<MatrixDouble>(shared_from_this(),
97  }
98 
99  inline auto getMatHenckyStress() {
100  return boost::shared_ptr<MatrixDouble>(shared_from_this(),
101  &matHenckyStress);
102  }
103 
104  inline auto getMatLogC() {
105  return boost::shared_ptr<MatrixDouble>(shared_from_this(), &matLogC);
106  }
107 
108  inline auto getMatTangent() {
109  return boost::shared_ptr<MatrixDouble>(shared_from_this(), &matTangent);
110  }
111 };
112 
113 template <int DIM, IntegrationType I, typename DomainEleOp>
115 
116 template <int DIM, IntegrationType I, typename DomainEleOp>
118 
119 template <int DIM, IntegrationType I, typename DomainEleOp>
121 
122 template <int DIM, IntegrationType I, typename DomainEleOp, int S>
124 
125 template <int DIM, IntegrationType I, typename DomainEleOp, int S>
127 
128 template <int DIM, IntegrationType I, typename DomainEleOp, int S>
130 
131 template <int DIM, IntegrationType I, typename DomainEleOp, int S>
133 
134 template <int DIM, typename DomainEleOp>
136 
138  boost::shared_ptr<CommonData> common_data)
140  commonDataPtr(common_data) {
141  std::fill(&DomainEleOp::doEntities[MBEDGE],
142  &DomainEleOp::doEntities[MBMAXTYPE], false);
143  }
144 
145  MoFEMErrorCode doWork(int side, EntityType type, EntData &data) {
147 
151 
152  constexpr auto t_kd = FTensor::Kronecker_Delta<int>();
153  // const size_t nb_gauss_pts = matGradPtr->size2();
154  const size_t nb_gauss_pts = DomainEleOp::getGaussPts().size2();
155 
156  auto t_grad = getFTensor2FromMat<DIM, DIM>(*(commonDataPtr->matGradPtr));
157 
158  commonDataPtr->matEigVal.resize(DIM, nb_gauss_pts, false);
159  commonDataPtr->matEigVec.resize(DIM * DIM, nb_gauss_pts, false);
160  auto t_eig_val = getFTensor1FromMat<DIM>(commonDataPtr->matEigVal);
161  auto t_eig_vec = getFTensor2FromMat<DIM, DIM>(commonDataPtr->matEigVec);
162 
163  for (size_t gg = 0; gg != nb_gauss_pts; ++gg) {
164 
169 
170  F(i, j) = t_grad(i, j) + t_kd(i, j);
171  C(i, j) = F(k, i) ^ F(k, j);
172 
173  for (int ii = 0; ii != DIM; ii++)
174  for (int jj = 0; jj != DIM; jj++)
175  eigen_vec(ii, jj) = C(ii, jj);
176 
177  CHKERR computeEigenValuesSymmetric(eigen_vec, eig);
178  for (auto ii = 0; ii != DIM; ++ii)
179  eig(ii) = std::max(std::numeric_limits<double>::epsilon(), eig(ii));
180 
181  // rare case when two eigen values are equal
182  auto nb_uniq = get_uniq_nb<DIM>(&eig(0));
183  if constexpr (DIM == 3) {
184  if (nb_uniq == 2) {
185  sort_eigen_vals<DIM>(eig, eigen_vec);
186  }
187  }
188 
189  t_eig_val(i) = eig(i);
190  t_eig_vec(i, j) = eigen_vec(i, j);
191 
192  ++t_grad;
193  ++t_eig_val;
194  ++t_eig_vec;
195  }
196 
198  }
199 
200 private:
201  boost::shared_ptr<CommonData> commonDataPtr;
202 };
203 
204 template <int DIM, typename DomainEleOp>
206 
207  OpCalculateLogCImpl(const std::string field_name,
208  boost::shared_ptr<CommonData> common_data)
210  commonDataPtr(common_data) {
211  std::fill(&DomainEleOp::doEntities[MBEDGE],
212  &DomainEleOp::doEntities[MBMAXTYPE], false);
213  }
214 
215  MoFEMErrorCode doWork(int side, EntityType type, EntData &data) {
217 
220 
221  constexpr auto t_kd = FTensor::Kronecker_Delta<int>();
222  // const size_t nb_gauss_pts = matGradPtr->size2();
223  const size_t nb_gauss_pts = DomainEleOp::getGaussPts().size2();
224  constexpr auto size_symm = (DIM * (DIM + 1)) / 2;
225  commonDataPtr->matLogC.resize(size_symm, nb_gauss_pts, false);
226 
227  auto t_eig_val = getFTensor1FromMat<DIM>(commonDataPtr->matEigVal);
228  auto t_eig_vec = getFTensor2FromMat<DIM, DIM>(commonDataPtr->matEigVec);
229 
230  auto t_logC = getFTensor2SymmetricFromMat<DIM>(commonDataPtr->matLogC);
231 
232  for (size_t gg = 0; gg != nb_gauss_pts; ++gg) {
233 
236  eig(i) = t_eig_val(i);
237  eigen_vec(i, j) = t_eig_vec(i, j);
238  auto logC = EigenMatrix::getMat(eig, eigen_vec, f);
239  t_logC(i, j) = logC(i, j);
240 
241  ++t_eig_val;
242  ++t_eig_vec;
243  ++t_logC;
244  }
245 
247  }
248 
249 private:
250  boost::shared_ptr<CommonData> commonDataPtr;
251 };
252 
253 template <int DIM, typename DomainEleOp>
255 
257  boost::shared_ptr<CommonData> common_data)
259  commonDataPtr(common_data) {
260  std::fill(&DomainEleOp::doEntities[MBEDGE],
261  &DomainEleOp::doEntities[MBMAXTYPE], false);
262  }
263 
264  MoFEMErrorCode doWork(int side, EntityType type, EntData &data) {
266 
271 
272  const size_t nb_gauss_pts = DomainEleOp::getGaussPts().size2();
273  constexpr auto size_symm = (DIM * (DIM + 1)) / 2;
274  commonDataPtr->matLogCdC.resize(size_symm * size_symm, nb_gauss_pts, false);
275  auto t_logC_dC = getFTensor4DdgFromMat<DIM, DIM>(commonDataPtr->matLogCdC);
276  auto t_eig_val = getFTensor1FromMat<DIM>(commonDataPtr->matEigVal);
277  auto t_eig_vec = getFTensor2FromMat<DIM, DIM>(commonDataPtr->matEigVec);
278 
279  for (size_t gg = 0; gg != nb_gauss_pts; ++gg) {
280 
283  eig(i) = t_eig_val(i);
284  eigen_vec(i, j) = t_eig_vec(i, j);
285 
286  // rare case when two eigen values are equal
287  auto nb_uniq = get_uniq_nb<DIM>(&eig(0));
288  auto dlogC_dC = EigenMatrix::getDiffMat(eig, eigen_vec, f, d_f, nb_uniq);
289  dlogC_dC(i, j, k, l) *= 2;
290 
291  t_logC_dC(i, j, k, l) = dlogC_dC(i, j, k, l);
292 
293  ++t_logC_dC;
294  ++t_eig_val;
295  ++t_eig_vec;
296  }
297 
299  }
300 
301 private:
302  boost::shared_ptr<CommonData> commonDataPtr;
303 };
304 
305 template <int DIM, typename DomainEleOp, int S>
307  : public DomainEleOp {
308 
310  boost::shared_ptr<CommonData> common_data)
312  commonDataPtr(common_data) {
313  std::fill(&DomainEleOp::doEntities[MBEDGE],
314  &DomainEleOp::doEntities[MBMAXTYPE], false);
315  }
316 
317  MoFEMErrorCode doWork(int side, EntityType type, EntData &data) {
319 
324 
325  constexpr auto t_kd = FTensor::Kronecker_Delta<int>();
326 
327  // const size_t nb_gauss_pts = matGradPtr->size2();
328  const size_t nb_gauss_pts = DomainEleOp::getGaussPts().size2();
329  auto t_D = getFTensor4DdgFromMat<DIM, DIM, S>(*commonDataPtr->matDPtr);
330  auto t_logC = getFTensor2SymmetricFromMat<DIM>(commonDataPtr->matLogC);
331  constexpr auto size_symm = (DIM * (DIM + 1)) / 2;
332  commonDataPtr->matHenckyStress.resize(size_symm, nb_gauss_pts, false);
333  auto t_T = getFTensor2SymmetricFromMat<DIM>(commonDataPtr->matHenckyStress);
334 
335  for (size_t gg = 0; gg != nb_gauss_pts; ++gg) {
336  t_T(i, j) = t_D(i, j, k, l) * t_logC(k, l);
337  ++t_logC;
338  ++t_T;
339  ++t_D;
340  }
341 
343  }
344 
345 private:
346  boost::shared_ptr<CommonData> commonDataPtr;
347 };
348 
349 template <int DIM, typename DomainEleOp, int S>
351  : public DomainEleOp {
352 
354  boost::shared_ptr<CommonData> common_data,
355  boost::shared_ptr<MatrixDouble> mat_D_ptr,
356  const double scale = 1)
357  : DomainEleOp(field_name, DomainEleOp::OPROW), commonDataPtr(common_data),
358  scaleStress(scale), matDPtr(mat_D_ptr) {
359  std::fill(&DomainEleOp::doEntities[MBEDGE],
360  &DomainEleOp::doEntities[MBMAXTYPE], false);
361 
362  matLogCPlastic = commonDataPtr->matLogCPlastic;
363  }
364 
365  MoFEMErrorCode doWork(int side, EntityType type, EntData &data) {
367 
372 
373  constexpr auto t_kd = FTensor::Kronecker_Delta<int>();
374 
375  // const size_t nb_gauss_pts = matGradPtr->size2();
376  const size_t nb_gauss_pts = DomainEleOp::getGaussPts().size2();
377  auto t_D = getFTensor4DdgFromMat<DIM, DIM, S>(*matDPtr);
378  auto t_logC = getFTensor2SymmetricFromMat<DIM>(commonDataPtr->matLogC);
379  auto t_logCPlastic = getFTensor2SymmetricFromMat<DIM>(*matLogCPlastic);
380  constexpr auto size_symm = (DIM * (DIM + 1)) / 2;
381  commonDataPtr->matHenckyStress.resize(size_symm, nb_gauss_pts, false);
382  auto t_T = getFTensor2SymmetricFromMat<DIM>(commonDataPtr->matHenckyStress);
383 
384  for (size_t gg = 0; gg != nb_gauss_pts; ++gg) {
385  t_T(i, j) = t_D(i, j, k, l) * (t_logC(k, l) - t_logCPlastic(k, l));
386  t_T(i, j) /= scaleStress;
387  ++t_logC;
388  ++t_T;
389  ++t_D;
390  ++t_logCPlastic;
391  }
392 
394  }
395 
396 private:
397  boost::shared_ptr<CommonData> commonDataPtr;
398  boost::shared_ptr<MatrixDouble> matDPtr;
399  boost::shared_ptr<MatrixDouble> matLogCPlastic;
400  const double scaleStress;
401 };
402 
403 template <int DIM, typename DomainEleOp, int S>
405  : public DomainEleOp {
406 
408  boost::shared_ptr<CommonData> common_data)
410  commonDataPtr(common_data) {
411  std::fill(&DomainEleOp::doEntities[MBEDGE],
412  &DomainEleOp::doEntities[MBMAXTYPE], false);
413  }
414 
415  MoFEMErrorCode doWork(int side, EntityType type, EntData &data) {
417 
422 
423  constexpr auto t_kd = FTensor::Kronecker_Delta<int>();
424 
425  // const size_t nb_gauss_pts = matGradPtr->size2();
426  const size_t nb_gauss_pts = DomainEleOp::getGaussPts().size2();
427  #ifdef HENCKY_SMALL_STRAIN
428  auto t_D = getFTensor4DdgFromMat<DIM, DIM, S>(*commonDataPtr->matDPtr);
429  #endif
430  auto t_logC = getFTensor2SymmetricFromMat<DIM>(commonDataPtr->matLogC);
431  auto t_logC_dC = getFTensor4DdgFromMat<DIM, DIM>(commonDataPtr->matLogCdC);
432  constexpr auto size_symm = (DIM * (DIM + 1)) / 2;
433  commonDataPtr->matFirstPiolaStress.resize(DIM * DIM, nb_gauss_pts, false);
434  commonDataPtr->matSecondPiolaStress.resize(size_symm, nb_gauss_pts, false);
435  auto t_P = getFTensor2FromMat<DIM, DIM>(commonDataPtr->matFirstPiolaStress);
436  auto t_T = getFTensor2SymmetricFromMat<DIM>(commonDataPtr->matHenckyStress);
437  auto t_S =
438  getFTensor2SymmetricFromMat<DIM>(commonDataPtr->matSecondPiolaStress);
439  auto t_grad = getFTensor2FromMat<DIM, DIM>(*(commonDataPtr->matGradPtr));
440 
441  for (size_t gg = 0; gg != nb_gauss_pts; ++gg) {
442 
443 #ifdef HENCKY_SMALL_STRAIN
444  t_P(i, j) = t_D(i, j, k, l) * t_grad(k, l);
445 #else
447  t_F(i, j) = t_grad(i, j) + t_kd(i, j);
448  t_S(k, l) = t_T(i, j) * t_logC_dC(i, j, k, l);
449  t_P(i, l) = t_F(i, k) * t_S(k, l);
450 #endif
451 
452  ++t_grad;
453  ++t_logC;
454  ++t_logC_dC;
455  ++t_P;
456  ++t_T;
457  ++t_S;
458 #ifdef HENCKY_SMALL_STRAIN
459  ++t_D;
460 #endif
461  }
462 
464  }
465 
466 private:
467  boost::shared_ptr<CommonData> commonDataPtr;
468 };
469 
470 template <int DIM, typename DomainEleOp, int S>
472  OpHenckyTangentImpl(const std::string field_name,
473  boost::shared_ptr<CommonData> common_data,
474  boost::shared_ptr<MatrixDouble> mat_D_ptr = nullptr)
476  commonDataPtr(common_data) {
477  std::fill(&DomainEleOp::doEntities[MBEDGE],
478  &DomainEleOp::doEntities[MBMAXTYPE], false);
479  if (mat_D_ptr)
480  matDPtr = mat_D_ptr;
481  else
482  matDPtr = commonDataPtr->matDPtr;
483  }
484 
485  MoFEMErrorCode doWork(int side, EntityType type, EntData &data) {
487 
496 
497  constexpr auto t_kd = FTensor::Kronecker_Delta<int>();
498  // const size_t nb_gauss_pts = matGradPtr->size2();
499  const size_t nb_gauss_pts = DomainEleOp::getGaussPts().size2();
500  commonDataPtr->matTangent.resize(DIM * DIM * DIM * DIM, nb_gauss_pts);
501  auto dP_dF =
502  getFTensor4FromMat<DIM, DIM, DIM, DIM, 1>(commonDataPtr->matTangent);
503 
504  auto t_D = getFTensor4DdgFromMat<DIM, DIM, S>(*matDPtr);
505  auto t_eig_val = getFTensor1FromMat<DIM>(commonDataPtr->matEigVal);
506  auto t_eig_vec = getFTensor2FromMat<DIM, DIM>(commonDataPtr->matEigVec);
507  auto t_T = getFTensor2SymmetricFromMat<DIM>(commonDataPtr->matHenckyStress);
508  auto t_S =
509  getFTensor2SymmetricFromMat<DIM>(commonDataPtr->matSecondPiolaStress);
510  auto t_grad = getFTensor2FromMat<DIM, DIM>(*(commonDataPtr->matGradPtr));
511  auto t_logC_dC = getFTensor4DdgFromMat<DIM, DIM>(commonDataPtr->matLogCdC);
512 
513  for (size_t gg = 0; gg != nb_gauss_pts; ++gg) {
514 
515 #ifdef HENCKY_SMALL_STRAIN
516  dP_dF(i, j, k, l) = t_D(i, j, k, l);
517 #else
518 
520  t_F(i, j) = t_grad(i, j) + t_kd(i, j);
521 
525  eig(i) = t_eig_val(i);
526  eigen_vec(i, j) = t_eig_vec(i, j);
527  T(i, j) = t_T(i, j);
528 
529  // rare case when two eigen values are equal
530  auto nb_uniq = get_uniq_nb<DIM>(&eig(0));
531 
533  dC_dF(i, j, k, l) = (t_kd(i, l) * t_F(k, j)) + (t_kd(j, l) * t_F(k, i));
534 
535  auto TL =
536  EigenMatrix::getDiffDiffMat(eig, eigen_vec, f, d_f, dd_f, T, nb_uniq);
537 
538  TL(i, j, k, l) *= 4;
539  FTensor::Ddg<double, DIM, DIM> P_D_P_plus_TL;
540  P_D_P_plus_TL(i, j, k, l) =
541  TL(i, j, k, l) +
542  (t_logC_dC(i, j, o, p) * t_D(o, p, m, n)) * t_logC_dC(m, n, k, l);
543  P_D_P_plus_TL(i, j, k, l) *= 0.5;
544  dP_dF(i, j, m, n) = t_kd(i, m) * (t_kd(k, n) * t_S(k, j));
545  dP_dF(i, j, m, n) +=
546  t_F(i, k) * (P_D_P_plus_TL(k, j, o, p) * dC_dF(o, p, m, n));
547 
548 #endif
549 
550  ++dP_dF;
551 
552  ++t_grad;
553  ++t_eig_val;
554  ++t_eig_vec;
555  ++t_logC_dC;
556  ++t_S;
557  ++t_T;
558  ++t_D;
559  }
560 
562  }
563 
564 private:
565  boost::shared_ptr<CommonData> commonDataPtr;
566  boost::shared_ptr<MatrixDouble> matDPtr;
567 };
568 
569 template <typename DomainEleOp> struct HenckyIntegrators {
570  template <int DIM, IntegrationType I>
572 
573  template <int DIM, IntegrationType I>
575 
576  template <int DIM, IntegrationType I>
578 
579  template <int DIM, IntegrationType I, int S>
582 
583  template <int DIM, IntegrationType I, int S = 0>
586 
587  template <int DIM, IntegrationType I, int S>
588  using OpCalculatePiolaStress =
590 
591  template <int DIM, IntegrationType I, int S>
593 };
594 
595 template <int DIM>
598  boost::ptr_deque<ForcesAndSourcesCore::UserDataOperator> &pip,
599  std::string block_name,
600  boost::shared_ptr<MatrixDouble> mat_D_Ptr, Sev sev,
601  double scale = 1) {
603 
604  struct OpMatBlocks : public DomainEleOp {
605  OpMatBlocks(boost::shared_ptr<MatrixDouble> m, double bulk_modulus_K,
606  double shear_modulus_G, MoFEM::Interface &m_field, Sev sev,
607  std::vector<const CubitMeshSets *> meshset_vec_ptr,
608  double scale)
609  : DomainEleOp(NOSPACE, DomainEleOp::OPSPACE), matDPtr(m),
610  bulkModulusKDefault(bulk_modulus_K),
611  shearModulusGDefault(shear_modulus_G), scaleYoungModulus(scale) {
612  CHK_THROW_MESSAGE(extractBlockData(m_field, meshset_vec_ptr, sev),
613  "Can not get data from block");
614  }
615 
616  MoFEMErrorCode doWork(int side, EntityType type,
619 
620  for (auto &b : blockData) {
621 
622  if (b.blockEnts.find(getFEEntityHandle()) != b.blockEnts.end()) {
623  CHKERR getMatDPtr(matDPtr, b.bulkModulusK * scaleYoungModulus,
624  b.shearModulusG * scaleYoungModulus);
626  }
627  }
628 
629  CHKERR getMatDPtr(matDPtr, bulkModulusKDefault * scaleYoungModulus,
630  shearModulusGDefault * scaleYoungModulus);
632  }
633 
634  private:
635  boost::shared_ptr<MatrixDouble> matDPtr;
636  const double scaleYoungModulus;
637 
638  struct BlockData {
639  double bulkModulusK;
640  double shearModulusG;
641  Range blockEnts;
642  };
643 
644  double bulkModulusKDefault;
645  double shearModulusGDefault;
646  std::vector<BlockData> blockData;
647 
649  extractBlockData(MoFEM::Interface &m_field,
650  std::vector<const CubitMeshSets *> meshset_vec_ptr,
651  Sev sev) {
653 
654  for (auto m : meshset_vec_ptr) {
655  MOFEM_TAG_AND_LOG("WORLD", sev, "MatBlock") << *m;
656  std::vector<double> block_data;
657  CHKERR m->getAttributes(block_data);
658  if (block_data.size() != 2) {
659  SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
660  "Expected that block has two attribute");
661  }
662  auto get_block_ents = [&]() {
663  Range ents;
664  CHKERR
665  m_field.get_moab().get_entities_by_handle(m->meshset, ents, true);
666  return ents;
667  };
668 
669  double young_modulus = block_data[0];
670  double poisson_ratio = block_data[1];
671  double bulk_modulus_K = young_modulus / (3 * (1 - 2 * poisson_ratio));
672  double shear_modulus_G = young_modulus / (2 * (1 + poisson_ratio));
673 
674  MOFEM_TAG_AND_LOG("WORLD", sev, "MatBlock")
675  << "E = " << young_modulus << " nu = " << poisson_ratio;
676 
677  blockData.push_back(
678  {bulk_modulus_K, shear_modulus_G, get_block_ents()});
679  }
680  MOFEM_LOG_CHANNEL("WORLD");
682  }
683 
684  MoFEMErrorCode getMatDPtr(boost::shared_ptr<MatrixDouble> mat_D_ptr,
685  double bulk_modulus_K, double shear_modulus_G) {
687  //! [Calculate elasticity tensor]
688  auto set_material_stiffness = [&]() {
694  double A = (DIM == 2)
695  ? 2 * shear_modulus_G /
696  (bulk_modulus_K + (4. / 3.) * shear_modulus_G)
697  : 1;
698  auto t_D = getFTensor4DdgFromMat<DIM, DIM, 0>(*mat_D_ptr);
699  t_D(i, j, k, l) =
700  2 * shear_modulus_G * ((t_kd(i, k) ^ t_kd(j, l)) / 4.) +
701  A * (bulk_modulus_K - (2. / 3.) * shear_modulus_G) * t_kd(i, j) *
702  t_kd(k, l);
703  };
704  //! [Calculate elasticity tensor]
705  constexpr auto size_symm = (DIM * (DIM + 1)) / 2;
706  mat_D_ptr->resize(size_symm * size_symm, 1);
707  set_material_stiffness();
709  }
710  };
711 
712  double E = 1.0;
713  double nu = 0.3;
714 
715  CHKERR PetscOptionsBegin(PETSC_COMM_WORLD, "", "", "none");
716  CHKERR PetscOptionsScalar("-young_modulus", "Young modulus", "", E, &E,
717  PETSC_NULL);
718  CHKERR PetscOptionsScalar("-poisson_ratio", "poisson ratio", "", nu, &nu,
719  PETSC_NULL);
720  ierr = PetscOptionsEnd();
721 
722  double bulk_modulus_K = E / (3 * (1 - 2 * nu));
723  double shear_modulus_G = E / (2 * (1 + nu));
724  pip.push_back(new OpMatBlocks(
725  mat_D_Ptr, bulk_modulus_K, shear_modulus_G, m_field, sev,
726 
727  // Get blockset using regular expression
728  m_field.getInterface<MeshsetsManager>()->getCubitMeshsetPtr(std::regex(
729 
730  (boost::format("%s(.*)") % block_name).str()
731 
732  )),
733  scale
734 
735  ));
736 
738 }
739 
740 template <int DIM, IntegrationType I, typename DomainEleOp>
742  MoFEM::Interface &m_field,
743  boost::ptr_deque<ForcesAndSourcesCore::UserDataOperator> &pip,
744  std::string field_name, std::string block_name, Sev sev, double scale = 1) {
745 
746  auto common_ptr = boost::make_shared<HenckyOps::CommonData>();
747  common_ptr->matDPtr = boost::make_shared<MatrixDouble>();
748  common_ptr->matGradPtr = boost::make_shared<MatrixDouble>();
749 
750  CHK_THROW_MESSAGE(addMatBlockOps<DIM>(m_field, pip, block_name,
751  common_ptr->matDPtr, sev, scale),
752  "addMatBlockOps");
753 
755 
757  field_name, common_ptr->matGradPtr));
758  pip.push_back(new typename H::template OpCalculateEigenVals<DIM, I>(
759  field_name, common_ptr));
760  pip.push_back(
761  new typename H::template OpCalculateLogC<DIM, I>(field_name, common_ptr));
762  pip.push_back(new typename H::template OpCalculateLogC_dC<DIM, I>(
763  field_name, common_ptr));
764  // Assumes constant D matrix per entity
765  pip.push_back(new typename H::template OpCalculateHenckyStress<DIM, I, 0>(
766  field_name, common_ptr));
767  pip.push_back(new typename H::template OpCalculatePiolaStress<DIM, I, 0>(
768  field_name, common_ptr));
769 
770  return common_ptr;
771 }
772 
773 template <int DIM, AssemblyType A, IntegrationType I, typename DomainEleOp>
775  MoFEM::Interface &m_field,
776  boost::ptr_deque<ForcesAndSourcesCore::UserDataOperator> &pip,
777  std::string field_name, boost::shared_ptr<HenckyOps::CommonData> common_ptr,
778  Sev sev) {
780 
781  using B = typename FormsIntegrators<DomainEleOp>::template Assembly<
782  A>::template LinearForm<I>;
783  using OpInternalForcePiola =
784  typename B::template OpGradTimesTensor<1, DIM, DIM>;
785  pip.push_back(
786  new OpInternalForcePiola("U", common_ptr->getMatFirstPiolaStress()));
787 
789 }
790 
791 template <int DIM, AssemblyType A, IntegrationType I, typename DomainEleOp>
793  MoFEM::Interface &m_field,
794  boost::ptr_deque<ForcesAndSourcesCore::UserDataOperator> &pip,
795  std::string field_name, std::string block_name, Sev sev, double scale = 1) {
797 
798  auto common_ptr = commonDataFactory<DIM, I, DomainEleOp>(
799  m_field, pip, field_name, block_name, sev, scale);
800  CHKERR opFactoryDomainRhs<DIM, A, I, DomainEleOp>(m_field, pip, field_name,
801  common_ptr, sev);
802 
804 }
805 
806 template <int DIM, AssemblyType A, IntegrationType I, typename DomainEleOp>
808  MoFEM::Interface &m_field,
809  boost::ptr_deque<ForcesAndSourcesCore::UserDataOperator> &pip,
810  std::string field_name, boost::shared_ptr<HenckyOps::CommonData> common_ptr,
811  Sev sev) {
813 
814  using B = typename FormsIntegrators<DomainEleOp>::template Assembly<
815  A>::template BiLinearForm<I>;
816  using OpKPiola = typename B::template OpGradTensorGrad<1, DIM, DIM, 1>;
817 
819  // Assumes constant D matrix per entity
820  pip.push_back(
821  new typename H::template OpHenckyTangent<DIM, I, 0>(field_name, common_ptr));
822  pip.push_back(
823  new OpKPiola(field_name, field_name, common_ptr->getMatTangent()));
824 
826 }
827 
828 template <int DIM, AssemblyType A, IntegrationType I, typename DomainEleOp>
830  MoFEM::Interface &m_field,
831  boost::ptr_deque<ForcesAndSourcesCore::UserDataOperator> &pip,
832  std::string field_name, std::string block_name, Sev sev, double scale = 1) {
834 
835  auto common_ptr = commonDataFactory<DIM, I, DomainEleOp>(
836  m_field, pip, field_name, block_name, sev, scale);
837  CHKERR opFactoryDomainLhs<DIM, A, I, DomainEleOp>(m_field, pip, field_name,
838  common_ptr, sev);
839 
841 }
842 } // namespace HenckyOps
843 
844 #endif // __HENCKY_OPS_HPP__
NOSPACE
@ NOSPACE
Definition: definitions.h:83
EigenMatrix::getMat
FTensor::Tensor2_symmetric< double, 3 > getMat(Val< double, 3 > &t_val, Vec< double, 3 > &t_vec, Fun< double > f)
Get the Mat object.
Definition: MatrixFunction.cpp:53
MoFEMFunctionReturnHot
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:460
MoFEM::UnknownInterface::getInterface
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface reference to pointer of interface.
Definition: UnknownInterface.hpp:93
MoFEM::EntitiesFieldData::EntData
Data on single entity (This is passed as argument to DataOperator::doWork)
Definition: EntitiesFieldData.hpp:128
HenckyOps::CommonData::matLogCPlastic
boost::shared_ptr< MatrixDouble > matLogCPlastic
Definition: HenckyOps.hpp:83
HenckyOps::OpCalculatePiolaStressImpl< DIM, GAUSS, DomainEleOp, S >::doWork
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
Definition: HenckyOps.hpp:415
HenckyOps::CommonData::getMatFirstPiolaStress
auto getMatFirstPiolaStress()
Definition: HenckyOps.hpp:94
FTensor::Tensor1
Definition: Tensor1_value.hpp:8
MOFEM_LOG_CHANNEL
#define MOFEM_LOG_CHANNEL(channel)
Set and reset channel.
Definition: LogManager.hpp:284
young_modulus
double young_modulus
Young modulus.
Definition: plastic.cpp:121
HenckyOps::OpCalculateHenckyStressImpl
Definition: HenckyOps.hpp:123
CHK_THROW_MESSAGE
#define CHK_THROW_MESSAGE(err, msg)
Check and throw MoFEM exception.
Definition: definitions.h:609
HenckyOps::OpCalculatePiolaStressImpl< DIM, GAUSS, DomainEleOp, S >::commonDataPtr
boost::shared_ptr< CommonData > commonDataPtr
Definition: HenckyOps.hpp:467
MoFEM::Exceptions::MoFEMErrorCode
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
Definition: Exceptions.hpp:56
E
HenckyOps::isEq::absMax
static double absMax
Definition: HenckyOps.hpp:23
HenckyOps::CommonData::matEigVec
MatrixDouble matEigVec
Definition: HenckyOps.hpp:86
MoFEM::Types::MatrixDouble
UBlasMatrix< double > MatrixDouble
Definition: Types.hpp:77
HenckyOps::OpCalculateLogC_dCImpl< DIM, GAUSS, DomainEleOp >::OpCalculateLogC_dCImpl
OpCalculateLogC_dCImpl(const std::string field_name, boost::shared_ptr< CommonData > common_data)
Definition: HenckyOps.hpp:256
HenckyOps::d_f
auto d_f
Definition: HenckyOps.hpp:16
HenckyOps::CommonData::getMatLogC
auto getMatLogC()
Definition: HenckyOps.hpp:104
HenckyOps::opFactoryDomainLhs
MoFEMErrorCode opFactoryDomainLhs(MoFEM::Interface &m_field, boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > &pip, std::string field_name, boost::shared_ptr< HenckyOps::CommonData > common_ptr, Sev sev)
Definition: HenckyOps.hpp:807
FTensor::Kronecker_Delta
Kronecker Delta class.
Definition: Kronecker_Delta.hpp:15
OpKPiola
FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpGradTensorGrad< 1, SPACE_DIM, SPACE_DIM, 1 > OpKPiola
[Only used for dynamics]
Definition: seepage.cpp:64
HenckyOps::OpCalculateLogCImpl< DIM, GAUSS, DomainEleOp >::OpCalculateLogCImpl
OpCalculateLogCImpl(const std::string field_name, boost::shared_ptr< CommonData > common_data)
Definition: HenckyOps.hpp:207
A
constexpr AssemblyType A
Definition: operators_tests.cpp:30
bulk_modulus_K
double bulk_modulus_K
Definition: dynamic_first_order_con_law.cpp:96
HenckyOps::OpCalculateEigenValsImpl< DIM, GAUSS, DomainEleOp >::OpCalculateEigenValsImpl
OpCalculateEigenValsImpl(const std::string field_name, boost::shared_ptr< CommonData > common_data)
Definition: HenckyOps.hpp:137
HenckyOps::CommonData
Definition: HenckyOps.hpp:80
HenckyOps::CommonData::matEigVal
MatrixDouble matEigVal
Definition: HenckyOps.hpp:85
HenckyOps
Definition: HenckyOps.hpp:11
FTensor::Tensor2_symmetric
Definition: Tensor2_symmetric_value.hpp:13
scale
double scale
Definition: plastic.cpp:119
HenckyOps::CommonData::matLogC
MatrixDouble matLogC
Definition: HenckyOps.hpp:87
HenckyOps::OpCalculatePiolaStressImpl< DIM, GAUSS, DomainEleOp, S >
Definition: HenckyOps.hpp:404
FTensor::Tensor2
Definition: Tensor2_value.hpp:16
HenckyOps::OpCalculateHenckyPlasticStressImpl< DIM, GAUSS, DomainEleOp, S >::scaleStress
const double scaleStress
Definition: HenckyOps.hpp:400
MoFEM::DeprecatedCoreInterface
Deprecated interface functions.
Definition: DeprecatedCoreInterface.hpp:16
HenckyOps::OpHenckyTangentImpl< DIM, GAUSS, DomainEleOp, S >::doWork
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
Definition: HenckyOps.hpp:485
HenckyOps::OpCalculateHenckyPlasticStressImpl
Definition: HenckyOps.hpp:126
HenckyOps::OpCalculatePiolaStressImpl
Definition: HenckyOps.hpp:129
HenckyOps::isEq::check
static auto check(const double &a, const double &b)
Definition: HenckyOps.hpp:20
HenckyOps::is_eq
auto is_eq(const double &a, const double &b)
Definition: HenckyOps.hpp:28
HenckyOps::OpCalculateLogC_dCImpl< DIM, GAUSS, DomainEleOp >::commonDataPtr
boost::shared_ptr< CommonData > commonDataPtr
Definition: HenckyOps.hpp:302
MoFEM::Sev
MoFEM::LogManager::SeverityLevel Sev
Definition: CoreTemplates.hpp:17
HenckyOps::OpCalculateLogC_dCImpl
Definition: HenckyOps.hpp:120
HenckyOps::OpHenckyTangentImpl
Definition: HenckyOps.hpp:132
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:548
MoFEM::CoreInterface::get_moab
virtual moab::Interface & get_moab()=0
DomainEleOp
DomainEle::UserDataOperator DomainEleOp
Finire element operator type.
Definition: child_and_parent.cpp:36
OpInternalForcePiola
FormsIntegrators< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpGradTimesTensor< 1, SPACE_DIM, SPACE_DIM > OpInternalForcePiola
Definition: seepage.cpp:66
BlockData
Definition: ElasticityMixedFormulation.hpp:12
a
constexpr double a
Definition: approx_sphere.cpp:30
HenckyOps::OpCalculatePiolaStressImpl< DIM, GAUSS, DomainEleOp, S >::OpCalculatePiolaStressImpl
OpCalculatePiolaStressImpl(const std::string field_name, boost::shared_ptr< CommonData > common_data)
Definition: HenckyOps.hpp:407
HenckyOps::OpHenckyTangentImpl< DIM, GAUSS, DomainEleOp, S >
Definition: HenckyOps.hpp:471
convert.type
type
Definition: convert.py:64
HenckyOps::OpCalculateLogCImpl< DIM, GAUSS, DomainEleOp >::doWork
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
Definition: HenckyOps.hpp:215
HenckyOps::OpCalculateLogCImpl
Definition: HenckyOps.hpp:117
HenckyOps::eps
constexpr double eps
Definition: HenckyOps.hpp:13
poisson_ratio
double poisson_ratio
Poisson ratio.
Definition: plastic.cpp:122
HenckyOps::CommonData::getMatHenckyStress
auto getMatHenckyStress()
Definition: HenckyOps.hpp:99
MoFEM::GAUSS
@ GAUSS
Definition: FormsIntegrators.hpp:136
HenckyOps::CommonData::matFirstPiolaStress
MatrixDouble matFirstPiolaStress
Definition: HenckyOps.hpp:89
HenckyOps::OpCalculateHenckyPlasticStressImpl< DIM, GAUSS, DomainEleOp, S >::matDPtr
boost::shared_ptr< MatrixDouble > matDPtr
Definition: HenckyOps.hpp:398
HenckyOps::CommonData::matSecondPiolaStress
MatrixDouble matSecondPiolaStress
Definition: HenckyOps.hpp:90
HenckyOps::dd_f
auto dd_f
Definition: HenckyOps.hpp:17
FTensor::Tensor4
Definition: Tensor4_value.hpp:18
size_symm
constexpr auto size_symm
Definition: plastic.cpp:42
HenckyOps::OpHenckyTangentImpl< DIM, GAUSS, DomainEleOp, S >::matDPtr
boost::shared_ptr< MatrixDouble > matDPtr
Definition: HenckyOps.hpp:566
HenckyOps::OpCalculateEigenValsImpl< DIM, GAUSS, DomainEleOp >::doWork
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
Definition: HenckyOps.hpp:145
HenckyOps::OpCalculateEigenValsImpl
Definition: HenckyOps.hpp:114
i
FTensor::Index< 'i', SPACE_DIM > i
Definition: hcurl_divergence_operator_2d.cpp:27
t_kd
constexpr auto t_kd
Definition: free_surface.cpp:137
BiLinearForm
HenckyOps::isEq
Definition: HenckyOps.hpp:19
OpGradTimesTensor
FormsIntegrators< DomainEleOp >::Assembly< A >::LinearForm< I >::OpGradTimesTensor< 1, FIELD_DIM, SPACE_DIM > OpGradTimesTensor
Definition: operators_tests.cpp:48
HenckyOps::OpCalculateHenckyStressImpl< DIM, GAUSS, DomainEleOp, S >::commonDataPtr
boost::shared_ptr< CommonData > commonDataPtr
Definition: HenckyOps.hpp:346
EntData
EntitiesFieldData::EntData EntData
Definition: child_and_parent.cpp:37
field_name
constexpr auto field_name
Definition: poisson_2d_homogeneous.cpp:13
FTensor::Index< 'i', DIM >
convert.n
n
Definition: convert.py:82
HenckyOps::CommonData::matLogCdC
MatrixDouble matLogCdC
Definition: HenckyOps.hpp:88
v
const double v
phase velocity of light in medium (cm/ns)
Definition: initial_diffusion.cpp:40
Range
DomainEleOp
HenckyOps::sort_eigen_vals
auto sort_eigen_vals(FTensor::Tensor1< double, DIM > &eig, FTensor::Tensor2< double, DIM, DIM > &eigen_vec)
Definition: HenckyOps.hpp:41
MOFEM_TAG_AND_LOG
#define MOFEM_TAG_AND_LOG(channel, severity, tag)
Tag and log in channel.
Definition: LogManager.hpp:362
HenckyOps::CommonData::matGradPtr
boost::shared_ptr< MatrixDouble > matGradPtr
Definition: HenckyOps.hpp:81
HenckyOps::CommonData::matDPtr
boost::shared_ptr< MatrixDouble > matDPtr
Definition: HenckyOps.hpp:82
shear_modulus_G
double shear_modulus_G
Definition: dynamic_first_order_con_law.cpp:97
HenckyOps::CommonData::getMatTangent
auto getMatTangent()
Definition: HenckyOps.hpp:108
HenckyOps::OpCalculateLogCImpl< DIM, GAUSS, DomainEleOp >::commonDataPtr
boost::shared_ptr< CommonData > commonDataPtr
Definition: HenckyOps.hpp:250
HenckyOps::OpCalculateHenckyPlasticStressImpl< DIM, GAUSS, DomainEleOp, S >::OpCalculateHenckyPlasticStressImpl
OpCalculateHenckyPlasticStressImpl(const std::string field_name, boost::shared_ptr< CommonData > common_data, boost::shared_ptr< MatrixDouble > mat_D_ptr, const double scale=1)
Definition: HenckyOps.hpp:353
HenckyOps::opFactoryDomainRhs
MoFEMErrorCode opFactoryDomainRhs(MoFEM::Interface &m_field, boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > &pip, std::string field_name, boost::shared_ptr< HenckyOps::CommonData > common_ptr, Sev sev)
Definition: HenckyOps.hpp:774
HenckyOps::f
auto f
Definition: HenckyOps.hpp:15
j
FTensor::Index< 'j', 3 > j
Definition: matrix_function.cpp:19
FTensor::Ddg
Definition: Ddg_value.hpp:7
MoFEM::Exceptions::ierr
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Exceptions.hpp:76
EigenMatrix::getDiffDiffMat
FTensor::Ddg< double, 3, 3 > getDiffDiffMat(Val< double, 3 > &t_val, Vec< double, 3 > &t_vec, Fun< double > f, Fun< double > d_f, Fun< double > dd_f, FTensor::Tensor2< double, 3, 3 > &t_S, const int nb)
Definition: MatrixFunction.cpp:78
HenckyOps::OpCalculateEigenValsImpl< DIM, GAUSS, DomainEleOp >::commonDataPtr
boost::shared_ptr< CommonData > commonDataPtr
Definition: HenckyOps.hpp:201
MOFEM_DATA_INCONSISTENCY
@ MOFEM_DATA_INCONSISTENCY
Definition: definitions.h:31
HenckyOps::OpHenckyTangentImpl< DIM, GAUSS, DomainEleOp, S >::commonDataPtr
boost::shared_ptr< CommonData > commonDataPtr
Definition: HenckyOps.hpp:565
HenckyOps::OpCalculateHenckyStressImpl< DIM, GAUSS, DomainEleOp, S >::doWork
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
Definition: HenckyOps.hpp:317
HenckyOps::OpCalculateHenckyPlasticStressImpl< DIM, GAUSS, DomainEleOp, S >::matLogCPlastic
boost::shared_ptr< MatrixDouble > matLogCPlastic
Definition: HenckyOps.hpp:399
HenckyOps::OpHenckyTangentImpl< DIM, GAUSS, DomainEleOp, S >::OpHenckyTangentImpl
OpHenckyTangentImpl(const std::string field_name, boost::shared_ptr< CommonData > common_data, boost::shared_ptr< MatrixDouble > mat_D_ptr=nullptr)
Definition: HenckyOps.hpp:472
HenckyOps::OpCalculateHenckyPlasticStressImpl< DIM, GAUSS, DomainEleOp, S >::commonDataPtr
boost::shared_ptr< CommonData > commonDataPtr
Definition: HenckyOps.hpp:397
HenckyOps::OpCalculateLogC_dCImpl< DIM, GAUSS, DomainEleOp >::doWork
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
Definition: HenckyOps.hpp:264
HenckyOps::commonDataFactory
auto commonDataFactory(MoFEM::Interface &m_field, boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > &pip, std::string field_name, std::string block_name, Sev sev, double scale=1)
Definition: HenckyOps.hpp:741
m
FTensor::Index< 'm', 3 > m
Definition: shallow_wave.cpp:80
FTensor::Kronecker_Delta_symmetric
Kronecker Delta class symmetric.
Definition: Kronecker_Delta.hpp:49
HenckyOps::OpCalculateHenckyPlasticStressImpl< DIM, GAUSS, DomainEleOp, S >::doWork
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
Definition: HenckyOps.hpp:365
HenckyOps::OpCalculateHenckyStressImpl< DIM, GAUSS, DomainEleOp, S >::OpCalculateHenckyStressImpl
OpCalculateHenckyStressImpl(const std::string field_name, boost::shared_ptr< CommonData > common_data)
Definition: HenckyOps.hpp:309
HenckyOps::addMatBlockOps
MoFEMErrorCode addMatBlockOps(MoFEM::Interface &m_field, boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > &pip, std::string block_name, boost::shared_ptr< MatrixDouble > mat_D_Ptr, Sev sev, double scale=1)
Definition: HenckyOps.hpp:597
HenckyOps::CommonData::matTangent
MatrixDouble matTangent
Definition: HenckyOps.hpp:92
k
FTensor::Index< 'k', 3 > k
Definition: matrix_function.cpp:20
EigenMatrix::getDiffMat
FTensor::Ddg< double, 3, 3 > getDiffMat(Val< double, 3 > &t_val, Vec< double, 3 > &t_vec, Fun< double > f, Fun< double > d_f, const int nb)
Get the Diff Mat object.
Definition: MatrixFunction.cpp:64
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:429
HenckyOps::HenckyIntegrators
Definition: HenckyOps.hpp:569
HenckyOps::CommonData::matHenckyStress
MatrixDouble matHenckyStress
Definition: HenckyOps.hpp:91
HenckyOps::get_uniq_nb
auto get_uniq_nb(double *ptr)
Definition: HenckyOps.hpp:32
H
double H
Hardening.
Definition: plastic.cpp:124
OpCalculateVectorFieldGradient
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:359
l
FTensor::Index< 'l', 3 > l
Definition: matrix_function.cpp:21
MoFEM::computeEigenValuesSymmetric
MoFEMErrorCode computeEigenValuesSymmetric(const MatrixDouble &mat, VectorDouble &eig, MatrixDouble &eigen_vec)
compute eigenvalues of a symmetric matrix using lapack dsyev
Definition: Templates.hpp:1452
F
@ F
Definition: free_surface.cpp:394