makevect#

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

Computes a vector variable using three scalar/constant variables or constant values for the x, y, and z components.

Args:
source_parts:

Any part(s) or a part number.

scalar:

A scalar variable or a 0 to indicate a 2D case.

output_varname:

The name of the newly created variable

Returns:

New ENS_VAR instance or None

Note:

See MakeVect() for function details.