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