output.py¶
Create an output file for the detected vortices, with tecplot format
-
output.
create
(output_directory, args)¶ Create an output file
Parameters: - output_directory (str) – directory hosting the file vortices.dat
- args (class parser) – directory hosting the file vortices.dat
Returns: file with time, radius, gamma, xcenter, ycenter, u_advection, v_advection, correlation, vtheta
Return type: file
-
output.
write
(vortices, output_directory, time_step)¶ Update an output file
Parameters: - vortices (list) – list of the detected vortices
- output_directory (str) – directory hosting the file vortices.dat
- time_step (int) – time of the current velocity field
Returns: empty
Return type: empty
-
output.
write_field
(output_file, detection_method, vfield, detection_field)¶ Write a detection field file
Parameters: - output_file (str) – directory hosting the file vortices.dat
- detection_method (str) – writes the selected detection method (Q, Delta, swirling strength)
- vfield (ndarray) – full size velocity field
- detection_field (ndarray) – full size detection field
Returns: file
Return type: file