|
34 | 34 | - The initial porosity named "porosityInitial" |
35 | 35 | - The delta of pressure named "deltaPressure" |
36 | 36 | - The density named "density" |
37 | | - - The effective stress named "stressEffective" |
| 37 | + - The average stress named "averageStress" |
38 | 38 | - The initial effective stress named "stressEffectiveInitial" |
39 | 39 | - The pressure named "pressure" |
40 | 40 |
|
|
125 | 125 | PRESSURE: AttributeEnum = GeosMeshOutputsEnum.PRESSURE |
126 | 126 | DELTA_PRESSURE: AttributeEnum = GeosMeshOutputsEnum.DELTA_PRESSURE |
127 | 127 | DENSITY: AttributeEnum = GeosMeshOutputsEnum.ROCK_DENSITY |
128 | | -STRESS_EFFECTIVE: AttributeEnum = GeosMeshOutputsEnum.STRESS_EFFECTIVE |
| 128 | +AVERAGE_STRESS: AttributeEnum = GeosMeshOutputsEnum.AVERAGE_STRESS |
129 | 129 | STRESS_EFFECTIVE_T0: AttributeEnum = PostProcessingOutputsEnum.STRESS_EFFECTIVE_INITIAL |
130 | 130 | MANDATORY_PROPERTIES: tuple[ AttributeEnum, ...] = ( POROSITY, POROSITY_T0, PRESSURE, DELTA_PRESSURE, DENSITY, |
131 | | - STRESS_EFFECTIVE, STRESS_EFFECTIVE_T0 ) |
| 131 | + AVERAGE_STRESS, STRESS_EFFECTIVE_T0 ) |
132 | 132 |
|
133 | 133 | # Basic properties: |
134 | 134 | BIOT_COEFFICIENT: AttributeEnum = PostProcessingOutputsEnum.BIOT_COEFFICIENT |
|
141 | 141 | STRESS_TOTAL_T0: AttributeEnum = PostProcessingOutputsEnum.STRESS_TOTAL_INITIAL |
142 | 142 | STRESS_TOTAL_RATIO_REAL: AttributeEnum = PostProcessingOutputsEnum.STRESS_TOTAL_RATIO_REAL |
143 | 143 | LITHOSTATIC_STRESS: AttributeEnum = PostProcessingOutputsEnum.LITHOSTATIC_STRESS |
144 | | -STRAIN_ELASTIC: AttributeEnum = PostProcessingOutputsEnum.STRAIN_ELASTIC |
| 144 | +AVERAGE_STRAIN: AttributeEnum = PostProcessingOutputsEnum.AVERAGE_STRAIN |
145 | 145 | STRESS_TOTAL_DELTA: AttributeEnum = PostProcessingOutputsEnum.STRESS_TOTAL_DELTA |
146 | 146 | RSP_REAL: AttributeEnum = PostProcessingOutputsEnum.RSP_REAL |
147 | 147 | RSP_OED: AttributeEnum = PostProcessingOutputsEnum.RSP_OED |
148 | 148 | STRESS_EFFECTIVE_RATIO_OED: AttributeEnum = PostProcessingOutputsEnum.STRESS_EFFECTIVE_RATIO_OED |
149 | 149 | BASIC_PROPERTIES: tuple[ AttributeEnum, |
150 | 150 | ...] = ( BIOT_COEFFICIENT, COMPRESSIBILITY, COMPRESSIBILITY_OED, COMPRESSIBILITY_REAL, |
151 | 151 | SPECIFIC_GRAVITY, STRESS_EFFECTIVE_RATIO_REAL, STRESS_TOTAL, STRESS_TOTAL_T0, |
152 | | - STRESS_TOTAL_RATIO_REAL, LITHOSTATIC_STRESS, STRAIN_ELASTIC, STRESS_TOTAL_DELTA, |
| 152 | + STRESS_TOTAL_RATIO_REAL, LITHOSTATIC_STRESS, AVERAGE_STRAIN, STRESS_TOTAL_DELTA, |
153 | 153 | RSP_REAL, RSP_OED, STRESS_EFFECTIVE_RATIO_OED ) |
154 | 154 |
|
155 | 155 | # Advanced properties: |
@@ -396,7 +396,7 @@ def setMandatoryPropertyValue( self: Self, name: str, value: npt.NDArray[ np.flo |
396 | 396 | self._deltaPressure = value |
397 | 397 | elif name == DENSITY.attributeName: |
398 | 398 | self._density = value |
399 | | - elif name == STRESS_EFFECTIVE.attributeName: |
| 399 | + elif name == AVERAGE_STRESS.attributeName: |
400 | 400 | self._effectiveStress = value |
401 | 401 | elif name == STRESS_EFFECTIVE_T0.attributeName: |
402 | 402 | self._effectiveStressT0 = value |
@@ -590,7 +590,7 @@ def getBasicPropertyValue( self: Self, name: str ) -> npt.NDArray[ np.float64 ] |
590 | 590 | # TODO: lithostatic stress calculation is deactivated until the formula is not fixed |
591 | 591 | # elif name == LITHOSTATIC_STRESS.attributeName: |
592 | 592 | # return self.lithostaticStress |
593 | | - elif name == STRAIN_ELASTIC.attributeName: |
| 593 | + elif name == AVERAGE_STRAIN.attributeName: |
594 | 594 | return self.elasticStrain |
595 | 595 | elif name == STRESS_TOTAL_DELTA.attributeName: |
596 | 596 | return self.deltaTotalStress |
@@ -1076,7 +1076,7 @@ def _computeTotalStresses( self: Self ) -> None: |
1076 | 1076 | self._basicProperties.biotCoefficient, |
1077 | 1077 | STRESS_TOTAL ) |
1078 | 1078 | else: |
1079 | | - mess = f"{ STRESS_TOTAL.attributeName } has not been computed, geomechanics property { STRESS_EFFECTIVE.attributeName } or { BIOT_COEFFICIENT.attributeName } are missing." |
| 1079 | + mess = f"{ STRESS_TOTAL.attributeName } has not been computed, geomechanics property { AVERAGE_STRESS.attributeName } or { BIOT_COEFFICIENT.attributeName } are missing." |
1080 | 1080 | raise AttributeError( mess ) |
1081 | 1081 |
|
1082 | 1082 | # Compute the total stress ratio. |
@@ -1175,19 +1175,19 @@ def _computeElasticStrain( self: Self ) -> None: |
1175 | 1175 | if self._mandatoryProperties.effectiveStress is not None and self._mandatoryProperties.effectiveStressT0 is not None: |
1176 | 1176 | deltaEffectiveStress = self._mandatoryProperties.effectiveStress - self._mandatoryProperties.effectiveStressT0 |
1177 | 1177 |
|
1178 | | - if not isAttributeInObject( self.output, STRAIN_ELASTIC.attributeName, STRAIN_ELASTIC.piece ): |
| 1178 | + if not isAttributeInObject( self.output, AVERAGE_STRAIN.attributeName, AVERAGE_STRAIN.piece ): |
1179 | 1179 | if self.computeYoungPoisson: |
1180 | 1180 | self._basicProperties.elasticStrain = fcts.elasticStrainFromBulkShear( |
1181 | 1181 | deltaEffectiveStress, self._elasticModuli.bulkModulus, self._elasticModuli.shearModulus ) |
1182 | 1182 | else: |
1183 | 1183 | self._basicProperties.elasticStrain = fcts.elasticStrainFromYoungPoisson( |
1184 | 1184 | deltaEffectiveStress, self._elasticModuli.youngModulus, self._elasticModuli.poissonRatio ) |
1185 | | - self._attributesToCreate.append( STRAIN_ELASTIC ) |
| 1185 | + self._attributesToCreate.append( AVERAGE_STRAIN ) |
1186 | 1186 | else: |
1187 | | - self._basicProperties.totalStressT0 = getArrayInObject( self.output, STRAIN_ELASTIC.attributeName, |
1188 | | - STRAIN_ELASTIC.piece ) |
| 1187 | + self._basicProperties.totalStressT0 = getArrayInObject( self.output, AVERAGE_STRAIN.attributeName, |
| 1188 | + AVERAGE_STRAIN.piece ) |
1189 | 1189 | self.logger.warning( |
1190 | | - f"{ STRAIN_ELASTIC.attributeName } is already on the mesh, it has not been computed by the filter." |
| 1190 | + f"{ AVERAGE_STRAIN.attributeName } is already on the mesh, it has not been computed by the filter." |
1191 | 1191 | ) |
1192 | 1192 |
|
1193 | 1193 | return |
|
0 commit comments