scalar_constant#
- FieldExpressions.scalar_constant(value: float) ScalarReal#
Create a real scalar constant.
- Parameters:
- value
float Constant value to push on the calculator stack.
- value
- Returns:
ScalarRealReal scalar expression seeded with
Scalar_Constant.
Examples
Create a scalar constant through the builder.
>>> from ansys.aedt.core.visualization.post.field_calculator_expressions import FieldExpressions >>> fx = FieldExpressions(calculator=None) >>> fx.scalar_constant(5).operations ['Scalar_Constant(5)']