Field3D.compute_velocity_module
Field3D.compute_velocity_module(self):
Description
Computes the velocity module and saves it to a file.
This method calculates the velocity module by squaring the values of U_X, U_Y, and U_Z, summing them up, and then taking the square root of the result. The computed velocity module is then saved to a file using the save_file function. The file path is determined by the find_path method with 'U' as the argument. After saving the file, the update method is called to refresh the attributes of the class.
Note
self.U_X,self.U_Y, andself.U_Zare assumed to be attributes of the class representing components of velocity. Make sure to check you have the relative files in your data folder. To check, use the method<your_field_name>.print_attributes.
Last updated