Skip to content

Commit 2bb141b

Browse files
committed
Use more coarse configs for examples
1 parent 57392c9 commit 2bb141b

12 files changed

Lines changed: 13 additions & 19 deletions

File tree

examples/Contact/Contact2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
thickness = R / 3 # out-of-plane extent (3D)
3030
meshSize = R / 20 if dim == 2 else R / 8
3131

32-
N = 30 # load steps
32+
N = 10 # load steps
3333
delta = 0.1
3434
penalty = 1e7 # contact stiffness (larger -> less penetration)
3535

examples/Contact/Contact3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
thickness = e / 2 # out-of-plane extent (3D)
3434
mS = t / 5 if dim == 2 else t
3535

36-
N = 20 # load steps
36+
N = 10 # load steps
3737
delta = 2 * t
3838
penalty = 1e6 # contact stiffness
3939

examples/DIC/DIC1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def Plot(simu: Elastic, result: str, img=None, title="", plotMesh=True):
6666

6767
x0, y0 = 35, 25
6868
x1, y1 = 423, 814
69-
meshSize = (x1 - x0) / 20
69+
meshSize = (x1 - x0) / 10
7070
contour = Domain((x0, y0), (x1, y1), meshSize)
7171
contour.Plot(ax)
7272

examples/Hyperelasticity/AutoDiffPotential.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,3 @@ def chi(Ii):
154154
rel(d2Wde(state, *aux), shipped.Compute_d2Wde(state)),
155155
)
156156
print(f"{type(shipped).__name__:24s}" + "".join(f"{e:12.2e}" for e in errors))
157-
158-
print(
159-
"\nHolzapfel-Ogden carries a fibre direction per Gauss point, as the cardiac mesh does."
160-
)

examples/Inelasticity/RelaxationPlate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
Models.InElastic.ViscoElastic.Maxwell(g=0.30, tau=1.0),
5050
Models.InElastic.ViscoElastic.Maxwell(g=0.20, tau=10.0),
5151
]
52-
dt, nStep = 0.5, 40
52+
dt, nStep = 0.5, 10
5353

5454

5555
def Relaxation(n: int) -> float:

examples/LinearizedElasticity/Elas10.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
# Time parameters
5050
tMax = 1e-6
51-
Nt = 20
51+
Nt = 10
5252
dt = tMax / Nt
5353

5454
# Load parameters

examples/LinearizedElasticity/Elas9.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
# time
4747
Tmax = 0.5
48-
N = 50
48+
N = 25
4949
dt = Tmax / N
5050
time = -dt
5151

examples/LinearizedElasticity/Homog4.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def Get_pairedNodes(
197197
# ----------------------------------------------
198198
# Mesh
199199
# ----------------------------------------------
200-
meshSize = 1 / 5
200+
meshSize = 1 / 3
201201

202202
p0 = (-1 / 2, -1 / 2)
203203
p1 = (1 / 2, -1 / 2)
@@ -212,7 +212,7 @@ def Get_pairedNodes(
212212
inclusion = Circle((0, 0), 2 * r, meshSize, isFilled=True)
213213
# contour.Plot_Geoms([contour, inclusion])
214214

215-
elemType = ElemType.PRISM15
215+
elemType = ElemType.PRISM18
216216
mesh = contour.Mesh_Extrude([inclusion], [0, 0, 1], [1 / meshSize], elemType)
217217
mesh.Translate(*-mesh.center) # center mesh on 0,0,0
218218

examples/LinearizedElasticity/Homog5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
U_e[..., 4] = u13_e
142142
U_e[..., 5] = u12_e
143143

144-
matrixType = "mass"
144+
matrixType = "rigi"
145145
wJ_e_pg = mesh.groupElem.Get_weightedJacobian_e_pg(matrixType)
146146
B_e_pg = mesh.groupElem.Get_B_e_pg(matrixType)
147147

examples/LinearizedElasticity/MeshOptim3.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@
6060
surfLoad = P / h1 / b # N/mm2
6161

6262
# criteria
63-
threshold = (
64-
1 / 100 if dim == 2 else 0.04
65-
) # Target error for the optimization process
63+
threshold = 0.04 # Target error for the optimization process
6664
iterMax = 20 # Maximum number of iterations
6765
coef = 1 / 10 # Scaling coefficient for the optimization process
6866

0 commit comments

Comments
 (0)