Skip to content

Commit 220126b

Browse files
worked for pushbox, screw and slingshot
1 parent 71fccf6 commit 220126b

File tree

9 files changed

+19689
-1
lines changed

9 files changed

+19689
-1
lines changed

data/sling_shots.json

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
{
2+
"geometry": [
3+
{
4+
"mesh": "../data/vol_mesh/mat.msh",
5+
"transformation": {
6+
"translation": [
7+
0.018,
8+
0.115,
9+
0
10+
],
11+
"rotation": [
12+
0,
13+
0,
14+
90
15+
],
16+
"scale": [
17+
0.00385,
18+
0.01,
19+
0.21
20+
]
21+
},
22+
"volume_selection": 1,
23+
"advanced": {
24+
"normalize_mesh": false
25+
},
26+
"surface_selection": [
27+
{
28+
"id": 3,
29+
"axis": -3,
30+
"position": -0.1
31+
},
32+
{
33+
"id": 3,
34+
"axis": 3,
35+
"position": 0.1
36+
}
37+
]
38+
},
39+
{
40+
"mesh": "../data/vol_mesh/sphere_grooved.msh",
41+
"transformation": {
42+
"translation": [
43+
0,
44+
0.115,
45+
0
46+
],
47+
"rotation": [
48+
90,
49+
0,
50+
0
51+
],
52+
"scale": 0.0386
53+
},
54+
"volume_selection": 2,
55+
"advanced": {
56+
"normalize_mesh": false
57+
},
58+
"surface_selection": [
59+
{
60+
"id": 3,
61+
"axis": -3,
62+
"position": -0.1
63+
},
64+
{
65+
"id": 3,
66+
"axis": 3,
67+
"position": 0.1
68+
}
69+
]
70+
},
71+
{
72+
"mesh": "../data/surf_mesh/left_finger.obj",
73+
"is_obstacle": true,
74+
"enabled": true,
75+
"transformation": {
76+
"translation": [
77+
0.04,
78+
0.16032,
79+
0.0
80+
],
81+
"rotation": [
82+
0,
83+
-90,
84+
0
85+
],
86+
"scale": 1
87+
},
88+
"surface_selection": 1000
89+
},
90+
{
91+
"mesh": "../data/surf_mesh/right_finger.obj",
92+
"is_obstacle": true,
93+
"enabled": true,
94+
"transformation": {
95+
"translation": [
96+
0.04,
97+
0.06965,
98+
0.0
99+
],
100+
"rotation": [
101+
0,
102+
-90,
103+
0
104+
],
105+
"scale": 1
106+
},
107+
"surface_selection": 1001
108+
}
109+
],
110+
"boundary_conditions": {
111+
"obstacle_displacements": [
112+
{
113+
"id": 1000,
114+
"value": [
115+
"0",
116+
"-0.02 * t",
117+
"0"
118+
]
119+
},
120+
{
121+
"id": 1001,
122+
"value": [
123+
"0",
124+
"0.02 * t",
125+
"0"
126+
]
127+
}
128+
],
129+
"rhs": [
130+
0,
131+
9.81,
132+
0
133+
],
134+
"dirichlet_boundary": [
135+
{
136+
"id": 3,
137+
"value": [
138+
0,
139+
0,
140+
0
141+
]
142+
}
143+
]
144+
},
145+
"space": {
146+
"advanced": {
147+
"bc_method": "sample",
148+
"quadrature_order": -1
149+
}
150+
},
151+
"time": {
152+
"t0": 0,
153+
"dt": 0.01,
154+
"time_steps": 50
155+
},
156+
"contact": {
157+
"enabled": true,
158+
"dhat": 1e-05,
159+
"friction_coefficient": 0.8
160+
},
161+
"solver": {
162+
"linear": {
163+
"solver": "Eigen::CholmodSupernodalLLT"
164+
},
165+
"nonlinear": {
166+
"line_search": {
167+
"method": "backtracking"
168+
},
169+
"grad_norm": 1e-06,
170+
"use_grad_norm": false
171+
},
172+
"augmented_lagrangian": {
173+
"max_weight": 1e+30
174+
},
175+
"contact": {
176+
"friction_iterations": 100,
177+
"CCD": {
178+
"broad_phase": "STQ"
179+
}
180+
}
181+
},
182+
"materials": [
183+
{
184+
"id": 2,
185+
"E": 10000000.0,
186+
"nu": 0.4,
187+
"rho": 1150,
188+
"type": "NeoHookean"
189+
},
190+
{
191+
"id": 1,
192+
"E": 10000000.0,
193+
"nu": 0.4,
194+
"rho": 1150,
195+
"type": "NeoHookean"
196+
}
197+
],
198+
"output": {
199+
"paraview": {
200+
"file_name": "sim.pvd",
201+
"options": {
202+
"material": true,
203+
"body_ids": true
204+
},
205+
"vismesh_rel_area": 10000000
206+
},
207+
"advanced": {
208+
"save_solve_sequence_debug": false,
209+
"save_time_sequence": true
210+
}
211+
}
212+
}

data/surf_mesh/left_finger.STL

237 KB
Binary file not shown.

0 commit comments

Comments
 (0)