II.3.2 Identifier and type
Two attributes are defined for the “ClaMat” object: “Id” and “Type”. Five methods allow the
manipulation of the identifier of material and of its type:
- “Id” attribute setter has one argument and sets the identifier. The argument is an identifier
(an integer, a String or an Array[int,String]).
- “Id” attribute getter has no argument and returns the identifier of the object (same types
as above), or nil if no identifier has been attributed to the object.
- “Type” attribute setter has one String or integer argument corresponding to the type of the
material. Presently, three values are allowed: "isotropic", "orthotropic" or "anisotropic".
The type of the object must be set prior to the attribution of material moduli, thermal
expansion coefficients and allowables. Note that the attribute “getter” returns an integer.
- “TypeName” attribute getter returns a String corresponding to the type (same values as
for the “Type” attribute arguments, or "NONE" if no material type is defined).
Note that for the type definition, the integers are 0, 1, 2 or 3 and correspond to "NONE", "isotropic",
"orthotropic" or "anisotropic" respectively.