Skip to content

Commit ff38c6a

Browse files
committed
optimization for inv_free(undo some changes)
1 parent 7d26c90 commit ff38c6a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

4_friction/simulator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
# simulation setup
1111
side_len = 1
1212
rho = 1000 # density of square
13-
k = 4e4 # spring stiffness
14-
n_seg = 10 # num of segments per side of the square
13+
k = 2e4 # spring stiffness
14+
n_seg = 4 # num of segments per side of the square
1515
h = 0.01 # time step size in s
1616
DBC = [] # no nodes need to be fixed
1717
# ANCHOR: slope_setup

6_inv_free/simulator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
E = 1e5 # Young's modulus
1515
nu = 0.4 # Poisson's ratio
1616
# ANCHOR_END: lame_param
17-
n_seg = 6 # num of segments per side of the square
17+
n_seg = 4 # num of segments per side of the square
1818
h = 0.01 # time step size in s
1919
DBC = [(n_seg + 1) * (n_seg + 1)] # dirichlet node index
2020
DBC_v = [np.array([0.0, -0.5])] # dirichlet node velocity

0 commit comments

Comments
 (0)