SPHEntity(光滑粒子流体动力学实体)#

class genesis.engine.entities.sph_entity.SPHEntity(scene, solver, material, morph, surface, particle_size, idx, particle_start)[源代码]#

基类:ParticleEntity

SPH-based particle entity.

init_sampler()[源代码]#
set_pos(f, pos)[源代码]#
set_pos_grad(f: <taichi._lib.core.taichi_python.DataType object at 0x7a5b26affc70>, pos_grad: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[源代码]#
set_vel(f, vel)[源代码]#
set_vel_grad(f: <taichi._lib.core.taichi_python.DataType object at 0x7a5b26affc70>, vel_grad: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[源代码]#
set_active(f, active)[源代码]#
clear_grad(f: <taichi._lib.core.taichi_python.DataType object at 0x7a5b26affc70>)[源代码]#
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))[源代码]#
add_grad_from_state(state)[源代码]#
get_state()[源代码]#