MPMEntity(材料点法实体)#
- class genesis.engine.entities.mpm_entity.MPMEntity(scene, solver, material, morph, surface, particle_size, idx, particle_start, vvert_start, vface_start)[源代码]#
基类:
ParticleEntityMPM-based particle entity.
- get_frame(f: <taichi._lib.core.taichi_python.DataType object at 0x7a5b26affc70>, pos: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None), vel: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None), C: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None), F: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None), Jp: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None), active: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[源代码]#
- set_frame_add_grad_pos(f: <taichi._lib.core.taichi_python.DataType object at 0x7a5b26affc70>, pos_grad: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[源代码]#
- set_frame_add_grad_vel(f: <taichi._lib.core.taichi_python.DataType object at 0x7a5b26affc70>, vel_grad: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[源代码]#
- set_frame_add_grad_C(f: <taichi._lib.core.taichi_python.DataType object at 0x7a5b26affc70>, C_grad: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[源代码]#
- set_frame_add_grad_F(f: <taichi._lib.core.taichi_python.DataType object at 0x7a5b26affc70>, F_grad: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[源代码]#