named_expression#
- FieldExpressions.named_expression(name: str, is_vector: bool = False, is_complex: bool = True) FieldExpression#
Start from a previously defined named expression.
- Parameters:
- Returns:
FieldExpressionTyped expression seeded with
NameOfExpression('<name>').
Examples
Reuse a named expression as a new starting point.
>>> from ansys.aedt.core.visualization.post.field_calculator_expressions import FieldExpressions >>> fx = FieldExpressions(calculator=None) >>> fx.named_expression("Poynting", is_vector=True).operations ["NameOfExpression('Poynting')"]