This page has been setup to support the work presented in the poster: Lagrangian hairpins in atmospheric boundary layers. Please find the poster here: https://doi.org/10.1103/APS.DFD.2021.GFM.P0018. The GPU code developed will be added over time along with a documentation.
This version of the code features all functions as described in the poster. However, reading 2D and 3D data needs to be made more user-friendly. I will keep updating the code whenever I get time.
As of now, one can play with the parameters of a Bickley jet, time dependent and independent double gyre and ABC flow data. The code structure takes a module based approach where one or several modules can be activated. For instance, to run a Bickley jet example, one needs to set the following parameters:
_system = 'Bickley'
_integrationType = 'forward' # or 'backward'
_computeVelocity = False
_writeVelocityData = False
_advectParticles = True
_computeFTLE = True
Other parameters such as the start, end time and number of integration steps can be set within if _system == 'Bickley':.
Further parameters for the Bickley jet can be set in the file Dynamical_systems/Bickley.py for serial and multiprocessing modes. For GPU, navigate to GPU/Bickley_rk4.py.
If you'd like to have a visualization with python's matplotlib, the following needs to be set to True
_contourFTLE = True
Finally, the code can be run with 3 modes: Serial, CPU-parallelized with multiprocessing and GPU-parallelized with numba-cuda.
For CPU-parallelization, set _enableMultiProcessing = True and set _CPU = 'The number of CPUs you want'. For GPU-parallelization, set _enableGPU = True. Block dimensions and grid dimensions can be set within the code if necessary. The default mode is serial when both _enableMultiProcessing and _enableGPU are False.
Finally, the code feaures writing the result in either Tecplot ASCII, Amira ASCII or Amira binary formats. Support for RAW3D will be added soon.
Please cite my work if you'd like to use my code
BibTex
@article{harikrishnanp0018,
title={P0018: Lagrangian hairpins in atmospheric boundary layers},
author={Harikrishnan, Abhishek Paraswarar and Ernst, Natalia and Ansorge, Cedrick and Klein, Rupert and Vercauteren, Nikki},
publisher={APS}
}
APA
Harikrishnan, A. P., Ernst, N., Ansorge, C., Klein, R., & Vercauteren, N. P0018: Lagrangian hairpins in atmospheric boundary layers.