v0.16.3
Loading...
Searching...
No Matches
MatUmatImpl.hpp
Go to the documentation of this file.
1/**
2 * @file MatUmatImpl.hpp
3 * @brief Shared UMAT implementation details for built-in and user-defined UMATs.
4 */
5
6#ifndef MAT_UMAT_IMPL_HPP
7#define MAT_UMAT_IMPL_HPP
8
9#include <MoFEM.hpp>
10
11#include "MatOps.hpp"
12#include "MatUmat.hpp"
13#include <cstring>
14#include <sstream>
15#include <UmatInterface.hpp>
16
17namespace MatOps {
18
19using namespace MoFEM;
20
21inline int umatTensorIndex(const int ii, const int jj) { return 3 * ii + jj; }
22
24
25template <int DIM, int MODEL_TYPE>
26struct SmallStrainHandler : public StrainHandler<DIM, MODEL_TYPE> {
27
29
31 EntityHandle entity, int gg) override {
33 if (!matUmatImpl.umatInterfacePtr) {
34 SETERRQ(PETSC_COMM_SELF, MOFEM_OPERATION_UNSUCCESSFUL,
35 "UMAT interface is not initialised");
36 }
37 auto &umat = *matUmatImpl.umatInterfacePtr;
38 umat.props = matUmatImpl.currentMaterialParameters;
39 umat.noel = static_cast<int>(entity);
40 umat.npt = gg + 1;
41 CHKERR umat.setTimeData(matUmatImpl.currentTime,
42 matUmatImpl.currentTimeIncrement);
43 CHKERR matUmatImpl.loadPreviousDeformationGradient(entity, gg);
44 CHKERR matUmatImpl.loadPreviousStress(entity, gg);
45 CHKERR matUmatImpl.loadPreviousStateVariables(entity, gg);
46 CHKERR umat.setDeformationGradient(
47 *matUmatImpl.matOpsDataPtr->getActiveDataPtr("F"),
48 matUmatImpl.useDeformationGradient);
49 CHKERR umat.setIdentityRotationIncrement();
50 CHKERR umat.setStrainIncrementFromDeformationGradient();
51 CHKERR matUmatImpl.loadCoordinates(entity, gg);
52 CHKERR matUmatImpl.loadPredef(entity, gg);
53
54 CHKERR umat.callUmat();
56 }
57
60 boost::shared_ptr<MatOpsData> mat_ops_data_ptr) override {
62 auto &umat = *matUmatImpl.umatInterfacePtr;
63 auto set_stress_from_umat_cauchy = [&]() {
65
66 auto t_P = getFTensor2FromPtr<DIM, DIM>(
67 mat_ops_data_ptr->getDependentDataPtr("P")->data().data());
68
69 MatrixDouble sigma;
70 CHKERR umat.getCauchyStressTensor(sigma);
71
72 for (int i = 0; i != DIM; ++i)
73 for (int Jidx = 0; Jidx != DIM; ++Jidx)
74 t_P(i, Jidx) = sigma(i, Jidx);
75
77 };
78
79 CHKERR set_stress_from_umat_cauchy();
81 }
82
85 boost::shared_ptr<MatOpsData> mat_ops_data_ptr) override {
87 auto &umat = *matUmatImpl.umatInterfacePtr;
88 auto set_tangent_from_umat_cauchy = [&]() {
90
91 auto t_dP = getFTensor4FromPtr<DIM, DIM, DIM, DIM>(
92 mat_ops_data_ptr->getDependentDerivativesDataPtr("P_dF")
93 ->data()
94 .data());
95
96 MatrixDouble d_sigma_d_eps;
97 CHKERR umat.getCauchyTangentTensor(d_sigma_d_eps);
98
99 for (int i = 0; i != DIM; ++i)
100 for (int Jidx = 0; Jidx != DIM; ++Jidx)
101 for (int m = 0; m != DIM; ++m)
102 for (int N = 0; N != DIM; ++N)
103 t_dP(i, Jidx, m, N) = d_sigma_d_eps(umatTensorIndex(i, Jidx),
105
107 };
108
109 CHKERR set_tangent_from_umat_cauchy();
111 }
112};
113
114template <int DIM, int MODEL_TYPE>
115struct HenckyStrainHandler : public StrainHandler<DIM, MODEL_TYPE> {
116
118
120 EntityHandle entity, int gg) override {
122 (void)matUmatImpl;
123 (void)entity;
124 (void)gg;
126 }
127
130 boost::shared_ptr<MatOpsData> mat_ops_data_ptr) override {
132 (void)matUmatImpl;
133 (void)mat_ops_data_ptr;
135 }
136
139 boost::shared_ptr<MatOpsData> mat_ops_data_ptr) override {
141 (void)matUmatImpl;
142 (void)mat_ops_data_ptr;
144 }
145};
146
147template <int DIM, int MODEL_TYPE>
148struct FiniteStrainHandler : public StrainHandler<DIM, MODEL_TYPE> {
149
151
153 EntityHandle entity, int gg) override {
155 (void)matUmatImpl;
156 (void)entity;
157 (void)gg;
159 }
160
163 boost::shared_ptr<MatOpsData> mat_ops_data_ptr) override {
165 (void)matUmatImpl;
166 (void)mat_ops_data_ptr;
168 }
169
172 boost::shared_ptr<MatOpsData> mat_ops_data_ptr) override {
174 (void)matUmatImpl;
175 (void)mat_ops_data_ptr;
177 }
178};
179
180template <int DIM, int MODEL_TYPE>
182 using MatPiolaResponse::MatPiolaResponse;
185 static constexpr auto DFGRD0_TAG_NAME = "UMAT_DFGRD0";
186 static constexpr auto STRESS_TAG_NAME = "UMAT_STRESS";
187 static constexpr char STATEV_TAG_NAME[] = "UMAT_STATEV";
188
189 static std::string getStateVariableTagName(const int index) {
190 std::string tag_name(STATEV_TAG_NAME, sizeof(STATEV_TAG_NAME) - 1);
191 tag_name += '_';
192 tag_name += std::to_string(index);
193 return tag_name;
194 }
195
197 createOp(boost::shared_ptr<PhysicalEquations> physical_ptr, bool eval_stress,
198 bool eval_tangent, bool update) override;
199
200 MoFEMErrorCode getOptions(MoFEM::Interface *m_field_ptr = nullptr) override {
202
203 mField = m_field_ptr;
204
205 MOFEM_LOG_CHANNEL("WORLD");
206
207 char umat_library[PETSC_MAX_PATH_LEN] = {};
208 std::strncpy(umat_library, UmatInterfaceType::DEFAULT_LIBRARY_PATH,
209 sizeof(umat_library) - 1);
210 char umat_name[80] = "UMAT";
211 PetscInt nstatev = 0;
212 PetscInt nprops = 2;
213 const char *list_strain_type[] = {"small", "hencky", "finite"};
214 PetscInt choice_strain = StrainType::SMALL;
215 PetscOptionsBegin(PETSC_COMM_WORLD, "umat_", "", "none");
216 CHKERR PetscOptionsString("-library", "Path to UMAT shared library", "",
217 umat_library, umat_library, sizeof(umat_library),
218 PETSC_NULLPTR);
219 CHKERR PetscOptionsString("-name", "UMAT material name", "", umat_name,
220 umat_name, sizeof(umat_name), PETSC_NULLPTR);
221 CHKERR PetscOptionsInt("-nstatev", "Number of UMAT state variables", "",
222 nstatev, &nstatev, PETSC_NULLPTR);
223 CHKERR PetscOptionsInt("-nprops", "Number of UMAT material properties", "",
224 nprops, &nprops, PETSC_NULLPTR);
225 CHKERR PetscOptionsScalar("-young_modulus", "Default first property", "",
226 youngModulus, &youngModulus, PETSC_NULLPTR);
227 CHKERR PetscOptionsScalar("-poisson_ratio", "Default second property", "",
228 poissonRatio, &poissonRatio, PETSC_NULLPTR);
229 CHKERR PetscOptionsEList(
230 "-strain_type", "Strain type", "", list_strain_type, 3,
231 list_strain_type[choice_strain], &choice_strain, PETSC_NULLPTR);
232 PetscOptionsEnd();
233
234 strainType = static_cast<StrainType>(choice_strain);
235
236 switch (strainType) {
237 case SMALL:
238 strainHandler = std::make_unique<SmallStrainHandler<DIM, MODEL_TYPE>>();
239 break;
240 case HENCKY:
241 strainHandler = std::make_unique<HenckyStrainHandler<DIM, MODEL_TYPE>>();
242 break;
243 case FINITE:
244 strainHandler = std::make_unique<FiniteStrainHandler<DIM, MODEL_TYPE>>();
245 break;
246 default:
247 SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
248 "Unsupported UMAT strain type");
249 }
250
251 if (nprops <= 0) {
252 SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
253 "UMAT requires a positive number of properties");
254 }
255
256 if (nstatev < 0) {
257 SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
258 "UMAT requires a non-negative number of state variables");
259 }
260
261 numberStateVariables = static_cast<int>(nstatev);
262 stateVar.resize(numberStateVariables, 0.0);
264 for (int ii = 0; ii != numberStateVariables; ++ii) {
266 }
267 numberMaterialProperties = static_cast<int>(nprops);
268 materialName = umat_name;
269 libraryPath = umat_library;
270
276
277 MOFEM_TAG_AND_LOG("WORLD", Sev::inform, "Default Umat parameters:")
278 << " umat_library = " << libraryPath << " name = " << materialName
279 << " umat_nstatev = " << numberStateVariables
280 << " umat_nprops = " << numberMaterialProperties;
281
282 std::string block_name = "MAT_UMAT";
283 for (auto &m :
284 m_field_ptr->getInterface<MeshsetsManager>()->getCubitMeshsetPtr(
285 std::regex((boost::format("%s(.*)") % block_name).str()))) {
286 std::vector<double> block_data;
287 CHKERR m->getAttributes(block_data);
288 // A named region can select the material while options provide properties.
289 if (block_data.empty())
290 block_data = defaultMaterialParameters;
291 if ((int)block_data.size() < numberMaterialProperties) {
292 SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
293 "MAT_UMAT block requires at least %d attributes", nprops);
294 }
295
296 auto get_block_ents = [&]() {
297 Range ents;
298 CHK_MOAB_THROW(m_field_ptr->get_moab().get_entities_by_handle(
299 m->meshset, ents, true),
300 "can not get block entities");
301 return ents;
302 };
303
304 A::paramVecByRange.push_back(
305 {get_block_ents(),
306 std::vector<double>(block_data.begin(),
307 block_data.begin() + numberMaterialProperties)});
308
309 std::ostringstream properties_stream;
310 properties_stream << "[";
311 for (int ii = 0; ii != numberMaterialProperties; ++ii) {
312 if (ii)
313 properties_stream << ", ";
314 properties_stream << block_data[ii];
315 }
316 properties_stream << "]";
317
318 MOFEM_TAG_AND_LOG("WORLD", Sev::inform, "MatBlock for Umat")
319 << *m << " properties = " << properties_stream.str();
320 }
321
322 umatInterfacePtr = std::make_unique<UmatInterfaceType>(
324
325 if (m_field_ptr) {
326 CHKERR A::matOpsDataPtr->bindStateTag(*m_field_ptr, DFGRD0_TAG_NAME,
327 DIM * DIM);
328 CHKERR A::matOpsDataPtr->bindStateTag(*m_field_ptr, STRESS_TAG_NAME,
330 if (numberStateVariables > 0) {
331 for (int ii = 0; ii != numberStateVariables; ++ii) {
332 CHKERR A::matOpsDataPtr->bindStateTag(*m_field_ptr,
334 }
335 }
336 CHKERR bindAuxiliaryStateTags(*m_field_ptr);
337 CHKERR A::matOpsDataPtr->setupStateData();
338 }
339
341 }
342
343 MoFEMErrorCode setParams(FEMethod *fe_ptr, int gg) override {
345 (void)gg;
346 currentTimeStep = fe_ptr->ts_step;
347 currentTime = fe_ptr->ts_t;
348 currentTimeIncrement = fe_ptr->ts_dt;
349 const auto ent = fe_ptr->getFEEntityHandle();
351 for (auto &[range, param_vec] : A::paramVecByRange) {
352 if (range.find(ent) != range.end()) {
353 currentMaterialParameters = param_vec;
354 break;
355 }
356 }
358 }
359
362
363 A::matOpsDataPtr->insertCommonData("grad", MatrixDouble());
364 A::matOpsDataPtr->insertCommonData("P", MatrixDouble());
365 A::matOpsDataPtr->insertCommonData("P_dF", MatrixDouble());
366
367 A::matOpsDataPtr->insertActiveData("F", MatrixDouble());
368 A::matOpsDataPtr->insertDependentData("P", MatrixDouble());
369 A::matOpsDataPtr->insertDependentDerivativesData("P_dF", MatrixDouble());
370
371 A::matOpsDataPtr->getActiveDataPtr("F")->resize(DIM, DIM, false);
372 A::matOpsDataPtr->getDependentDataPtr("P")->resize(DIM, DIM, false);
373 A::matOpsDataPtr->getDependentDerivativesDataPtr("P_dF")->resize(
374 DIM * DIM, DIM * DIM, false);
375
377
379 }
380
381 MoFEMErrorCode evaluateVariable(int, EntityHandle entity, int gg) override {
384 CHKERR strainHandler->runUmat(*this, entity, gg);
385 CHKERR strainHandler->convertStress(*this, A::matOpsDataPtr);
387 }
388
389 MoFEMErrorCode evaluateDerivatives(int, EntityHandle entity,
390 int gg) override {
393 CHKERR strainHandler->runUmat(*this, entity, gg);
394 CHKERR strainHandler->convertTangent(*this, A::matOpsDataPtr);
396 }
397
398 MoFEMErrorCode updateState(int, EntityHandle entity, int gg) override {
401 CHKERR strainHandler->runUmat(*this, entity, gg);
403 CHKERR storeCurrentStress(entity, gg);
406 }
407
408protected:
411 if (!umatInterfacePtr) {
412 SETERRQ(PETSC_COMM_SELF, MOFEM_OPERATION_UNSUCCESSFUL,
413 "UMAT options must be set before evaluation");
414 }
415 if (!umatInterfacePtr->umat) {
417 }
419 }
420
426
431
432 // TODO: Populate UMAT COORDS from integration-point coordinates when needed.
433 // The default keeps COORDS zero; coordinate-dependent UMATs should override it.
434 virtual MoFEMErrorCode loadCoordinates(EntityHandle entity, int gg) {
436 (void)entity;
437 (void)gg;
438 for (int dd = 0; dd != 3; ++dd)
439 umatInterfacePtr->coords[dd] = 0.0;
441 }
442
443 virtual MoFEMErrorCode loadPredef(EntityHandle entity, int gg) {
445 (void)entity;
446 (void)gg;
447 if (umatInterfacePtr->predef.empty()) {
448 umatInterfacePtr->predef.push_back(0.0);
449 }
450 if (umatInterfacePtr->dpred.empty()) {
451 umatInterfacePtr->dpred.push_back(0.0);
452 }
453 std::fill(umatInterfacePtr->predef.begin(), umatInterfacePtr->predef.end(),
454 0.0);
455 std::fill(umatInterfacePtr->dpred.begin(), umatInterfacePtr->dpred.end(),
456 0.0);
458 }
459
460 MoFEMErrorCode loadPreviousDeformationGradient(EntityHandle entity, int gg) {
462
463 CHKERR umatInterfacePtr->setIdentityDeformationGradient();
464
465 auto state_ptr =
466 A::matOpsDataPtr->getStateDataPtr(DFGRD0_TAG_NAME, entity, gg);
467 bool has_stored_gradient = false;
468 for (int row = 0; row != DIM; ++row) {
469 for (int col = 0; col != DIM; ++col) {
470 const double value = (*state_ptr)(row * DIM + col, 0);
471 umatInterfacePtr->dfgrd0[row + 3 * col] = value;
472 has_stored_gradient = has_stored_gradient || std::abs(value) > 0;
473 }
474 }
475
476 if (!has_stored_gradient) {
477 CHKERR umatInterfacePtr->setIdentityDeformationGradient();
478 }
479
481 }
482
483 MoFEMErrorCode storeCurrentDeformationGradient(EntityHandle entity, int gg) {
485
486 auto state_ptr =
487 A::matOpsDataPtr->getStateDataPtr(DFGRD0_TAG_NAME, entity, gg);
488 for (int row = 0; row != DIM; ++row) {
489 for (int col = 0; col != DIM; ++col) {
490 (*state_ptr)(row *DIM + col, 0) =
491 umatInterfacePtr->dfgrd1[row + 3 * col];
492 }
493 }
494
496 }
497
498 MoFEMErrorCode loadPreviousStress(EntityHandle entity, int gg) {
500
501 auto state_ptr =
502 A::matOpsDataPtr->getStateDataPtr(STRESS_TAG_NAME, entity, gg);
503 for (int ii = 0; ii != UmatInterfaceType::NTENS; ++ii) {
504 umatInterfacePtr->stress[ii] = (*state_ptr)(ii, 0);
505 }
506
508 }
509
510 MoFEMErrorCode loadPreviousStateVariables(EntityHandle entity, int gg) {
512
513 umatInterfacePtr->statev.assign(numberStateVariables, -1);
516 }
517
518 for (int ii = 0; ii != numberStateVariables; ++ii) {
519 auto state_ptr = A::matOpsDataPtr->getStateDataPtr(
520 vStateVariableTagNames[ii], entity, gg);
521 umatInterfacePtr->statev[ii] = (*state_ptr)(0, 0);
522 }
523
525 }
526
527 MoFEMErrorCode storeCurrentStress(EntityHandle entity, int gg) {
529
530 auto state_ptr =
531 A::matOpsDataPtr->getStateDataPtr(STRESS_TAG_NAME, entity, gg);
532 for (int ii = 0; ii != UmatInterfaceType::NTENS; ++ii) {
533 (*state_ptr)(ii, 0) = umatInterfacePtr->stress[ii];
534 }
535
537 }
538
539 MoFEMErrorCode storeCurrentStateVariables(EntityHandle entity, int gg) {
541
544 }
545
546 for (int ii = 0; ii != numberStateVariables; ++ii) {
547 auto state_ptr = A::matOpsDataPtr->getStateDataPtr(
548 vStateVariableTagNames[ii], entity, gg);
549 (*state_ptr)(0, 0) = umatInterfacePtr->statev[ii];
550 }
551
553 }
554
556 std::unique_ptr<UmatInterfaceType> umatInterfacePtr;
558 std::string materialName = "UMAT";
560 PetscInt currentTimeStep = 0;
561 PetscReal currentTime = 0;
562 PetscReal currentTimeIncrement = 0;
563 double youngModulus = 1.0;
564 double poissonRatio = 0.3;
569 std::vector<double> stateVar = std::vector<double>(numberStateVariables, 0.0);
570 std::vector<std::string> vStateVariableTagNames;
571 friend struct SmallStrainHandler<DIM, MODEL_TYPE>;
572 friend struct HenckyStrainHandler<DIM, MODEL_TYPE>;
573 friend struct FiniteStrainHandler<DIM, MODEL_TYPE>;
574 std::unique_ptr<StrainHandler<DIM, MODEL_TYPE>> strainHandler;
575};
576
577} // namespace MatOps
578
579#endif // MAT_UMAT_IMPL_HPP
std::map< EntityHandle, int > index
#define MOFEM_TAG_AND_LOG(channel, severity, tag)
Tag and log in channel.
std::vector< FieldBitNumber > row
Definition Schur.cpp:2488
std::vector< FieldBitNumber > col
Definition Schur.cpp:2488
UmatInterface.
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define CHK_MOAB_THROW(err, msg)
Check error code of MoAB function and throw MoFEM exception.
@ MOFEM_OPERATION_UNSUCCESSFUL
Definition definitions.h:34
@ MOFEM_DATA_INCONSISTENCY
Definition definitions.h:31
@ MOFEM_NOT_IMPLEMENTED
Definition definitions.h:32
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MOFEM_LOG_CHANNEL(channel)
Set and reset channel.
FTensor::Index< 'i', SPACE_DIM > i
int umatTensorIndex(const int ii, const int jj)
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
UBlasMatrix< double > MatrixDouble
Definition Types.hpp:77
implementation of Data Operators for Forces and Sources
Definition Common.hpp:10
FTensor::Index< 'm', 3 > m
const int N
Definition speed_test.cpp:3
MoFEMErrorCode runUmat(MatUmatImpl< DIM, MODEL_TYPE > &matUmatImpl, EntityHandle entity, int gg) override
MoFEMErrorCode convertTangent(MatUmatImpl< DIM, MODEL_TYPE > &matUmatImpl, boost::shared_ptr< MatOpsData > mat_ops_data_ptr) override
MoFEMErrorCode convertStress(MatUmatImpl< DIM, MODEL_TYPE > &matUmatImpl, boost::shared_ptr< MatOpsData > mat_ops_data_ptr) override
MoFEMErrorCode convertTangent(MatUmatImpl< DIM, MODEL_TYPE > &matUmatImpl, boost::shared_ptr< MatOpsData > mat_ops_data_ptr) override
MoFEMErrorCode runUmat(MatUmatImpl< DIM, MODEL_TYPE > &matUmatImpl, EntityHandle entity, int gg) override
MoFEMErrorCode convertStress(MatUmatImpl< DIM, MODEL_TYPE > &matUmatImpl, boost::shared_ptr< MatOpsData > mat_ops_data_ptr) override
Constitutive response expressed by first Piola stress.
Definition MatOps.hpp:211
static bool useDeformationGradient
Otherwise the displacement gradient is supplied and I is added.
Definition MatOps.hpp:214
MoFEMErrorCode storeCurrentDeformationGradient(EntityHandle entity, int gg)
MoFEMErrorCode loadPreviousStress(EntityHandle entity, int gg)
MoFEMErrorCode storeCurrentStress(EntityHandle entity, int gg)
static constexpr auto STRESS_TAG_NAME
static std::string getStateVariableTagName(const int index)
MoFEMErrorCode getOptions(MoFEM::Interface *m_field_ptr=nullptr) override
virtual MoFEMErrorCode recordAuxiliaryMatOpsData()
virtual MoFEMErrorCode loadPredef(EntityHandle entity, int gg)
ForcesAndSourcesCore::UserDataOperator * createOp(boost::shared_ptr< PhysicalEquations > physical_ptr, bool eval_stress, bool eval_tangent, bool update) override
Definition MatUmat.cpp:21
std::vector< double > defaultMaterialParameters
MoFEMErrorCode recordTape() override
std::vector< double > currentMaterialParameters
std::unique_ptr< UmatInterfaceType > umatInterfacePtr
MoFEMErrorCode storeCurrentStateVariables(EntityHandle entity, int gg)
MoFEMErrorCode setParams(FEMethod *fe_ptr, int gg) override
std::vector< std::string > vStateVariableTagNames
std::string materialName
MoFEMErrorCode evaluateVariable(int, EntityHandle entity, int gg) override
static constexpr auto DFGRD0_TAG_NAME
virtual MoFEMErrorCode loadCoordinates(EntityHandle entity, int gg)
MoFEMErrorCode initialiseUmatOnDemand()
MoFEMErrorCode updateState(int, EntityHandle entity, int gg) override
std::string libraryPath
static constexpr char STATEV_TAG_NAME[]
std::unique_ptr< StrainHandler< DIM, MODEL_TYPE > > strainHandler
virtual MoFEMErrorCode bindAuxiliaryStateTags(MoFEM::Interface &m_field)
MoFEMErrorCode loadPreviousDeformationGradient(EntityHandle entity, int gg)
MoFEM::Interface * mField
std::vector< double > stateVar
MoFEMErrorCode loadPreviousStateVariables(EntityHandle entity, int gg)
MoFEMErrorCode evaluateDerivatives(int, EntityHandle entity, int gg) override
PetscReal currentTimeIncrement
std::vector< std::pair< Range, std::vector< double > > > paramVecByRange
Definition MatOps.hpp:199
boost::shared_ptr< MatOpsData > matOpsDataPtr
Definition MatOps.hpp:201
MoFEMErrorCode runUmat(MatUmatImpl< DIM, MODEL_TYPE > &matUmatImpl, EntityHandle entity, int gg) override
MoFEMErrorCode convertTangent(MatUmatImpl< DIM, MODEL_TYPE > &matUmatImpl, boost::shared_ptr< MatOpsData > mat_ops_data_ptr) override
MoFEMErrorCode convertStress(MatUmatImpl< DIM, MODEL_TYPE > &matUmatImpl, boost::shared_ptr< MatOpsData > mat_ops_data_ptr) override
Deprecated interface functions.
Structure for user loop methods on finite elements.
EntityHandle getFEEntityHandle() const
Get the entity handle of the current finite element.
Interface for managing meshsets containing materials and boundary conditions.
PetscReal ts_t
Current time value.
PetscReal ts_dt
Current time step size.
PetscInt ts_step
Current time step number.
static constexpr int NTENS
static constexpr const char * DEFAULT_LIBRARY_PATH
subroutine umat(stress, statev, ddsdde, sse, spd, scd, rpl, ddsddt, drplde, drpldt, stran, dstran, time, dtime, temp, dtemp, predef, dpred, cmname, ndi, nshr, ntens, nstatv, props, nprops, coords, drot, pnewdt, celent, dfgrd0, dfgrd1, noel, npt, layer, kspt, kstep, kinc)