function#
- FieldExpressions.function(name: str) ScalarReal#
Create a scalar expression from a design variable or function.
- Parameters:
- name
str Name resolved by AEDT through
Scalar_Function, typically a design variable or calculator function entry.
- name
- Returns:
ScalarRealReal scalar expression seeded with
Scalar_Function.
Examples
Seed a scalar expression from a design variable.
>>> from ansys.aedt.core.visualization.post.field_calculator_expressions import FieldExpressions >>> fx = FieldExpressions(calculator=None) >>> fx.function("width").operations ["Scalar_Function(FuncValue='width')"]