Skip to content

Commit 9500ff4

Browse files
committed
add snow example
1 parent 3494d2d commit 9500ff4

File tree

7 files changed

+256117
-0
lines changed

7 files changed

+256117
-0
lines changed

assets/duck/baseline/opt.json

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"compute_objective": true,
1313
"solver": {
14+
"max_threads": 16,
1415
"nonlinear": {}
1516
},
1617
"functionals": [

assets/duck/baseline/state.json

+11
Original file line numberDiff line numberDiff line change
@@ -107,38 +107,49 @@
107107
"E": 1e7,
108108
"nu": 0.45,
109109
"rho": 20,
110+
"phi": 0.5,
111+
"psi": 0.5,
110112
"type": "NeoHookean"
111113
},
112114
{
113115
"id": 2,
114116
"E": 1e7,
115117
"nu": 0.45,
116118
"rho": 20,
119+
"phi": 0.5,
120+
"psi": 0.5,
117121
"type": "NeoHookean"
118122
},
119123
{
120124
"id": 3,
121125
"E": 1e7,
122126
"nu": 0.45,
123127
"rho": 20,
128+
"phi": 0.5,
129+
"psi": 0.5,
124130
"type": "NeoHookean"
125131
},
126132
{
127133
"id": 4,
128134
"E": 1e7,
129135
"nu": 0.45,
130136
"rho": 20,
137+
"phi": 0.5,
138+
"psi": 0.5,
131139
"type": "NeoHookean"
132140
},
133141
{
134142
"id": 5,
135143
"E": 1e8,
136144
"nu": 0.45,
137145
"rho": 20,
146+
"phi": 0.5,
147+
"psi": 0.5,
138148
"type": "NeoHookean"
139149
}
140150
],
141151
"solver": {
152+
"max_threads": 16,
142153
"linear": {
143154
"solver": "Eigen::PardisoLDLT"
144155
},

assets/duck/optimized/opt.json

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"compute_objective": true,
1313
"solver": {
14+
"max_threads": 16,
1415
"nonlinear": {}
1516
},
1617
"functionals": [

assets/duck/optimized/state.json

+1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
}
150150
],
151151
"solver": {
152+
"max_threads": 16,
152153
"linear": {
153154
"solver": "Eigen::PardisoLDLT"
154155
},

assets/snowflake/snowflake03.msh

46.6 KB
Binary file not shown.

assets/snowflake/state.json

+127
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
{
2+
"space": {
3+
"discr_order": 1,
4+
"advanced": {
5+
"quadrature_order": 5
6+
}
7+
},
8+
"time": {
9+
"tend": 2,
10+
"dt": 0.001,
11+
"integrator": {
12+
"type": "BDF",
13+
"steps": 1
14+
}
15+
},
16+
"geometry": [
17+
{
18+
"mesh": "tiled.obj",
19+
"enabled": true,
20+
"volume_selection": 1,
21+
"surface_selection": {
22+
"threshold": 0.0001
23+
}
24+
},
25+
{
26+
"mesh": "snowflake03.msh",
27+
"enabled": true,
28+
"volume_selection": 3,
29+
"surface_selection": 10,
30+
"transformation": {
31+
"scale": 1,
32+
"translation": [
33+
0.3,
34+
1.2
35+
]
36+
}
37+
}
38+
],
39+
"contact": {
40+
"enabled": true,
41+
"use_convergent_formulation": true,
42+
"friction_coefficient": 1
43+
},
44+
"boundary_conditions": {
45+
"dirichlet_boundary": [
46+
{
47+
"id": 2,
48+
"value": [
49+
0,
50+
0
51+
],
52+
"dimension": [
53+
true,
54+
true
55+
]
56+
}
57+
],
58+
"rhs": [
59+
0,
60+
9.8
61+
]
62+
},
63+
"initial_conditions": {
64+
"velocity": [
65+
{
66+
"value": [
67+
1,
68+
-3
69+
],
70+
"id": 3
71+
}
72+
]
73+
},
74+
"materials": [
75+
{
76+
"id": 1,
77+
"E": 1000000.0,
78+
"nu": 0.3,
79+
"rho": 10,
80+
"type": "NeoHookean"
81+
},
82+
{
83+
"id": 3,
84+
"E": 100000000.0,
85+
"nu": 0.3,
86+
"rho": 200,
87+
"type": "NeoHookean"
88+
}
89+
],
90+
"solver": {
91+
"max_threads": 16,
92+
"linear": {
93+
"solver": "Eigen::PardisoLLT"
94+
},
95+
"nonlinear": {
96+
"advanced": {
97+
"f_delta": 1e-11,
98+
"f_delta_step_tol": 5
99+
},
100+
"grad_norm": 1e-02,
101+
"max_iterations": 500,
102+
"allow_out_of_iterations": true
103+
},
104+
"contact": {
105+
"barrier_stiffness": 1e9
106+
}
107+
},
108+
"output": {
109+
"directory": "result",
110+
"log": {
111+
"level": "info"
112+
},
113+
"paraview": {
114+
"skip_frame": 5,
115+
"surface": true,
116+
"volume": true,
117+
"options": {
118+
"use_hdf5": true,
119+
"velocity": false,
120+
"acceleration": false,
121+
"tensor_values": false,
122+
"body_ids": true,
123+
"material": true
124+
}
125+
}
126+
}
127+
}

0 commit comments

Comments
 (0)