Field3D.filter
Last updated
Last updated
Filter every scalar in the field object.
This method filters a field using the specified filter size and type. It creates a new folder to store the filtered data and grid files. If the folder already exists, it prompts the user for confirmation before overwriting the content. The chemical path and information file ('info.json') are copied to the new filtered folder. Each attribute of the field is filtered according to the specified filter size and type, and the resulting filtered sections are saved to files.
filter_size
(int): The size of the filter.
filter_type
(str, optional): The type of filter to use. Default is 'gauss'.
TypeError
: If filter_size is not an integer. If filter_type is not a string.
ValueError
: If filter_type is not one of the valid options.
str: Path of the filtered field folder.