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: docs/user/examples/reverse-2d/step01-gravity.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -312,7 +312,7 @@ Increasing the basis order reduces the maximum shear stress by about 10 orders o
312
312
313
313
1. The displacement field is very similar for the three different discretizations.
314
314
2. In this case, we know the vertical displacement in the exact solution depends on the square of the depth, so we expect the numerical accuracy to be limited when we use a basis order of 1 for the displacement solution subfield.
315
-
3. In the exact solution, the axial components of the Cauchy stress tensor vary linear with depth, and the xy component of the Cauchy stress is zero.
315
+
3. In the exact solution, the axial components of the Cauchy stress tensor increase linearly with depth, and the xy component of the Cauchy stress is zero.
316
316
4. With the coarse mesh, the shear stress is close to 10 MPa throughout the mesh.
317
317
5. Refining the mesh decreases the magnitude shear stress by about a factor of 2.
318
318
6. Using a basis order of 2 for the solution subfields reduces the magnitude of the shear stress by nearly 10 orders of magnitude.
Copy file name to clipboardExpand all lines: docs/user/examples/strikeslip-2d/step04-varslip.md
+42-5Lines changed: 42 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,29 @@ Boundary conditions for static coseismic slip.
24
24
We set the x and y displacement to zero on the +x and -x boundaries and prescribe left-lateral slip that varies along strike.
25
25
:::
26
26
27
+
For greater accuracy in modeling the spatial variation in slip, we use a basis order of 2 for the solution subfields.
28
+
29
+
```{code-block} cfg
30
+
---
31
+
caption: Parameters related to increasing the basis order of the solution subfields to 2.
32
+
---
33
+
[pylithapp.problem]
34
+
defaults.quadrature_order = 2
35
+
36
+
[pylithapp.problem.solution.subfields]
37
+
displacement.basis_order = 2
38
+
lagrange_multiplier_fault.basis_order = 2
39
+
40
+
41
+
[pylithapp.problem.materials.elastic_xneg]
42
+
derived_subfields.cauchy_strain.basis_order = 1
43
+
derived_subfields.cauchy_stress.basis_order = 1
44
+
45
+
[pylithapp.problem.materials.elastic_xpos]
46
+
derived_subfields.cauchy_strain.basis_order = 1
47
+
derived_subfields.cauchy_stress.basis_order = 1
48
+
```
49
+
27
50
We also add output of the solution at fake GNSS stations given in the file `gnss_stations.txt`.
28
51
You can use the Python script `generate_gnssstations.py` to generate a different random set of stations; the default parameters will generate the provided `gnss_stations.txt` file.
The beginning of the output written to the terminal matches that in our previous simulations.
110
147
At the end of the output written to the terminal, we see that the solver advanced the solution one time step (static simulation).
111
-
The linear solve converged after 61 iterations and the norm of the residual met the absolute convergence tolerance (`ksp_atol`).
148
+
The linear solve converged after 27 iterations and the norm of the residual met the absolute convergence tolerance (`ksp_atol`).
112
149
The nonlinear solve converged in 1 iteration, which we expect because this is a linear problem, and the residual met the absolute convergence tolerance (`snes_atol`).
0 commit comments