The Density object specifies the material density.
import material mdb.models[name].materials[name].density import odbMaterial session.odbs[name].materials[name].density
This method creates a Density object.
mdb.models[name].materials[name].Density session.odbs[name].materials[name].Density
Required argument
A sequence of sequences of Floats specifying the items described below.
Optional arguments
A Boolean specifying whether the data depend on temperature. The default value is OFF.
An Int specifying the number of field variable dependencies. The default value is 0.
A SymbolicConstant specifying how the density is distributed spatially. Possible values are UNIFORM, ANALYTICAL_FIELD, and DISCRETE_FIELD. The default value is UNIFORM.
A String specifying the name of the AnalyticalField or DiscreteField object associated with this material option. The fieldName argument applies only when distributionType=ANALYTICAL_FIELD or distributionType=DISCRETE_FIELD. The default value is an empty string.
Table data
The mass density.
Temperature, if the data depend on temperature.
Value of the first field variable, if the data depend on field variables.
Value of the second field variable.
Etc.
Return value
A Density object.
Exceptions
RangeError.
This method modifies the Density object.
Required arguments
Optional arguments
The optional arguments to setValues are the same as the arguments to the Density method.
Return value
Exceptions
RangeError.
The Density object has members with the same names and descriptions as the arguments to the Density method.