defect_netvolume#

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

Computes a per element scalar variable defined as the sum of the product of cell volumes with the specified scalar variable of the cells comprising the defect.

Args:
source_parts:

Any part(s) or a part #.

scalar_per_element_variable:

A defect scalar per element variable or a value.

scale_factor:

Specify a scale factor multiplied to the scalar per element values.

output_varname:

The name of the newly created variable

Returns:

New ENS_VAR instance or None

Note:

See Defect_NetVolume() for function details.