Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions end_to_end/fig14_puzzle_piece/opt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"variable_to_simulation": [
{
"type": "initial",
"state": 0,
"composition": [{
"type": "per-body-to-per-node",
"state": 0
},{
"type": "append-const",
"start": 0,
"size": 740,
"value": 0
}]
}
],
"solver": {
"nonlinear": {
"line_search": {
"method": "Backtracking"
},
"solver": "L-BFGS",
"max_iterations": 50,
"grad_norm_tol": 1e-4
}
},
"output": {
"directory": "output",
"log": {
"level": "info"
}
},
"parameters": [
{
"number": 4,
"initial": [0, 0, 0.5, 0]
}
],
"functionals": [
{
"type": "transient_integral",
"state": 0,
"weight": 10,
"static_objective":
{
"type": "target",
"state": 0,
"target_state": 1,
"matching": "exact",
"surface_selection": [1]
}
}
],
"states": [
{
"path": "run-new.json"
},
{
"path": "target-new.json"
}
]
}
747 changes: 747 additions & 0 deletions end_to_end/fig14_puzzle_piece/puzzle.msh

Large diffs are not rendered by default.

125 changes: 125 additions & 0 deletions end_to_end/fig14_puzzle_piece/run-new.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"geometry": [
{
"mesh": "wave.msh",
"transformation": {
"translation": [
0,
0
],
"rotation": 0,
"scale": [
2,
1
]
},
"volume_selection": 3,
"surface_selection": 3,
"n_refs": 0,
"advanced": {
"normalize_mesh": false
}
},
{
"mesh": "puzzle.msh",
"transformation": {
"translation": [
-1,
0.2
],
"rotation": 0,
"scale": 0.001
},
"volume_selection": 1,
"surface_selection": 1,
"n_refs": 0,
"advanced": {
"normalize_mesh": false
}
}
],
"space": {
"discr_order": 1,
"advanced": {
"quadrature_order": 5
}
},
"time": {
"tend": 0.6,
"dt": 0.02
},
"contact": {
"enabled": true,
"use_convergent_formulation": true,
"friction_coefficient": 0.5
},
"solver": {
"max_threads": 16,
"linear": {
"solver": [
"Eigen::PardisoLDLT",
"Eigen::AccelerateLDLT",
"Eigen::SimplicialLDLT"
]
},
"contact": {
"barrier_stiffness": 100000.0
}
},
"boundary_conditions": {
"rhs": [
0,
9.8
],
"dirichlet_boundary": [
{
"id": 3,
"value": [
0,
0
]
}
]
},
"initial_conditions": {
"velocity": [
{
"id": 1,
"value": [
0.5,
0
]
}
]
},
"materials": [
{
"id": 1,
"E": 1000000.0,
"nu": 0.3,
"rho": 1000,
"type": "NeoHookean"
},
{
"id": 3,
"E": 1000000.0,
"nu": 0.3,
"rho": 1000,
"type": "NeoHookean"
}
],
"output": {
"log": {
"level": "info"
},
"paraview": {
"file_name": "sim.pvd",
"high_order_mesh": false,
"options": {
"body_ids": true
},
"vismesh_rel_area": 1
},
"directory": "output/state_0"
}
}
127 changes: 127 additions & 0 deletions end_to_end/fig14_puzzle_piece/target-new.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
{
"geometry": [
{
"mesh": "wave.msh",
"transformation": {
"translation": [
0,
0
],
"rotation": 0,
"scale": [
2,
1
]
},
"volume_selection": 3,
"surface_selection": 3,
"n_refs": 0,
"advanced": {
"normalize_mesh": false
}
},
{
"mesh": "puzzle.msh",
"transformation": {
"translation": [
-1,
0.2
],
"rotation": 0,
"scale": 0.001
},
"volume_selection": 1,
"surface_selection": 1,
"n_refs": 0,
"advanced": {
"normalize_mesh": false
}
}
],
"space": {
"discr_order": 1,
"advanced": {
"quadrature_order": 5
}
},
"time": {
"tend": 0.6,
"dt": 0.02
},
"contact": {
"enabled": true,
"use_convergent_formulation": true,
"friction_coefficient": 0.5
},
"solver": {
"linear": {
"solver": [
"Eigen::PardisoLDLT",
"Eigen::AccelerateLDLT",
"Eigen::SimplicialLDLT"
]
},
"contact": {
"barrier_stiffness": 100000.0
}
},
"boundary_conditions": {
"rhs": [
0,
9.8
],
"dirichlet_boundary": [
{
"id": 3,
"value": [
0,
0
]
}
]
},
"initial_conditions": {
"velocity": [
{
"id": 1,
"value": [
2,
1
]
}
]
},
"materials": [
{
"id": 1,
"E": 1000000.0,
"nu": 0.3,
"rho": 1000,
"type": "NeoHookean"
},
{
"id": 3,
"E": 1000000.0,
"nu": 0.3,
"rho": 1000,
"type": "NeoHookean"
}
],
"output": {
"log": {
"level": "info"
},
"paraview": {
"file_name": "sim.pvd",
"high_order_mesh": false,
"options": {
"body_ids": true
},
"vismesh_rel_area": 1
},
"advanced": {
"save_time_sequence": true
},
"directory": "output/state_1"
}
}
Loading