didppy.ElementTable3D

class didppy.ElementTable3D

3-dimensional table of element constants.

t[x, y, z] returns an element expression referring to an item where t is ElementTable3D and x, y, and z are ElementExpr, ElementVar, ElementResourceVar, or int.

Examples

>>> import didppy as dp
>>> model = dp.Model()
>>> obj = model.add_object_type(number=2)
>>> var = model.add_element_var(object_type=obj, target=1)
>>> table = model.add_element_table([[[2, 3], [0, 1]], [[0, 1], [2, 2]]])
>>> table[0, 0, var].eval(model.target_state, model)
3

Methods