e01.org

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. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

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. 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

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"NanoLanguage". 1789331423. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1374748397

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·