FEMEntity(有限元法实体)
-
class genesis.engine.entities.fem_entity.FEMEntity(scene, solver, material, morph, surface, idx, v_start=0, el_start=0, s_start=0)[源代码]
基类:Entity
FEM-based entity.
-
set_position(pos)[源代码]
-
set_velocity(vel)[源代码]
-
set_actuation(actu)[源代码]
-
set_muscle(muscle_group=None, muscle_direction=None)[源代码]
-
get_state()[源代码]
-
deactivate()[源代码]
-
activate()[源代码]
-
instantiate(verts, elems)[源代码]
-
sample()[源代码]
-
init_tgt_keys()[源代码]
-
init_tgt_vars()[源代码]
-
init_ckpt()[源代码]
-
save_ckpt(ckpt_name)[源代码]
-
load_ckpt(ckpt_name)[源代码]
-
reset_grad()[源代码]
-
process_input(in_backward=False)[源代码]
-
process_input_grad()[源代码]
-
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_active(f, active)[源代码]
-
set_muscle_group(muscle_group)[源代码]
-
set_muscle_direction(muscle_direction)[源代码]
-
get_el2v()[源代码]
-
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), active: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[源代码]
-
clear_grad(f: <taichi._lib.core.taichi_python.DataType object at 0x7a5b26affc70>)[源代码]
-
property n_vertices
-
property n_elements
-
property n_surfaces
-
property v_start
-
property el_start
-
property s_start
-
property morph
-
property material
-
property surface
-
property n_surface_vertices
-
property tet_cfg