matspecies#

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

Computes a per element scalar variable defined as the sum of all specified materials and species combinations multiplied by the specific element variable.

Args:
source_parts:

Any model part(s) or a model part number.

scalar_per_elem:

An element-based scalar variable, or a scalar value.

output_varname:

The name of the newly created variable

Returns:

New ENS_VAR instance or None

Note:

See MatSpecies() for function details.