v0.15.5
Loading...
Searching...
No Matches
EshelbianCore.hpp
Go to the documentation of this file.
1/**
2 * @file EshelbianCore.hpp
3 * @author your name (you@domain.com)
4 * @brief
5 * @version 0.1
6 * @date 2024-12-31
7 *
8 * @copyright Copyright (c) 2024
9 *
10 */
11
13
21
23
24 static inline enum SolverType solverType = TimeSolver;
26 static inline enum SymmetrySelector symmetrySelector = NOT_SYMMETRIC;
27 static inline enum RotSelector rotSelector = LARGE_ROT;
28 static inline enum RotSelector gradApproximator = LARGE_ROT;
29 static inline enum StretchSelector stretchSelector = LOG;
30 static inline PetscBool noStretch = PETSC_FALSE; //< no stretch field
31 static inline PetscBool setSingularity = PETSC_FALSE; //< set singularity
32 static inline PetscBool dynamicRelaxation =
33 PETSC_FALSE; //< switch on/off dynamic relaxation
34 static inline PetscBool crackingOn = PETSC_FALSE; //< cracking on
35 static inline double crackingStartTime = 0; //< time when crack starts to grow
36 static inline int nbJIntegralContours =
37 0; //< number of contours for J integral evaluation
38 static inline double dynamicTime =
39 0; //< true time used when dynamic relaxation is used.
40 static inline int dynamicStep =
41 0; //< true time used when dynamic relaxation is used.
42 static inline PetscBool l2UserBaseScale = PETSC_TRUE; //< scale L2 user base
43 static inline int addCrackMeshsetId = 1000; //< add crack meshset id
44 static inline double griffithEnergy = 1; ///< Griffith energy
45 static inline double crackingRtol = 1e-10; ///< Cracking relative tolerance
46 static inline double crackingAtol = 1e-12; ///< Cracking absolute tolerance
47 static inline enum EnergyReleaseSelector energyReleaseSelector =
48 GRIFFITH_SKELETON; //< energy release selector
49 static inline std::string internalStressTagName =
50 ""; //< internal stress tag name
51 static inline int internalStressInterpOrder =
52 1; //< internal stress interpolation order
53 static inline PetscBool internalStressVoigt =
54 PETSC_FALSE; //< internal stress index notation
55 static inline PetscBool interfaceCrack =
56 PETSC_FALSE; //< interface crack tracking
57
58 static double exponentBase;
59 static boost::function<double(const double)> f;
60 static boost::function<double(const double)> d_f;
61 static boost::function<double(const double)> dd_f;
62 static boost::function<double(const double)> inv_f;
63 static boost::function<double(const double)> inv_d_f;
64 static boost::function<double(const double)> inv_dd_f;
65
66 static inline constexpr bool use_quadratic_exp = true;
67 static inline constexpr double v_max = 24;
68 static inline constexpr double v_min = -v_max;
69
70 static double f_log_e_quadratic(const double v) {
71 if (v > v_max) {
72 double e = static_cast<double>(std::exp(v_max));
73 double dv = v - v_max;
74 return 0.5 * e * dv * dv + e * dv + e;
75 } else {
76 return static_cast<double>(std::exp(v));
77 }
78 }
79
80 static double d_f_log_e_quadratic(const double v) {
81 if (v > v_max) {
82 double e = static_cast<double>(std::exp(v_max));
83 double dv = v - v_max;
84 return e * dv + e;
85 } else {
86 return static_cast<double>(std::exp(v));
87 }
88 }
89
90 static double dd_f_log_e_quadratic(const double v) {
91 if (v > v_max) {
92 return static_cast<double>(std::exp(v_max));
93 } else {
94 return static_cast<double>(std::exp(v));
95 }
96 }
97
98 static double f_log_e(const double v) {
99 if constexpr(use_quadratic_exp) {
100 return f_log_e_quadratic(v);
101 } else {
102 if (v > v_max)
103 // y = exp(v_max) * v + exp(v_max) * (1 - v_max);
104 // y/exp(v_max) = v + (1 - v_max);
105 // y/exp(v_max) - (1 - v_max) = v;
106 return std::exp(v_max) * v + std::exp(v_max) * (1 - v_max);
107 else
108 return std::exp(v);
109 }
110 }
111 static double d_f_log_e(const double v) {
112 if constexpr (use_quadratic_exp) {
113 return d_f_log_e_quadratic(v);
114 } else {
115 if (v > v_max)
116 return std::exp(v_max);
117 else
118 return std::exp(v);
119 }
120 }
121 static double dd_f_log_e(const double v) {
122 if constexpr (use_quadratic_exp) {
123 return dd_f_log_e_quadratic(v);
124 } else {
125 if (v > v_max)
126 return 0.;
127 else
128 return std::exp(v);
129 }
130 }
131 static double inv_f_log_e(const double v) {
132 if (v > std::exp(v_min))
133 return std::log(v);
134 else
135 // y = exp(v_min) * v + exp(v_min) * (1 - v_min);
136 // y/exp(v_min) = v + (1 - v_min);
137 // y/exp(v_min) - (1 - v_min) = v;
138 return v / exp(v_min) - (1 - v_min);
139 }
140 static double inv_d_f_log_e(const double v) {
141 if (v > std::exp(v_min))
142 return 1. / v;
143 else
144 return 1. / exp(v_min);
145 }
146 static double inv_dd_f_log_e(const double v) {
147 if (v > std::exp(v_min))
148 return -1. / (v * v);
149 else
150 return 0.;
151 }
152
153 static double f_log(const double v) {
154 return pow(EshelbianCore::exponentBase, v);
155 }
156 static double d_f_log(const double v) {
157 return pow(exponentBase, v) * log(EshelbianCore::exponentBase);
158 }
159 static double dd_f_log(const double v) {
160 return pow(EshelbianCore::exponentBase, v) *
162 }
163
164 static double inv_f_log(const double v) {
165 return log(v) / log(EshelbianCore::exponentBase);
166 }
167 static double inv_d_f_log(const double v) {
168 return (1. / v) / log(EshelbianCore::exponentBase);
169 }
170 static double inv_dd_f_log(const double v) {
171 return -(1. / (v * v)) / log(EshelbianCore::exponentBase);
172 }
173
174 static double f_linear(const double v) { return v + 1; }
175 static double d_f_linear(const double v) { return 1; }
176 static double dd_f_linear(const double v) { return 0; }
177
178 static double inv_f_linear(const double v) { return v - 1; }
179 static double inv_d_f_linear(const double v) { return 0; }
180 static double inv_dd_f_linear(const double v) { return 0; }
181
182 /**
183 * \brief Getting interface of core database
184 * @param uuid unique ID of interface
185 * @param iface returned pointer to interface
186 * @return error code
187 */
188 MoFEMErrorCode query_interface(boost::typeindex::type_index type_index,
189 UnknownInterface **iface) const;
190
192
193 boost::shared_ptr<DataAtIntegrationPts> dataAtPts;
194 boost::shared_ptr<PhysicalEquations> physicalEquations;
195 boost::shared_ptr<AnalyticalExprPython> AnalyticalExprPythonPtr;
196
197 boost::shared_ptr<VolumeElementForcesAndSourcesCore> elasticFeRhs;
198 boost::shared_ptr<VolumeElementForcesAndSourcesCore> elasticFeLhs;
199 boost::shared_ptr<FaceElementForcesAndSourcesCore> elasticBcLhs;
200 boost::shared_ptr<FaceElementForcesAndSourcesCore> elasticBcRhs;
201 boost::shared_ptr<ForcesAndSourcesCore>
202 contactTreeRhs; ///< Make a contact tree
203
204 SmartPetscObj<DM> dM; ///< Coupled problem all fields
205 SmartPetscObj<DM> dmElastic; ///< Elastic problem
206 // SmartPetscObj<DM> dmMaterial; ///< Material problem
207 SmartPetscObj<DM> dmPrjSpatial; ///< Projection spatial displacement
208
209 const std::string piolaStress = "P";
210 // const std::string eshelbyStress = "S";
211 const std::string spatialL2Disp = "wL2";
212 // const std::string materialL2Disp = "WL2";
213 const std::string spatialH1Disp = "wH1";
214 const std::string materialH1Positions = "XH1";
215 const std::string hybridSpatialDisp = "hybridSpatialDisp";
216 // const std::string hybridMaterialDisp = "hybridMaterialDisp";
217 const std::string contactDisp = "contactDisp";
218 const std::string stretchTensor = "u";
219 const std::string rotAxis = "omega";
220 const std::string bubbleField = "bubble";
221
222 const std::string elementVolumeName = "EP";
223 const std::string naturalBcElement = "NATURAL_BC";
224 const std::string skinElement = "SKIN";
225 const std::string skeletonElement = "SKELETON";
226 const std::string contactElement = "CONTACT";
227
229 virtual ~EshelbianCore();
230
231 int spaceOrder = 2;
232 int spaceH1Order = -1;
234 double alphaU = 0;
235 double alphaW = 0;
236 double alphaOmega = 0;
237 double alphaRho = 0;
238 double alphaTau = 0;
239
240 int contactRefinementLevels = 1; //< refinement levels for contact integration
241 int frontLayers = 3; //< front layers with material element
242
243 MoFEMErrorCode getOptions();
244
245 boost::shared_ptr<BcDispVec> bcSpatialDispVecPtr;
246 boost::shared_ptr<BcRotVec> bcSpatialRotationVecPtr;
247 boost::shared_ptr<TractionBcVec> bcSpatialTractionVecPtr;
248 boost::shared_ptr<TractionFreeBc> bcSpatialFreeTractionVecPtr;
249 boost::shared_ptr<NormalDisplacementBcVec> bcSpatialNormalDisplacementVecPtr;
250 boost::shared_ptr<AnalyticalDisplacementBcVec>
252 boost::shared_ptr<AnalyticalTractionBcVec> bcSpatialAnalyticalTractionVecPtr;
253 boost::shared_ptr<PressureBcVec> bcSpatialPressureVecPtr;
254 boost::shared_ptr<ExternalStrainVec> externalStrainVecPtr;
255
256 std::map<std::string, boost::shared_ptr<ScalingMethod>> timeScaleMap;
257
258 template <typename BC>
259 MoFEMErrorCode getBc(boost::shared_ptr<BC> &bc_vec_ptr,
260 const std::string block_name, const int nb_attributes) {
262 for (auto it :
263 mField.getInterface<MeshsetsManager>()->getCubitMeshsetPtr(std::regex(
264
265 (boost::format("%s(.*)") % block_name).str()
266
267 ))
268
269 ) {
270 std::vector<double> block_attributes;
271 CHKERR it->getAttributes(block_attributes);
272 if (block_attributes.size() < nb_attributes) {
273 SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
274 "In block %s expected %d attributes, but given %ld",
275 it->getName().c_str(), nb_attributes, block_attributes.size());
276 }
277 Range faces;
278 CHKERR it->getMeshsetIdEntitiesByDimension(mField.get_moab(), 2, faces,
279 true);
280 bc_vec_ptr->emplace_back(it->getName(), block_attributes, faces);
281 }
283 }
284
285 MoFEMErrorCode getSpatialDispBc();
286
287 inline MoFEMErrorCode getSpatialRotationBc() {
289 bcSpatialRotationVecPtr = boost::make_shared<BcRotVec>();
290 CHKERR getBc(bcSpatialRotationVecPtr, "SPATIAL_ROTATION_BC", 4);
291 CHKERR getBc(bcSpatialRotationVecPtr, "SPATIAL_ROTATION_AXIS_BC", 7);
292
293 auto ts_rotation =
294 boost::make_shared<DynamicRelaxationTimeScale>("rotation_history.txt");
295 for (auto &bc : *bcSpatialRotationVecPtr) {
296 timeScaleMap[bc.blockName] =
297 GetBlockScalingMethod<DynamicRelaxationTimeScale>::get(
298 ts_rotation, "rotation_history", ".txt", bc.blockName);
299 }
300
302 }
303
304 MoFEMErrorCode getSpatialTractionBc();
305
306 /**
307 * @brief Remove all, but entities where kinematic constrains are applied.
308 *
309 * @param meshset
310 * @param bc_ptr
311 * @param disp_block_set_name
312 * @param rot_block_set_name
313 * @param contact_set_name
314 * @return MoFEMErrorCode
315 */
316 MoFEMErrorCode getTractionFreeBc(const EntityHandle meshset,
317 boost::shared_ptr<TractionFreeBc> &bc_ptr,
318 const std::string contact_set_name);
319
320 inline MoFEMErrorCode
323 boost::shared_ptr<TractionFreeBc>(new TractionFreeBc());
324 return getTractionFreeBc(meshset, bcSpatialFreeTractionVecPtr, "CONTACT");
325 }
326
327 MoFEMErrorCode getExternalStrain();
328
329 MoFEMErrorCode createExchangeVectors(Sev sev);
330
331 MoFEMErrorCode addFields(const EntityHandle meshset = 0);
332 MoFEMErrorCode projectGeometry(const EntityHandle meshset = 0);
333 MoFEMErrorCode projectInternalStress(const EntityHandle meshset = 0);
334
335 MoFEMErrorCode addVolumeFiniteElement(const EntityHandle meshset = 0);
336 MoFEMErrorCode addBoundaryFiniteElement(const EntityHandle meshset = 0);
337 MoFEMErrorCode addDMs(const BitRefLevel bit = BitRefLevel().set(0),
338 const EntityHandle meshset = 0);
339
340 MoFEMErrorCode addMaterial_HMHHStVenantKirchhoff(const int tape,
341 const double lambda,
342 const double mu,
343 const double sigma_y);
344
345 MoFEMErrorCode addMaterial_HMHMooneyRivlin(const int tape, const double alpha,
346 const double beta,
347 const double lambda,
348 const double sigma_y);
349
350 MoFEMErrorCode addMaterial_HMHNeohookean(const int tape, const double c10,
351 const double K);
352
353 MoFEMErrorCode addMaterial_Hencky(double E, double nu);
354
355 MoFEMErrorCode setBaseVolumeElementOps(
356 const int tag, const bool do_rhs, const bool do_lhs,
357 const bool calc_rates,
358 boost::shared_ptr<VolumeElementForcesAndSourcesCore> fe);
359
360 MoFEMErrorCode setVolumeElementOps(
361 const int tag, const bool add_elastic, const bool add_material,
362 boost::shared_ptr<VolumeElementForcesAndSourcesCore> &fe_rhs,
363 boost::shared_ptr<VolumeElementForcesAndSourcesCore> &fe_lhs);
364
365 MoFEMErrorCode
366 setFaceElementOps(const bool add_elastic, const bool add_material,
367 boost::shared_ptr<FaceElementForcesAndSourcesCore> &fe_rhs,
368 boost::shared_ptr<FaceElementForcesAndSourcesCore> &fe_lhs);
369
370 MoFEMErrorCode setFaceInterfaceOps(
371 const bool add_elastic, const bool add_material,
372 boost::shared_ptr<FaceElementForcesAndSourcesCore> &fe_rhs,
373 boost::shared_ptr<FaceElementForcesAndSourcesCore> &fe_lhs);
374
375 MoFEMErrorCode setContactElementRhsOps(
376
377 boost::shared_ptr<ForcesAndSourcesCore> &fe_contact_tree
378
379 );
380
381 MoFEMErrorCode setElasticElementOps(const int tag);
382 MoFEMErrorCode setElasticElementToTs(DM dm);
383
384 /** \brief Add debug to model
385 *
386 * That prints information every SNES step
387 */
388 MoFEMErrorCode addDebugModel(TS ts);
389
390 friend struct solve_elastic_set_up;
391 MoFEMErrorCode solveElastic(TS ts, Vec x);
392
393 /**
394 * @brief Solve problem using dynamic relaxation method
395 *
396 * @param ts solver time stepper
397 * @param x solution vector
398 * @param start_step starting step number
399 * @param start_time starting time
400 * @return MoFEMErrorCode
401 */
402 MoFEMErrorCode solveDynamicRelaxation(TS ts, Vec x, int start_step,
403 double start_time);
404
405 /**
406 * @brief Solve cohesive crack growth problem
407 *
408 * @param ts
409 * @param x
410 * @return * MoFEMErrorCode
411 */
412 MoFEMErrorCode solveCohesiveCrackGrowth(TS ts, Vec x, int start_step,
413 double start_time);
414
415 MoFEMErrorCode setBlockTagsOnSkin();
416
417 MoFEMErrorCode postProcessResults(const int tag, const std::string file,
418 Vec f_residual = PETSC_NULLPTR,
419 Vec var_vec = PETSC_NULLPTR,
420 std::vector<Tag> tags_to_transfer = {});
421 MoFEMErrorCode
422 postProcessSkeletonResults(const int tag, const std::string file,
423 Vec f_residual = PETSC_NULLPTR,
424 std::vector<Tag> tags_to_transfer = {});
425
427 boost::shared_ptr<double> area_ptr); // calculate crack area
428
430
431 struct SetUpSchur {
432 static boost::shared_ptr<SetUpSchur> createSetUpSchur(
433
434 MoFEM::Interface &m_field, EshelbianCore *ep_core_ptr
435
436 );
437 virtual MoFEMErrorCode setUp(TS) = 0;
438
439 protected:
440 SetUpSchur() = default;
441 };
442
444
445 using TimeScale::TimeScale;
446
447 double getScale(const double time) override {
451 return TimeScale::getScale(EshelbianCore::dynamicTime);
452 default:
453 return TimeScale::getScale(time);
454 }
455 }
456 };
457
458 MoFEMErrorCode calculateFaceMaterialForce(const int tag, TS ts);
459 MoFEMErrorCode calculateOrientation(const int tag, bool set_orientation);
460 MoFEMErrorCode setNewFrontCoordinates();
461 MoFEMErrorCode addCrackSurfaces(const bool debug = false);
462 MoFEMErrorCode saveOrgCoords();
463 MoFEMErrorCode createCrackSurfaceMeshset();
464
465 boost::shared_ptr<Range> contactFaces;
466 boost::shared_ptr<Range> crackFaces;
467 boost::shared_ptr<Range> frontEdges;
468 boost::shared_ptr<Range> frontAdjEdges;
469 boost::shared_ptr<Range> frontVertices;
470 boost::shared_ptr<Range> skeletonFaces;
471 boost::shared_ptr<Range> maxMovedFaces;
472 boost::shared_ptr<Range> interfaceFaces;
473
474 boost::shared_ptr<ParentFiniteElementAdjacencyFunctionSkeleton<2>>
476
477 BitRefLevel bitAdjParent = BitRefLevel().set(); ///< bit ref level for parent
478 BitRefLevel bitAdjParentMask =
479 BitRefLevel().set(); ///< bit ref level for parent parent
480 BitRefLevel bitAdjEnt = BitRefLevel().set(); ///< bit ref level for parent
481 BitRefLevel bitAdjEntMask =
482 BitRefLevel().set(); ///< bit ref level for parent parent
483
484 SmartPetscObj<Vec> solTSStep;
485
486 CommInterface::EntitiesPetscVector volumeExchange;
487 CommInterface::EntitiesPetscVector faceExchange;
488 CommInterface::EntitiesPetscVector edgeExchange;
489 CommInterface::EntitiesPetscVector vertexExchange;
490
491 std::vector<Tag>
492 listTagsToTransfer; ///< list of tags to transfer to postprocessor
493
494 Mat S = PETSC_NULLPTR; //< Schur complement matrix
495 AO aoS = PETSC_NULLPTR; //< AO for Schur complement matrix
496 SmartPetscObj<IS> crackHybridIs; //< IS for crack hybrid field
497 std::vector<std::string> a00FieldList; //< list of fields for Schur complement
498 std::vector<boost::shared_ptr<Range>>
499 a00RangeList; //< list of ranges for Schur complement
500
501 int nbCrackFaces = 0; //< number of crack faces
502};
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
@ MOFEM_DATA_INCONSISTENCY
Definition definitions.h:31
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
static const bool debug
auto bit
set bit
static double lambda
const double v
phase velocity of light in medium (cm/ns)
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
double getScale(const double time) override
virtual MoFEMErrorCode setUp(TS)=0
static boost::shared_ptr< SetUpSchur > createSetUpSchur(MoFEM::Interface &m_field, EshelbianCore *ep_core_ptr)
std::vector< boost::shared_ptr< Range > > a00RangeList
MoFEMErrorCode setElasticElementOps(const int tag)
boost::shared_ptr< ExternalStrainVec > externalStrainVecPtr
MoFEMErrorCode addVolumeFiniteElement(const EntityHandle meshset=0)
MoFEMErrorCode addFields(const EntityHandle meshset=0)
static constexpr bool use_quadratic_exp
static enum StretchSelector stretchSelector
boost::shared_ptr< Range > frontAdjEdges
MoFEMErrorCode createCrackSurfaceMeshset()
MoFEMErrorCode addBoundaryFiniteElement(const EntityHandle meshset=0)
const std::string skeletonElement
static double inv_f_linear(const double v)
MoFEMErrorCode getSpatialRotationBc()
boost::shared_ptr< TractionBcVec > bcSpatialTractionVecPtr
boost::shared_ptr< Range > contactFaces
static double dd_f_log_e_quadratic(const double v)
static double dynamicTime
static double dd_f_log(const double v)
BitRefLevel bitAdjEnt
bit ref level for parent
static boost::function< double(const double)> inv_dd_f
MoFEM::Interface & mField
static constexpr double v_max
const std::string spatialL2Disp
static double inv_d_f_log(const double v)
std::map< std::string, boost::shared_ptr< ScalingMethod > > timeScaleMap
MoFEMErrorCode addMaterial_Hencky(double E, double nu)
static enum SolverType solverType
friend struct solve_elastic_set_up
static PetscBool l2UserBaseScale
SmartPetscObj< DM > dM
Coupled problem all fields.
boost::shared_ptr< FaceElementForcesAndSourcesCore > elasticBcRhs
MoFEMErrorCode projectInternalStress(const EntityHandle meshset=0)
static int internalStressInterpOrder
SmartPetscObj< IS > crackHybridIs
MoFEMErrorCode projectGeometry(const EntityHandle meshset=0)
boost::shared_ptr< TractionFreeBc > bcSpatialFreeTractionVecPtr
const std::string materialH1Positions
static int nbJIntegralContours
MoFEMErrorCode setBlockTagsOnSkin()
std::vector< Tag > listTagsToTransfer
list of tags to transfer to postprocessor
boost::shared_ptr< FaceElementForcesAndSourcesCore > elasticBcLhs
static PetscBool crackingOn
MoFEMErrorCode addMaterial_HMHHStVenantKirchhoff(const int tape, const double lambda, const double mu, const double sigma_y)
MoFEMErrorCode addMaterial_HMHMooneyRivlin(const int tape, const double alpha, const double beta, const double lambda, const double sigma_y)
MoFEMErrorCode getTractionFreeBc(const EntityHandle meshset, boost::shared_ptr< TractionFreeBc > &bc_ptr, const std::string contact_set_name)
Remove all, but entities where kinematic constrains are applied.
MoFEMErrorCode setBaseVolumeElementOps(const int tag, const bool do_rhs, const bool do_lhs, const bool calc_rates, boost::shared_ptr< VolumeElementForcesAndSourcesCore > fe)
MoFEMErrorCode calculateFaceMaterialForce(const int tag, TS ts)
static double griffithEnergy
Griffith energy.
MoFEMErrorCode calculateCrackArea(boost::shared_ptr< double > area_ptr)
boost::shared_ptr< VolumeElementForcesAndSourcesCore > elasticFeRhs
static int dynamicStep
const std::string elementVolumeName
static double dd_f_log_e(const double v)
static enum RotSelector rotSelector
MoFEMErrorCode addDebugModel(TS ts)
Add debug to model.
static enum RotSelector gradApproximator
MoFEMErrorCode getBc(boost::shared_ptr< BC > &bc_vec_ptr, const std::string block_name, const int nb_attributes)
CommInterface::EntitiesPetscVector vertexExchange
boost::shared_ptr< BcRotVec > bcSpatialRotationVecPtr
boost::shared_ptr< Range > maxMovedFaces
static PetscBool dynamicRelaxation
const std::string spatialH1Disp
MoFEMErrorCode solveElastic(TS ts, Vec x)
static double d_f_log(const double v)
boost::shared_ptr< NormalDisplacementBcVec > bcSpatialNormalDisplacementVecPtr
static double crackingStartTime
static enum MaterialModel materialModel
MoFEMErrorCode getOptions()
const std::string piolaStress
MoFEMErrorCode setElasticElementToTs(DM dm)
static double inv_d_f_log_e(const double v)
MoFEMErrorCode setFaceInterfaceOps(const bool add_elastic, const bool add_material, boost::shared_ptr< FaceElementForcesAndSourcesCore > &fe_rhs, boost::shared_ptr< FaceElementForcesAndSourcesCore > &fe_lhs)
MoFEMErrorCode gettingNorms()
[Getting norms]
boost::shared_ptr< Range > interfaceFaces
std::vector< std::string > a00FieldList
MoFEMErrorCode setVolumeElementOps(const int tag, const bool add_elastic, const bool add_material, boost::shared_ptr< VolumeElementForcesAndSourcesCore > &fe_rhs, boost::shared_ptr< VolumeElementForcesAndSourcesCore > &fe_lhs)
MoFEMErrorCode query_interface(boost::typeindex::type_index type_index, UnknownInterface **iface) const
Getting interface of core database.
const std::string bubbleField
boost::shared_ptr< AnalyticalDisplacementBcVec > bcSpatialAnalyticalDisplacementVecPtr
MoFEMErrorCode calculateOrientation(const int tag, bool set_orientation)
static double inv_f_log(const double v)
boost::shared_ptr< VolumeElementForcesAndSourcesCore > elasticFeLhs
static PetscBool noStretch
MoFEMErrorCode setNewFrontCoordinates()
boost::shared_ptr< ParentFiniteElementAdjacencyFunctionSkeleton< 2 > > parentAdjSkeletonFunctionDim2
static double exponentBase
static double dd_f_linear(const double v)
MoFEMErrorCode setFaceElementOps(const bool add_elastic, const bool add_material, boost::shared_ptr< FaceElementForcesAndSourcesCore > &fe_rhs, boost::shared_ptr< FaceElementForcesAndSourcesCore > &fe_lhs)
MoFEMErrorCode postProcessSkeletonResults(const int tag, const std::string file, Vec f_residual=PETSC_NULLPTR, std::vector< Tag > tags_to_transfer={})
boost::shared_ptr< AnalyticalExprPython > AnalyticalExprPythonPtr
static double crackingAtol
Cracking absolute tolerance.
boost::shared_ptr< Range > skeletonFaces
static double crackingRtol
Cracking relative tolerance.
boost::shared_ptr< PhysicalEquations > physicalEquations
const std::string rotAxis
static double inv_d_f_linear(const double v)
BitRefLevel bitAdjParentMask
bit ref level for parent parent
MoFEMErrorCode solveDynamicRelaxation(TS ts, Vec x, int start_step, double start_time)
Solve problem using dynamic relaxation method.
static double inv_dd_f_log(const double v)
const std::string contactDisp
static std::string internalStressTagName
static enum SymmetrySelector symmetrySelector
CommInterface::EntitiesPetscVector edgeExchange
SmartPetscObj< DM > dmPrjSpatial
Projection spatial displacement.
static boost::function< double(const double)> f
boost::shared_ptr< BcDispVec > bcSpatialDispVecPtr
boost::shared_ptr< ForcesAndSourcesCore > contactTreeRhs
Make a contact tree.
const std::string skinElement
static PetscBool internalStressVoigt
static double inv_dd_f_linear(const double v)
MoFEMErrorCode getSpatialTractionFreeBc(const EntityHandle meshset=0)
static double inv_dd_f_log_e(const double v)
MoFEMErrorCode getExternalStrain()
MoFEMErrorCode getSpatialTractionBc()
static PetscBool setSingularity
virtual ~EshelbianCore()
static double d_f_log_e(const double v)
boost::shared_ptr< AnalyticalTractionBcVec > bcSpatialAnalyticalTractionVecPtr
static double f_log_e_quadratic(const double v)
MoFEMErrorCode addCrackSurfaces(const bool debug=false)
MoFEMErrorCode addDMs(const BitRefLevel bit=BitRefLevel().set(0), const EntityHandle meshset=0)
MoFEMErrorCode solveCohesiveCrackGrowth(TS ts, Vec x, int start_step, double start_time)
Solve cohesive crack growth problem.
MoFEMErrorCode getSpatialDispBc()
[Getting norms]
BitRefLevel bitAdjParent
bit ref level for parent
MoFEMErrorCode setContactElementRhsOps(boost::shared_ptr< ForcesAndSourcesCore > &fe_contact_tree)
static PetscBool interfaceCrack
MoFEMErrorCode postProcessResults(const int tag, const std::string file, Vec f_residual=PETSC_NULLPTR, Vec var_vec=PETSC_NULLPTR, std::vector< Tag > tags_to_transfer={})
static double d_f_log_e_quadratic(const double v)
CommInterface::EntitiesPetscVector volumeExchange
MoFEMErrorCode saveOrgCoords()
const std::string naturalBcElement
static boost::function< double(const double)> dd_f
static double f_log_e(const double v)
static constexpr double v_min
static int addCrackMeshsetId
static double inv_f_log_e(const double v)
MoFEMErrorCode createExchangeVectors(Sev sev)
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
boost::shared_ptr< Range > crackFaces
static boost::function< double(const double)> d_f
boost::shared_ptr< Range > frontVertices
static enum EnergyReleaseSelector energyReleaseSelector
MoFEMErrorCode addMaterial_HMHNeohookean(const int tape, const double c10, const double K)
static boost::function< double(const double)> inv_d_f
boost::shared_ptr< PressureBcVec > bcSpatialPressureVecPtr
static double d_f_linear(const double v)
const std::string hybridSpatialDisp
SmartPetscObj< Vec > solTSStep
static double f_log(const double v)
CommInterface::EntitiesPetscVector faceExchange
SmartPetscObj< DM > dmElastic
Elastic problem.
boost::shared_ptr< Range > frontEdges
static boost::function< double(const double)> inv_f
const std::string stretchTensor
BitRefLevel bitAdjEntMask
bit ref level for parent parent
static double f_linear(const double v)
const std::string contactElement
virtual moab::Interface & get_moab()=0
Deprecated interface functions.
base class for all interface classes
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface reference to pointer of interface.