NanoLanguage
NanoLanguage is a scripting interface built on top of the interpreted programming language Python, and is primarily intended for simulation of physical and chemical properties of nanoscale systems.[src]
NanoLanguage is a scripting interface built on top of the interpreted programming language Python, and is primarily intended for simulation of physical and chemical properties of nanoscale systems.[src] Define function for molecule setup def waterConfiguration(angle, bondLength): from math import sin, cos theta = angle.inUnitsOf(radians) positions = [ (0.0, 0.0, 0.0) * Angstrom, (1.0, 0.0, 0.0) * bondLength, (cos(theta), sin(theta), 0.0) * bondLength, ] elements = [Oxygen] + [Hydrogen] * 2 return MoleculeConfiguration(elements, positions) Choose DFT method with default arguments method = KohnShamMethod() Scan different bending angles and calculate the total energy for i in range(30, 181, 10): theta = i * degrees h2o = waterConfiguration(theta, 0.958 * Angstrom) scf = method.apply(h2o) print "Angle = ", theta, " Total Energy = ", calculateTotalEnergy(scf) ==See also== List of software for nanostructures modeling[src]
3 sentences · 3 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"NanoLanguage." encyclopegia.org, 2026, https://encyclopegia.org/wiki/nanolanguage. Accessed 29 November 2026.
Chicago
"NanoLanguage." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/nanolanguage.
APA
encyclopegia.org. (2026). NanoLanguage. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/nanolanguage
Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON