# Field3D.compute\_velocity\_module

[![badge](https://img.shields.io/badge/Source%20Code-06D40C?style=plastic)](https://github.com/LorenzoPiu/aPriori/blob/main/src/aPriori/DNS.py#L1397-L1435)

### **Field3D.**<mark style="color:red;">compute\_velocity\_module</mark>(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`, and `self.U_Z` are 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`.
