verify#
- ScalarComplex.verify() FieldExpression#
Validate that the operation chain is well-formed and return
self.Useful as a fast, local check before sending a long expression to AEDT, where an unbalanced or oversized operation stack can otherwise fail in confusing ways. Chainable:
expr.verify().evaluate(...).- Returns:
FieldExpressionThe same expression instance when the stack is balanced.
Examples
Validate an expression before materializing it.
>>> from ansys.aedt.core.visualization.post.field_calculator_expressions import FieldExpressions >>> fx = FieldExpressions(calculator=None) >>> expr = fx.vector("E").magnitude().verify() >>> expr.operations[-1] "Operation('Mag')"