Skip to content

Commit b2d65ce

Browse files
authored
fix: update TFrac tutorial example (#3595)
1 parent d0e5b2a commit b2d65ce

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

inputFiles/lagrangianContactMechanics/ContactMechanics_TFrac_benchmark.xml

+7-12
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,17 @@
1616
discretization="FE1"
1717
targetRegions="{ Region, Fracture }">
1818
<NonlinearSolverParameters
19-
newtonTol="1.0e-8"
19+
newtonTol="1.0e-5"
2020
logLevel="2"
2121
maxNumConfigurationAttempts="10"
2222
newtonMaxIter="10"
2323
lineSearchAction="Require"
2424
lineSearchMaxCuts="2"
2525
maxTimeStepCuts="2"/>
2626
<LinearSolverParameters
27-
solverType="direct"
28-
directParallel="0"
27+
solverType="gmres"
28+
preconditionerType="mgr"
29+
krylovTol="1e-8"
2930
logLevel="0"/>
3031
</SolidMechanicsLagrangeContact>
3132
<!-- SPHINX_SOLVER_END -->
@@ -39,15 +40,15 @@
3940
</NumericalMethods>
4041

4142
<Events
42-
maxTime="0.2">
43+
maxTime="1.0">
4344
<SoloEvent
4445
name="preFracture"
4546
target="/Solvers/SurfaceGen"/>
4647

4748
<PeriodicEvent
4849
name="solverApplications"
4950
beginTime="0.0"
50-
endTime="0.2"
51+
endTime="1.0"
5152
forceDt="0.2"
5253
target="/Solvers/lagrangiancontact"/>
5354

@@ -77,12 +78,6 @@
7778
name="displacementHistoryOutput"
7879
timeFrequency="0.2"
7980
targetExactTimestep="0"
80-
target="/Outputs/displacementOutput"/>
81-
82-
<PeriodicEvent
83-
name="restarts"
84-
timeFrequency="0.2"
85-
targetExactTimestep="0"
86-
target="/Outputs/restartOutput"/>
81+
target="/Outputs/displacementOutput"/>
8782
</Events>
8883
</Problem>

src/docs/sphinx/advancedExamples/validationStudies/faultMechanics/intersectFrac/Example.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ The next step is to specify fields, including:
170170
- The boundary conditions (traction loaded on the vertical fracture and the constraints of the outer boundaries have to be set).
171171

172172
In this tutorial, we specify an uniaxial vertical stress ``SigmaY`` (:math:`\sigma_y` = -1.0e8 Pa).
173-
A compressive traction ``NormalTraction`` (:math:`P_in` = -1.0e8 Pa) is applied at the surface of vertical fracture.
173+
A compressive traction ``NormalTraction`` (:math:`P_{in}` = -1.0e8 Pa) is applied at the surface of vertical fracture.
174174
The remaining parts of the outer boundaries are subjected to roller constraints.
175175
These boundary conditions are set up through the ``FieldSpecifications`` section.
176176

src/docs/sphinx/advancedExamples/validationStudies/faultMechanics/intersectFrac/intersectFracFigure.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def main():
175175
cmap = plt.get_cmap("tab10")
176176

177177
ax[0, 0].plot(r1 - length2, tn_literature, color=cmap(-1), label='Phan et al.(2003)', lw=lw)
178-
ax[0, 0].plot(xlist, tnlist, 'o', alpha=0.6, color=cmap(2), mec='k', label='GEOSX Results', markersize=msize)
178+
ax[0, 0].plot(xlist, tnlist, 'o', alpha=0.6, color=cmap(2), mec='k', label='GEOS Results', markersize=msize)
179179
ax[0, 0].grid()
180180
ax[0, 0].set_xlabel('Horizontal Frac Length [m]', size=fsize, weight="bold")
181181
ax[0, 0].set_ylabel('Normal Traction [MPa]', size=fsize, weight="bold")
@@ -184,7 +184,7 @@ def main():
184184
ax[0, 0].yaxis.set_tick_params(labelsize=fsize)
185185

186186
ax[0, 1].plot(r2 - length2, gt_literature, color=cmap(-1), label='Phan et al.(2003)', lw=lw)
187-
ax[0, 1].plot(xlist, gtlist, 'o', alpha=0.6, color=cmap(2), mec='k', label='GEOSX Results', markersize=msize)
187+
ax[0, 1].plot(xlist, gtlist, 'o', alpha=0.6, color=cmap(2), mec='k', label='GEOS Results', markersize=msize)
188188
ax[0, 1].grid()
189189
ax[0, 1].set_xlabel('Horizontal Frac Length [m]', size=fsize, weight="bold")
190190
ax[0, 1].set_ylabel('Slip [mm]', size=fsize, weight="bold")
@@ -200,9 +200,8 @@ def main():
200200
alpha=0.6,
201201
color=cmap(2),
202202
mec='k',
203-
label='GEOSX Results',
203+
label='GEOS Results',
204204
markersize=msize)
205-
ax[1, 0].plot(x_analytical, aperture_analytical * 1.0e3, '--', color=cmap(1), label='Sneddon Solution', lw=lw)
206205
ax[1, 0].grid()
207206
ax[1, 0].set_xlabel('Vertical Frac Length [m]', size=fsize, weight="bold")
208207
ax[1, 0].set_ylabel('Aperture [mm]', size=fsize, weight="bold")

0 commit comments

Comments
 (0)