25#ifndef _GEMA_PLUGIN_MECHANICALMATERIAL_DPCREEP_H_
26#define _GEMA_PLUGIN_MECHANICALMATERIAL_DPCREEP_H_
29#include <gmpFemPhysics.h>
32#include <gmpMaterialCreep.h>
82 m[
"properties"] = m[
"properties"].value<GmpFemPhysicsCommon::ValueList>()
83 << GmpFemPhysicsCommon::ScalarValue(A1_ID,
"A1",
QObject::tr(
"Structure factor for DCL"),
"1/s",
true)
84 << GmpFemPhysicsCommon::ScalarValue(AN1_ID,
"n1",
QObject::tr(
"Stress power for DCL"),
"",
true)
85 << GmpFemPhysicsCommon::ScalarValue(Q1_ID,
"Q1",
QObject::tr(
"Thermal activation energy for DCL"),
"J/mol",
true)
86 << GmpFemPhysicsCommon::ScalarValue(A2_ID,
"A2",
QObject::tr(
"Structure factor for UMC"),
"1/s",
true)
87 << GmpFemPhysicsCommon::ScalarValue(AN2_ID,
"n2",
QObject::tr(
"Stress power for UMC"),
"",
true)
88 << GmpFemPhysicsCommon::ScalarValue(Q2_ID,
"Q2",
QObject::tr(
"Thermal activation energy for UMC"),
"J/mol",
true)
89 << GmpFemPhysicsCommon::ScalarValue(So_ID,
"So",
QObject::tr(
"Threshold deviatoric stress"),
"kPa",
true)
90 << GmpFemPhysicsCommon::ScalarValue(R_ID,
"R",
QObject::tr(
"Universal gas constant"),
"J/(mol*K)",
true);
99 assert(e); Q_UNUSED(Time);
101 double eCreepRate, A1, Q1, N1, A2, Q2, N2, So, R, TEMP;
104 unsigned pointIndex = mp->_index.
localData();
106 A1 = structureFactorDCL(e, coord, pointIndex);
107 Q1 = thermalActivEnergyDCL(e, coord, pointIndex);
108 N1 = stressPowerDCL(e, coord, pointIndex);
109 A2 = structureFactorUMC(e, coord, pointIndex);
110 Q2 = thermalActivEnergyUMC(e, coord, pointIndex);
111 N2 = stressPowerUMC(e, coord, pointIndex);
112 So = thresholdDevStress(e, coord, pointIndex);
113 R = universalGasConstant(e, coord, pointIndex);
116 if (nodeAttrAc(T_NA_ID)!= NULL)
125 eCreepRate = A1 * exp(-Q1 / (R*TEMP))*pow(MISES / So, N1) + A2 * exp(-Q2 / (R*TEMP))*pow(MISES / So, N2);
133 return propertyAc(A1_ID)->scalarValueAt(e, coord, ip);
139 return propertyAc(Q1_ID)->scalarValueAt(e, coord, ip);
145 return propertyAc(AN1_ID)->scalarValueAt(e, coord, ip);
151 return propertyAc(A2_ID)->scalarValueAt(e, coord, ip);
157 return propertyAc(Q2_ID)->scalarValueAt(e, coord, ip);
163 return propertyAc(AN2_ID)->scalarValueAt(e, coord, ip);
169 return propertyAc(So_ID)->scalarValueAt(e, coord, ip);
175 return propertyAc(R_ID)->scalarValueAt(e, coord, ip);
Definition gmpMaterialCreep.h:36
virtual double fillTemperatureFromNodalAttr(const GmElement *e, const GmVector *coord) const
Return temperature at integration point using the nodal Temperature field.
Definition gmpMaterialCreep.cpp:401
@ NUM_PROPERTY_IDS
The number of property ids above.
Definition gmpMaterialCreep.h:47
virtual const QVariantMap * materialMetaDataMap()
Returns a pointer to the material attribute map, built when the function is called for the first time...
Definition gmpMaterialCreep.cpp:38
virtual double temperatureProperty(const GmElement *e, const GmVector *coord, int ip) const
Returns the Temperature from property table.
Definition gmpMaterialCreep.h:124
Definition gmpMaterialDPCreep.h:37
double stressPowerDCL(const GmElement *e, const GmVector *coord, int ip) const
Returns the stress power for DCL.
Definition gmpMaterialDPCreep.h:143
double stressPowerUMC(const GmElement *e, const GmVector *coord, int ip) const
Returns the stress power for UMC.
Definition gmpMaterialDPCreep.h:161
double structureFactorDCL(const GmElement *e, const GmVector *coord, int ip) const
Returns the structure factor for DCL.
Definition gmpMaterialDPCreep.h:131
double universalGasConstant(const GmElement *e, const GmVector *coord, int ip) const
Returns the Universal gas constant R.
Definition gmpMaterialDPCreep.h:173
static GmpFemPhysicsCommonMaterial * instance(GmSimulationData *simulation, int typeIndex, QString typeName, const GmLogCategory &logger)
A "factory" function used to register the material with the physics material factory.
Definition gmpMaterialDPCreep.h:65
virtual const QVariantMap * materialMetaDataMap()
Returns a pointer to the material attribute map, built when the function is called for the first time...
Definition gmpMaterialDPCreep.h:72
virtual ~GmpMaterialDPCreep()
Virtual destructor.
Definition gmpMaterialDPCreep.h:62
double thermalActivEnergyDCL(const GmElement *e, const GmVector *coord, int ip) const
Returns the Thermal activation energy for DCL.
Definition gmpMaterialDPCreep.h:137
ElementPropertyIds
IDs for material element properties.
Definition gmpMaterialDPCreep.h:41
@ NUM_PROPERTY_IDS
The number of property ids above.
Definition gmpMaterialDPCreep.h:52
@ A2_ID
Id for retrieving the structure factor for UMC accessor.
Definition gmpMaterialDPCreep.h:45
@ AN1_ID
Id for retrieving the stress power for DCL accessor.
Definition gmpMaterialDPCreep.h:43
@ AN2_ID
Id for retrieving the stress power for UMC accessor
Definition gmpMaterialDPCreep.h:46
@ So_ID
Id for retrieving the threshold deviatoric stress accessor.
Definition gmpMaterialDPCreep.h:48
@ Q1_ID
Id for retrieving the thermal activation energy for DCL accessor
Definition gmpMaterialDPCreep.h:44
@ R_ID
Id for retrieving the universal gas constant accessor
Definition gmpMaterialDPCreep.h:49
@ Q2_ID
Id for retrieving the thermal activation energy for UMC accessor
Definition gmpMaterialDPCreep.h:47
double thresholdDevStress(const GmElement *e, const GmVector *coord, int ip) const
Returns the Threshold deviatoric stress.
Definition gmpMaterialDPCreep.h:167
virtual double fillCreepStrainRate(const GmElement *e, const GmpMechanicPoint *mp, const GmVector *coord, const GmVector &Time, double MISES) const
Computes the creep deformation rate.
Definition gmpMaterialDPCreep.h:96
double structureFactorUMC(const GmElement *e, const GmVector *coord, int ip) const
Returns the structure factor for UMC.
Definition gmpMaterialDPCreep.h:149
GmpMaterialDPCreep(int typeIndex, QString typeName, const GmLogCategory &logger)
Constructor. Gets as parameters the material index and its name.
Definition gmpMaterialDPCreep.h:58
double thermalActivEnergyUMC(const GmElement *e, const GmVector *coord, int ip) const
Returns the Thermal activation energy for UMC.
Definition gmpMaterialDPCreep.h:155
Definition gmpMechanicPoint.h:33
Declaration of the GmpMechanicPoint class.
Declaration of useful configuration definitions for the plugin library.
QString tr(const char *sourceText, const char *disambiguation, int n)