MPMEntity(材料点法实体)#

class genesis.engine.entities.mpm_entity.MPMEntity(scene, solver, material, morph, surface, particle_size, idx, particle_start, vvert_start, vface_start)[源代码]#

基类:ParticleEntity

MPM-based particle entity.

init_tgt_keys()[源代码]#
set_pos(f, pos)[源代码]#
set_pos_grad(f, pos_grad)[源代码]#
set_vel(f, vel)[源代码]#
set_vel_grad(f, vel_grad)[源代码]#
set_actu(f, actu)[源代码]#
set_actu_grad(f, actu_grad)[源代码]#
set_muscle_group(muscle_group)[源代码]#
get_muscle_group()[源代码]#
set_muscle_direction(muscle_direction)[源代码]#
set_active(f, active)[源代码]#
set_active_arr(f, active)[源代码]#
set_actuation(actu)[源代码]#
set_muscle(muscle_group=None, muscle_direction=None)[源代码]#
clear_grad(f: <taichi._lib.core.taichi_python.DataType object at 0x7a5b26affc70>)[源代码]#
process_input(in_backward=False)[源代码]#
process_input_grad()[源代码]#
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))[源代码]#
set_frame_add_grad_Jp(f: <taichi._lib.core.taichi_python.DataType object at 0x7a5b26affc70>, Jp_grad: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[源代码]#
add_grad_from_state(state)[源代码]#
get_particles()[源代码]#
get_state()[源代码]#