casemap#
- ens_calculator.casemap(source_parts: List[ENS_PART] | List[int] | List[str] | ENS_PART | int | str, case_number_to_map_from: int, variable: ENS_VAR | str | int, parts_to_map_from: int = 0, search_option: int = 0, output_varname: str | None = None) ENS_VAR #
Computes a field variable (scalar, vector, or tensor) on the selected parts by searching for the node/element location in the case specified.
- Args:
- source_parts:
Any part(s) to map the variable to or a part number.
- case_number_to_map_from:
Enter number of the case to map the variable from.
- variable:
A scalar or vector variable.
- parts_to_map_from:
Enter 0 for “Global search”, 1 for “Dimension match”, 2 for “Part to Part”, or 3 for “Selected Parts”.
- search_option:
Enter 0 for “search only” or 1 for “grab closest value if search fails”.
- output_varname:
The name of the newly created variable
- Returns:
New ENS_VAR instance or None
- Note:
See CaseMap() for function details.