struct.prop

Syntax

a := struct.prop(p,a<,ip><,bscaled>)
struct.prop(p,a) := a

Get/set the value of a property in the structural element. The property may be identified either by the name as a string, or by an index returned from the struct.prop.index function. The name s must match a property of the element type (cable, hybrid-bolt, beam, pile, shell, geogrid or liner) or a property of the constitutive model of the element (hybrid bolts and cables have implicit constitutive models that are not set by a CMODEL command) using keyword matching rules. If no property matches, an error occurs. The properties available to an element can be listed by the structure cable list property (or hybrid, beam, pile, shell, geogrid, liner) command by typing a question mark after the property keyword.

Returns:

a - value of property s

Accepts:

a - value to be assigned to property s. The value must match the type of that property (e.g., float, boolean, string, etc.).

Arguments:

p - pointer to a structural element

a - property name as a string or property index as an integer.

ip - optional argument indicating the integration point number. All properties are constant over the element, except for the softening properties of the strain-softening/hardening Mohr Coulomb model. For such properties, ip defaults to 1, and the return value is 0.0 if ip is greater than the number of integration points.

bscaled - [FLAC2D ONLY] optional argument indicating to get the scaled property. Scaled properties are defined by the spacing. If the property cannot be scaled, an error is returned.