ckwolfe's picture
Add AS-DiffMPM reference material configs (elastic, newtonian, non_newtonian, sand, plasticine)
28219ac verified
from mmengine.config import read_base
with read_base():
from .default import cfg
cfg.update(
base_dir="simulation_output/elastic/box",
BC={
"ground": [[0, 0, 0], [0, 1, 0]],
"mesh": {
"ply_path": "assets/colliders/meshes/box.ply",
"scale": 1.0,
"rotate": [0.0, 0.0, 0.0],
"translate": [0.0, 0.0, 0.0],
"points_per_face": 50,
"c": 0.0, # pushing force to move the object away from the boundary
"Kh": 0.0, # penalty stiffness parameter
"start_frame": 0,
"end_frame": 0,
"lin_vel": [0.0, 0.0, 0.0],
"ang_vel": [0.0, 0.0, 0.0],
"rot_center": [0.0, 0.0, 0.0],
"surface": "surface_sticky",
"dump": {
"dump_x": False,
"dump_x_T": False,
"dump_x_d": False,
"dump_x_rp": False,
"dump_grid_A": False,
"dump_grid_T": False,
"dump_grid_n": False,
"dump_collider": False,
"output_dir": "dump_mpm", # folder created at cfg['base_dir'] path
},
},
},
)