journal article·2025-07Open access

3DDA: A Novel Python Toolkit to Analyze 3D‐Dynamic Contact Angles from Molecular Dynamics Simulations

Andrea Maslov, Manish K. Tiwari, David Seveno

Advanced Engineering Materials· Volume 27· Issue 13

Abstract

Obtaining fast and reliable contact angles in molecular dynamics simulations is crucial for screening surface wettability. Traditional methods rely on bidimensional density profile analysis to localize the liquid/vapor interface, which may not be optimal at the nanoscale, especially for nonsymmetrical droplets. Herein, 3DDA, a Python‐based code that uses the 3D droplet geometry to determine contact angles and analyze dynamic changes during spreading processes at the nanoscale, is presented. The 3D density profile of liquid molecules is enveloped using the Euclidean 3D convex hull algorithm to locate the contact line at the solid‐, liquid‐, and vapor‐phase boundaries. By fitting a general ellipsoidal function and optimizing it with the limited‐memory Broyden–Fletcher–Goldfarb–Shanno method, the best candidate function is analytically obtained, describing the interface. The angle derived from the ellipsoidal function and the solid boundary is used to gather a collection of contant angles, which are then fed into a kernel density estimator to determine the most probable angle along the contact line during the spreading process. This methodology is tested on systems such as liquid water and metals, demonstrating its efficacy and reliability. Herein, valuable insights are provided into the behavior of liquids, considering droplet asphericity induced by liquid/solid interactions.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Force Microscopy Techniques and Applications · Molecular Junctions and Nanostructures · Phase Equilibria and Thermodynamics

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Materials Engineering KU Leuven 3001 Leuven Belgium

Nanoengineered Systems Laboratory, Department of Mechanical Engineering University College London London WC1E 7JE UK

Wellcome/EPSRC Centre for Interventional and Surgical Sciences (WEISS) University College London London W1W 7TY UK

References (44)

Show source-provided references
1. 10.1021/cr400083y10.1021/cr400083y ↗
2. 10.1103/RevModPhys.81.73910.1103/RevModPhys.81.739 ↗
3. 10.1016/B978-1-933762-29-6.50007-710.1016/B978-1-933762-29-6.50007-7 ↗
4. 10.1016/j.mineng.2008.07.00910.1016/j.mineng.2008.07.009 ↗
5. 10.1038/s41598-018-24828-810.1038/s41598-018-24828-8 ↗
6. 10.1016/S0001-8686(98)00087-610.1016/S0001-8686(98)00087-6 ↗
7. Drelich J.W. · 2020 · 3
8. 10.1021/jp071957s10.1021/jp071957s ↗
9. 10.1016/j.cis.2020.10233910.1016/j.cis.2020.102339 ↗
10. 10.1007/s11661-015-2938-910.1007/s11661-015-2938-9 ↗
11. 10.1016/j.physrep.2019.01.00810.1016/j.physrep.2019.01.008 ↗
12. 10.1039/b501657f10.1039/b501657f ↗
13. 10.1146/annurev-fluid-011212-14073410.1146/annurev-fluid-011212-140734 ↗
14. 10.1016/j.surfrep.2014.09.00110.1016/j.surfrep.2014.09.001 ↗
15. 10.1016/j.jcis.2020.12.01310.1016/j.jcis.2020.12.013 ↗
16. 10.1103/PhysRev.182.30710.1103/PhysRev.182.307 ↗
17. 10.1016/j.coche.2019.03.01210.1016/j.coche.2019.03.012 ↗
18. 10.1021/acs.jpcc.8b0499310.1021/acs.jpcc.8b04993 ↗
19. 10.1002/marc.20080074610.1002/marc.200800746 ↗
20. 10.1063/1.496752110.1063/1.4967521 ↗
21. 10.1063/1.497849710.1063/1.4978497 ↗
22. 10.1021/acs.jcim.2c0040810.1021/acs.jcim.2c00408 ↗
23. 10.1007/s11440-021-01238-110.1007/s11440-021-01238-1 ↗
24. 10.1063/1.284194110.1063/1.2841941 ↗
25. Mokhtari A. · J. Mach. Learn. Res. · 2015 · 16 · 3151
26. R. J.Gowers M.Linke J.Barnoud T. J. E.Reddy M. N.Melo S. L.Seyler J.Domanski D. L.Dotson S.Buchoux I. M.Kenney O.Beckstein inProc. 15th Python Sci. Conf. 2019.
27. 10.1002/jcc.2178710.1002/jcc.21787 ↗
28. 10.1038/s41586-020-2649-210.1038/s41586-020-2649-2 ↗
29. 10.1038/s41592-019-0686-210.1038/s41592-019-0686-2 ↗
30. Pedregosa F. · J. Mach. Learn. Res. · 2011 · 12 · 2825
31. 10.1016/j.cpc.2021.10817110.1016/j.cpc.2021.108171 ↗
32. 10.1063/1.193166210.1063/1.1931662 ↗
33. 10.1063/1.500847810.1063/1.5008478 ↗
34. Vega C. · Faraday Discuss. · 2008 · 141 · 9
35. 10.1021/jp105975c10.1021/jp105975c ↗
36. 10.1021/cm500365c10.1021/cm500365c ↗
37. 10.1073/pnas.172226311510.1073/pnas.1722263115 ↗
38. 10.1063/5.005671810.1063/5.0056718 ↗
39. 10.1063/1.501918510.1063/1.5019185 ↗
40. 10.1039/D0NR05392A10.1039/D0NR05392A ↗
41. 10.1016/j.mtla.2023.10168610.1016/j.mtla.2023.101686 ↗
42. 10.1021/acs.jpcb.1c0281610.1021/acs.jpcb.1c02816 ↗
43. Plotly Technologies Inc. Collaborative Data Science Plotly Technologies Inc. Montreal QC2015 https://plot.ly.
44. 10.1088/0965-0393/18/1/01501210.1088/0965-0393/18/1/015012 ↗