Field3D.cut
Last updated
Last updated
Cut a field into smaller sections based on a specified cut size.
This method cuts a field into smaller sections based on the specified cut size and mode. It creates a new folder to store the cut data and grid files. If the folder already exists, it prompts the user for confirmation before overwriting the content. The chemical path is copied to the new cut folder. Each attribute of the field is cut according to the specified cut size and mode, and the resulting sections are saved to files. Finally, the information file ('info.json') is updated with the new shape of the field.
cut_size
(int): The size of the cut.
mode
(str, optional): The mode of cutting. Default is 'xyz'.
str: Path of the cut folder.