Abstract
Lagrangian techniques are introduced to show how to calculate the internal motion of a convecting fluid in a box. Two types of flows are tested, (i) a rigid rotation of the space and (ii) a more complex thinning flow that stretches shapes. Emphasis is given to prevent the errors may appear and quickly build up when calculating the trajectory of the Lagrangian particles. Three projections from the grid to the particles are illustrated, based on a different weights. It is particularly illustrated how to implement these functions very efficiently in order to prevent lack of scalability and also use NumPy functions at their best. It is finally shown how to scale the projection up to a large number of particles and how to project back the field (Temperature, composition) from the particles to the mesh.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2018 Springer International Publishing AG
About this chapter
Cite this chapter
Morra, G. (2018). Lagrangian Transport. In: Pythonic Geodynamics. Lecture Notes in Earth System Sciences. Springer, Cham. https://doi.org/10.1007/978-3-319-55682-6_7
Download citation
DOI: https://doi.org/10.1007/978-3-319-55682-6_7
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-55680-2
Online ISBN: 978-3-319-55682-6
eBook Packages: Earth and Environmental ScienceEarth and Environmental Science (R0)