offsetvar#

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

Computes a variable defined as the variable value offset in the surface normal direction into a field. It provides a way to place near surface values onto the surface.

Args:
source_parts:

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

scalar_or_vector:

A scalar or vector variable.

offset:

An offset value.

output_varname:

The name of the newly created variable

Returns:

New ENS_VAR instance or None

Note:

See OffsetVar() for function details.