function#

FieldExpressions.function(name: str) ScalarReal#

Create a scalar expression from a design variable or function.

Parameters:
namestr

Name resolved by AEDT through Scalar_Function, typically a design variable or calculator function entry.

Returns:
ScalarReal

Real 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')"]