The MaterialAssignment object stores the data for an initial material assignment predefined field, for use with an Eulerian analysis.
The MaterialAssignment object is derived from the PredefinedField object.
import load mdb.models[name].predefinedFields[name]
This method creates a MaterialAssignment predefined field object.
mdb.models[name].MaterialAssignment
Required arguments
A String specifying the repository key.
A PartInstanceArray object specifying the part instances to which the predefined field is applied. All instances must be assigned the same Eulerian section.
Optional arguments
A Boolean specifying whether the volume fraction data will be uniform or defined by discrete fields. The default value is OFF.
A sequence of tuples specifying the uniform volume fractions to be assigned. This argument is valid only when useFields=FALSE. Each tuple contains two entries:
A Region object.
A tuple of Floats specifying the uniform volume fraction values. The length of the tuple must match the number of material instance names specified in the Eulerain section assigned to part instances specified by instanceList.
A sequence of tuples specifying the discrete volume fractions to be assigned. This argument is valid only when useFields=TRUE. Each tuple contains two entries:
A Region object.
A tuple of Strings specifying Discrete Field names. The length of the tuple must match the number of material instance names specified in the Eulerain section assigned to part instances specified by instanceList.
A sequence of three Ints specifying colors used to display the material instance assignments. This is a sequence of R,G,B colors, where the values are represented by integers between 0 and 255. The default value is an empty sequence.
Return value
A MaterialAssignment object.
Exceptions
This method modifies the MaterialAssignment object.
Required arguments
Optional arguments
The optional arguments to setValues are the same as the arguments to the MaterialAssignment method, except for the name argument.
Return value
Exceptions
The MaterialAssignment object has members with the same names and descriptions as the arguments to the MaterialAssignment method.
In addition, the MaterialAssignment object can have the following member:
A Region object specifying the region to which the predefined field is applied.