itasca.mpoint.mpmpointarray

Array interface for MPM points.

Functions

itasca.mpoint.mpmpointarray.deformation() → array float{MPM point}.

Get a numpy array of mpoint deformation scalar.

itasca.mpoint.mpmpointarray.density() → array float{MPM point}.

Get a numpy array of mpoint density.

itasca.mpoint.mpmpointarray.disp() → array vec3{MPM point}.

Get a numpy array of mpoint displacement.

itasca.mpoint.mpmpointarray.extra(slot: int) → array float{MPM point} or float{MPM point,3}.

Get the MPM point extra data in the given slot as an array. Extra variables accessed by array must be of type float or vec.

itasca.mpoint.mpmpointarray.in_group(group_name: str, slot=1) → array bool{MPM point}.

Return MPM point group membership as a Boolean array.

itasca.mpoint.mpmpointarray.index() → array int{MPM point}.

Get a numpy array of mpoint index.

itasca.mpoint.mpmpointarray.mass() → array float{MPM point}.

Get a numpy array of mpoint mass.

itasca.mpoint.mpmpointarray.pos() → array vec3{MPM point}.

Get a numpy array of mpoint position.

itasca.mpoint.mpmpointarray.pp() → array float{MPM point}.

Get a numpy array of mpoint pore pressure.

itasca.mpoint.mpmpointarray.pp_fix() → array bool{MPM point}.

Get a numpy array of mpoint pore pressure fixed flags.

itasca.mpoint.mpmpointarray.prop_scalar(name: str) → array float{MPM point}.

Get a numpy array of a scalar property for mpoints. The property is specified by name and can be any scalar property defined in the model such as a material point variable.

itasca.mpoint.mpmpointarray.set_density(array float{MPM point}) → void.

Set the mpoint density array.

itasca.mpoint.mpmpointarray.set_disp(array vec3{MPM point}) → None.

Set the mpoint displacement array.

itasca.mpoint.mpmpointarray.set_extra(slot: int, data: array float{MPM point} or float{MPM point, 3}) → None.

Set the MPM point extra data in the given slot with an array. Extra variables set by array must be of type float or vec.

itasca.mpoint.mpmpointarray.set_force_app(array vec3{MPM point}) → None.

Set the mpoint applied force array.

itasca.mpoint.mpmpointarray.set_group(membership: array bool{MPM point}, group_name: str, slot=1) → None.

Set MPM point group from an array. Where membership True set the corresponding MPM point to be a member of group group_name in the given slot.

itasca.mpoint.mpmpointarray.set_mass(array float{MPM point}) → void.

Set the mpoint mass array.

itasca.mpoint.mpmpointarray.set_pos(array vec3{MPM point}) → None.

Set the mpoint position array.

itasca.mpoint.mpmpointarray.set_pp(array float{MPM point}) → void.

Set the mpoint pore pressure array.

itasca.mpoint.mpmpointarray.set_pp_fix(array bool{MPM point}) → void.

Set the mpoint pore pressure fixed flags.

itasca.mpoint.mpmpointarray.set_prop_scalar(name: str, array float{MPM point}) → None.

Set a scalar property for mpoints. The property is specified by name and can be any scalar property defined in the model such as a material point variable.

itasca.mpoint.mpmpointarray.set_strain(strain: array stens3{MPM point) → None.

Set the strain tensor. The tensor components must be provided in the order xx,yy,zz,xy,yz,xz.

itasca.mpoint.mpmpointarray.set_stress(stress: array stens3{MPM point}) → None.

Set the stress tensor. The tensor components must be provided in the order xx,yy,zz,xy,yz,xz.

itasca.mpoint.mpmpointarray.set_velocity(array vec3{MPM point}) → None.

Set the mpoint velocity array.

itasca.mpoint.mpmpointarray.strain() → array stens3{MPM point}.

Get a numpy array of the strain tensor. The symmetric tensor components are used (xx,yy,zz,xy,yz,xz).

itasca.mpoint.mpmpointarray.stress() → array stens3{MPM point}.

Get a numpy array of the stress tensor. The symmetric tensor components are used (xx,yy,zz,xy,yz,xz).

itasca.mpoint.mpmpointarray.velocity() → array vec3{MPM point}.

Get a numpy array of mpoint velocity.

itasca.mpoint.mpmpointarray.vol() → array float{MPM point}.

Get a numpy array of mpoint volume.