makescalelem#

ens_calculator.makescalelem(source_parts: List[ENS_PART] | List[int] | List[str] | ENS_PART | int | str, constant: ENS_VAR | str | int | float, output_varname: str | None = None) ENS_VAR#

Computes a scalar per element variable defined as a specified value or constant variable

Args:
source_parts:

Any part(s) or a part number.

constant:

A constant variable or a value to assign scalar per element.

output_varname:

The name of the newly created variable

Returns:

New ENS_VAR instance or None

Note:

See MakeScalElem() for function details.