massfluxavg#
- ens_calculator.massfluxavg(source_parts: List[ENS_PART] | List[int] | List[str] | ENS_PART | int | str, scalar: ENS_VAR | str | int, velocity: ENS_VAR | str | int, density: ENS_VAR | str | int | float, result_type: str = 'Compute_Per_case', output_varname: str | None = None) ENS_VAR #
Computes a constant variable defined as the mass flux average
- Args:
- source_parts:
Any 1D or 2D part(s) or a part number.
- scalar:
A scalar variable.
- velocity:
A velocity variable.
- density:
A density variable or a value.
- result_type:
Per/Case or Per/Part Results
- output_varname:
The name of the newly created variable
- Returns:
New ENS_VAR instance or None
- Note:
See MassFluxAvg() for function details.