You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: applications/ConstitutiveLawsApplication/custom_constitutive/thermal/small_strains/elastic/thermal_linear_plane_stress.cpp
KRATOS_ERROR_IF_NOT(rElementGeometry[0].SolutionStepsDataHas(TEMPERATURE)) << "The TEMPERATURE variable is not available at the nodes." << std::endl;
75
-
KRATOS_ERROR_IF_NOT(rMaterialProperties.Has(THERMAL_EXPANSION_COEFFICIENT)) << "The THERMAL_EXPANSION_COEFFICIENT is not set in the material properties." << std::endl;
76
-
KRATOS_ERROR_IF(rMaterialProperties[THERMAL_EXPANSION_COEFFICIENT] < 0.0) << "The THERMAL_EXPANSION_COEFFICIENT is negative..." << std::endl;
77
-
KRATOS_ERROR_IF_NOT(rElementGeometry.Has(REFERENCE_TEMPERATURE) || rMaterialProperties.Has(REFERENCE_TEMPERATURE)) << "The REFERENCE_TEMPERATURE is not given in the material properties nor via SetValue()" << std::endl;
Copy file name to clipboardExpand all lines: applications/ConstitutiveLawsApplication/custom_constitutive/thermal/small_strains/elastic/thermal_linear_plane_stress.h
* @brief This function provides the place to perform checks on the completeness of the input.
114
-
* @details It is designed to be called only once (or anyway, not often) typically at the beginning of the calculations, so to verify that nothing is missing from the input or that no common error is found.
115
-
* @param rMaterialProperties The properties of the material
116
-
* @param rElementGeometry The geometry of the element
117
-
* @param rCurrentProcessInfo The current process info instance
118
-
* @return 0 if OK, 1 otherwise
119
-
*/
120
-
intCheck(
121
-
const Properties& rMaterialProperties,
122
-
const GeometryType& rElementGeometry,
123
-
const ProcessInfo& rCurrentProcessInfo
124
-
) constoverride;
125
-
126
-
/**
127
-
* @brief It calculates the value of a specified variable (double case)
128
-
* @param rParameterValues the needed parameters for the CL calculation
129
-
* @param rThisVariable the variable to be returned
130
-
* @param rValue a reference to the returned value
131
-
* @return rValue output: the value of the specified variable
132
-
*/
133
-
double& CalculateValue(
134
-
ConstitutiveLaw::Parameters& rParameterValues,
135
-
const Variable<double>& rThisVariable,
136
-
double& rValue
137
-
) override;
138
-
139
-
/**
140
-
* This is to be called at the very beginning of the calculation
141
-
* (e.g. from InitializeElement) in order to initialize all relevant
142
-
* attributes of the constitutive law
143
-
* @param rMaterialProperties the Properties instance of the current element
144
-
* @param rElementGeometry the geometry of the current element
145
-
* @param rShapeFunctionsValues the shape functions values in the current integration point
146
-
*/
147
-
voidInitializeMaterial(
148
-
const Properties &rMaterialProperties,
149
-
const GeometryType &rElementGeometry,
150
-
const Vector &rShapeFunctionsValues) override;
151
-
152
103
/**
153
104
* @brief It calculates the stress vector
154
105
* @param rStrainVector The strain vector in Voigt notation
@@ -173,6 +124,19 @@ class KRATOS_API(CONSTITUTIVE_LAWS_APPLICATION) ThermalLinearPlaneStress
173
124
ConstitutiveLaw::Parameters& rValues
174
125
) override;
175
126
127
+
/**
128
+
* @brief It calculates and substracts the thermal strain
129
+
* @param rStrainVector The strain vector
130
+
* @param ReferenceTemperature the reference temeprature
131
+
* @param ReferenceTemperature Parameters of the constitutive law
132
+
* @param IsPlaneStrain indicator of plane strain
133
+
*/
134
+
voidSubstractThermalStrain(
135
+
ConstitutiveLaw::StrainVectorType &rStrainVector,
136
+
constdouble ReferenceTemperature,
137
+
ConstitutiveLaw::Parameters &rParameters,
138
+
constbool IsPlaneStrain = false) override;
139
+
176
140
///@}
177
141
///@name Access
178
142
///@{
@@ -219,7 +183,6 @@ class KRATOS_API(CONSTITUTIVE_LAWS_APPLICATION) ThermalLinearPlaneStress
219
183
///@name Member Variables
220
184
///@{
221
185
222
-
doublemReferenceTemperature = 0.0;
223
186
224
187
///@}
225
188
///@name Private Operators
@@ -235,39 +198,19 @@ class KRATOS_API(CONSTITUTIVE_LAWS_APPLICATION) ThermalLinearPlaneStress
235
198
///@{
236
199
///@}
237
200
238
-
/**
239
-
* @brief Retrieves the reference temperature
240
-
* @return The reference temperature
241
-
*/
242
-
double& GetReferenceTemperature()
243
-
{
244
-
returnmReferenceTemperature;
245
-
}
246
-
247
-
/**
248
-
* @brief Sets the reference temperature
249
-
* @param ToRefTemperature The reference temperature
0 commit comments