add#
- VectorReal.add(name: str, assignment=None) str | bool#
Register this expression as an AEDT named expression.
- Parameters:
- Returns:
Examples
Register a compiled expression through the bound calculator.
>>> calc = type( ... "Calc", ... (), ... { ... "design_type": "HFSS", ... "add_expression": staticmethod(lambda *args, **kwargs: kwargs["name"]), ... }, ... )() >>> from ansys.aedt.core.visualization.post.field_calculator_expressions import FieldExpressions >>> fx = FieldExpressions(calc) >>> fx.vector("E").magnitude().add("e_mag") 'e_mag'