The ExpressionField object defines a spatially varying field whose value is calculated from a user-supplied mathematical expression.
The ExpressionField object is derived from the AnalyticalField object.
import fields mdb.models[name].analyticalFields[name]
This method creates an ExpressionField object.
mdb.models[name].ExpressionField
Required arguments
A String specifying the repository key.
A String specifying the Python expression to evaluate in space. Variables are X, Y, and Z; R, Th, and Z; or R, Th, and P based on the selected coordinate system.
Optional arguments
None or a DatumCsys object specifying the local coordinate system of the field. If localCsys=None, the field is defined in the global coordinate system. The default value is None.
A String specifying the description of the field. The default value is an empty string.
Return value
An ExpressionField object.
Exceptions
TextException.
This method modifies the ExpressionField object.
Required arguments
Optional arguments
The optional arguments to setValues are the same as the arguments to the ExpressionField method, except for the name argument.
Return value
Exceptions
The ExpressionField object has members with the same names and descriptions as the arguments to the ExpressionField method.