FieldEvaluator Class

class NXOpen.Fields.FieldEvaluator

Bases: NXOpen.TaggedObject

Represents a Field Evaluator which can be used to evaluate a NXOpen.Fields.Field.

Use NXOpen.Fields.Field.GetFieldEvaluator() to obtain an instance of this class

New in version NX7.5.2.

Properties

Property Description
InterpolationMethod Returns or sets the interpolation method used when this table data is evaluated.
Tag Returns the Tag for this object.

Methods

Method Description
Delete Delete this field evaluator; destroys the field evaluator and removes all references to it.
Evaluate Evaluate the Field at the specified independent variable NXOpen.Fields.FieldVariable values and return the values for the specified dependent variable.
GetDependentVariables Returns the dependent variables for this NXOpen.Fields.FieldEvaluator
GetIndependentVariables Returns the independent variables for this NXOpen.Fields.FieldEvaluator
SetIndependentVariableValues Sets values at which the Field will be evaluated for this independent variable NXOpen.Fields.FieldVariable.

Enumerations

FieldEvaluatorInterpolationEnum Enumeration Interpolation type
FieldEvaluatorInverseDistanceWeightingEnum Enumeration Options for IDW (inverse weighted distance) interpolator
FieldEvaluatorLinearLogOptionEnum Enumeration Log Options for Linear interpolator
FieldEvaluatorValuesOutsideTableInterpolationEnum Enumeration Options for outside table values interpolation

Property Detail

InterpolationMethod

FieldEvaluator.InterpolationMethod

Returns or sets the interpolation method used when this table data is evaluated.

-------------------------------------

Getter Method

Signature InterpolationMethod

Returns:the interpolation method
Return type:NXOpen.Fields.FieldEvaluatorInterpolationEnum

New in version NX7.5.2.

License requirements: None.

-------------------------------------

Setter Method

Signature InterpolationMethod

Parameters:interpolationMethod (NXOpen.Fields.FieldEvaluatorInterpolationEnum) – the interpolation method

New in version NX7.5.2.

License requirements: None.

Method Detail

Delete

FieldEvaluator.Delete

Delete this field evaluator; destroys the field evaluator and removes all references to it.

Signature Delete()

New in version NX7.5.2.

License requirements: None.

Evaluate

FieldEvaluator.Evaluate

Evaluate the Field at the specified independent variable NXOpen.Fields.FieldVariable values and return the values for the specified dependent variable.

The number of output values will be the same as number of independent variables specified and these values will be in the same units as the dependent variable NXOpen.Fields.FieldVariable.

Signature Evaluate(dependentVariable)

Parameters:dependentVariable (NXOpen.Fields.FieldVariable) – dependent variable whose values are to be evaluated
Returns:the values evaluated for this dependent variable
Return type:list of float

New in version NX7.5.2.

License requirements: None.

GetDependentVariables

FieldEvaluator.GetDependentVariables

Returns the dependent variables for this NXOpen.Fields.FieldEvaluator

Signature GetDependentVariables()

Returns:dependent variables for this NXOpen.Fields.FieldEvaluator
Return type:list of NXOpen.Fields.FieldVariable

New in version NX7.5.2.

License requirements: None.

GetIndependentVariables

FieldEvaluator.GetIndependentVariables

Returns the independent variables for this NXOpen.Fields.FieldEvaluator

Signature GetIndependentVariables()

Returns:independent variables for this NXOpen.Fields.FieldEvaluator
Return type:list of NXOpen.Fields.FieldVariable

New in version NX7.5.2.

License requirements: None.

SetIndependentVariableValues

FieldEvaluator.SetIndependentVariableValues

Sets values at which the Field will be evaluated for this independent variable NXOpen.Fields.FieldVariable.

The number of input values mush be the same for independent variables and these values are assumed to be in the same units as the independent variable NXOpen.Fields.FieldVariable.

Signature SetIndependentVariableValues(independentVariable, values)

Parameters:
  • independentVariable (NXOpen.Fields.FieldVariable) – independent variable whose values are being set.
  • values (list of float) – the values for this independent variable where the field will be evaluated at.

New in version NX7.5.2.

License requirements: None.