div#

ens_calculator.div(source_parts: List[ENS_PART] | List[int] | List[str], vector: ENS_VAR | str | int, output_varname: str | None = None) ENS_VAR#

Computes a scalar variable defined as the divergence of the vector specified.

Args:
source_parts:

Any 2D or 3D part(s) or a part number.

vector:

A vector variable.

output_varname:

The name of the newly created variable

Returns:

New ENS_VAR instance or None

Note:

See Div() for function details.