Abinit 6.8.1 In Parallel With OpenMPI 1.4.1 In Ubuntu 10.04.2 LTS (And Related)

It has been a banner week for Ubuntu installations.

The installation of Abinit 5.6.5 with OpenMPI 1.3.1 (previously reported at www.somewhereville.com/?p=384) wasn’t bad, but several games had to be played (at the time) to make everything compile and run correctly. I’m pleased to report that Abinit 6.8.1 and OpenMPI 1.4.1 seem to play better together, this simplified considerably over the previous installation guide by the use of the apt-get version of OpenMPI 1.4.1. A bit of option calling in the configure step is needed (and the errors for not doing it are included below).

0. For the Antsy Copy+Paste Crowd

Commands below.

Continue reading “Abinit 6.8.1 In Parallel With OpenMPI 1.4.1 In Ubuntu 10.04.2 LTS (And Related)”

Crystal06 (v.1.0.2) And MPICH-1.2.7p1 In Ubuntu Desktop 8.10 (and 9.04, 64- and 32-bit) Using The Intel Fortran Compiler, Version 1.0

Update 19 May 2009 – This tutorial (and all subsequent modifications) are now on a separate page on this website and will not be modified further in this post.  This page is available HERE.  The forever-name PDF version of the tutorial is available here: crystal06_mpich_ubuntu_cluster.pdf

Pre-19 May 2009 – This document, the end of a very long and involved process, is available as a PDF download (for reading and printing ease) here: crystal06_mpich_ubuntu_cluster_V1.pdf

Introduction

According the Crystal06 manual:

The CRYSTAL package performs ab initio calculations of the ground state energy, energy gradient, electronic wave function and properties of periodic systems. Hartree-Fock or Kohn-Sham Hamiltonians (that adopt an Exchange- Correlation potential following the postulates of Density-Functional theory) can be used. Systems periodic in 0 (molecules, 0D), 1 (polymers, 1D), 2 (slabs, 2D), and 3 dimensions (crystals, 3D) are treated on an equal footing. In each case the fundamental approximation made is the expansion of the single particle wave functions (‘Crystalline Orbital’, CO) as a linear combination of Bloch functions (BF) defined in terms of local functions (hereafter indicated as ‘Atomic Orbitals’, AOs).

Continue reading “Crystal06 (v.1.0.2) And MPICH-1.2.7p1 In Ubuntu Desktop 8.10 (and 9.04, 64- and 32-bit) Using The Intel Fortran Compiler, Version 1.0”

Building Parallel Abinit 5.6.x With OpenMPI 1.2.x (And NOT OpenMPI 1.3.x) From Sources In Ubuntu 8.x – iofn1.F90 Problem Solved

This post is an update to my previous post on building Abinit with OpenMPI in Ubuntu, with this post providing a workaround (solution?) to a run-benign but ultimately thoroughly aggravating issue with starting calculations in the abinip parallel build.

The description of the procedure, and the problem in the OpenMPI 1.3.x build, is as taken from the previous page (repeated so that the error makes its way and embeds itself a little deeper into the search engines).

To run parallel Abinit on a multi-processor box (that is, SMP.  The actual multi-node cluster setup is in progress), the command is SUPPOSED to be follows:

mpirun -np N /opt/etsf/abinit/5.6/bin/abinip < input.file >& output

Where N is the number of processors.  For mpirun, you need to specify the full path to the executable (which, for the build above, is as Abinit installs abinip when the build occurs in the /opt directory).  The input.file specification is as per the Abinit users manual so I won’t go into it here. You will also be asked to supply your password because I’ve done nothing to the setup of ssh (you are, in effect, logging into your machine to run the MPI calculation).

Continue reading “Building Parallel Abinit 5.6.x With OpenMPI 1.2.x (And NOT OpenMPI 1.3.x) From Sources In Ubuntu 8.x – iofn1.F90 Problem Solved”

Amber And Ubuntu Part 2. Amber10 (Parallel Execution) Installation In Ubuntu 8.10 (Intrepid Ibex) With OpenMPI 1.3… And Commentary

After considerable trial and building/testing errors, what follows is as simplified a complete installation and (non-X11/QM) testing of Amber10 and OpenMPI 1.3 as I think can be procedure’d in Ubuntu 8.10 (and likely previous and subsequent Ubuntu versions), dealing specifically with assorted issues with root permissions and variable definitions as per the standard procedure for Amber10 installation.

I’ll begin with the short procedure and bare minimum notes, then will address a multitude of specific problems that may (did) arise during all of the build procedures.  The purpose for listing everything, it is hoped, is to make these errors appear in google during searches so that, when you come/came across the errors, your search will have provided some amount of useful feedback (and, for a few of the problems I had with previous builds of other programs, this blog is the ONLY thing that comes up in google).

Continue reading “Amber And Ubuntu Part 2. Amber10 (Parallel Execution) Installation In Ubuntu 8.10 (Intrepid Ibex) With OpenMPI 1.3… And Commentary”

The Cryogenic Terahertz Spectrum Of (+)-Methamphetamine Hydrochloride And Assignment Using Solid-State Density Functional Theory

In press in the Journal of Physical Chemistry.  This paper on the low-frequency vibrational properties of methamphetamine marks a transitional point in the simulation of terahertz (THz) spectra by density functional theory (DFT), as both Crystal06 and Abinit provide the means to calculating infrared intensities in the solid-state by a more rigorous method than the difference-dipole method that has been used in the many previous THz papers with DMol3 (performed externally from the DMol3 program proper).  The original manuscript came back with two important comments from Reviewer 3 (that crazy Reviewer 3.  Is there nothing they’ll think of to critique?).

The best-fit spectral assignment by visual inspection (BOP/DNP level of theory) and by statistical analysis (BP/DNP level of theory) are shown below (the paper, of course, contains significantly more on this point).  With these two spectral simulations in mind, Reviewer 3 presented the following analysis that I think is certainly worth considering generally to anyone new to the computational chemistry game and even by general practitioners who might risk becoming complaisant in their favorite theoretical technique.  There’s a reason we refer to the collection of computational quantum chemical tools as the “approximate methods.”

I have difficulty with what appears to be a generalization of the applicability of using density functional for modeling THz spectra… It is disturbing that the different functionals will generate different numbers of modes within the spectral region, and it is hard to imagine how we should move forward with density functional for calculating spectra of this type.  In fact, it is true that one needs to include the “lattice” to get the spectra right in these regions, but it is not obvious that DFT will provide the level of rigor required to develop a predictive capability. Furthermore, given the “uncertainties regarding the number of modes”, is it possible that the mode assignments are invalid?

In my opinion, the authors point out the need for solid-state DFT, but should point out that in its current incarnation, that DFT is currently inadequate for quantitative comparison with experiment, and that more work needs to be done with the theory to make it quantitative.

The response to the reviewer about these points goes as such:

We agree completely with the reviewer’s criticism on these points of spectral reproduction, but we also believe that there should be a sharp separation between the capabilities of the DFT formalism and the capabilities of the many empirically-derived density functionals that currently make up the complement of “tools” within the DFT formalism.  Unlike the selection of basis set, which we often presume will improve agreement because of the improvement to the description of the electronic wavefunction that comes from additional functions, it is the case (specifically among the survey studies in THz simulations performed by the authors in this and previous publications) among the currently available GGA density functionals that the reproduction of the physical property under consideration is determined by the functional.  We also know that the reproduction of the lowest-energy solid-state vibrational features in molecular solids were NOT part of the initial complement of metrics used in gauging the accuracy of density functionals, so it is clear that we are performing survey calculations using available tools to determine which tools may be most reliably employed for performing THz assignments while not actively engaged in the development of new tools.  In the simulation of vibrational spectra, it is clear that we can never entirely trust the simulations until it is known unambiguously by experimentalists exactly what the motion associated with each vibrational mode is, which brings up the need for polarization experiments, Raman experiments to complement the mode assignments, etc.  Such rigorous detail for this region of the spectrum is very likely not known for a great many molecules of interest by the communities most interested in the benefits of THz spectroscopy.

In the meantime and in the absence of “complete datasets,” we agree with all of the reviewers (to a point either addressed directly or indirectly through questions along the same vein) that the best that a theoretical survey like the one presented here can do is aid in the generation of a functional consensus view, which is something that requires mode-by-mode analyses as mentioned by the reviewer.

Patrick M. Hakey, Damian G. Allis, Wayne Ouellette, and Timothy M. Korter

Department of Chemistry, Syracuse University, Syracuse, NY 13244-4100

Abstract: The cryogenic terahertz spectrum of (+)-methamphetamine hydrochloride from 10.0 – 100.0 cm-1 is presented, as is the complete structural analysis and vibrational assignment of the compound using solid-state density functional theory. This cryogenic investigation reveals multiple spectral features not previously reported in room-temperature terahertz studies of the title compound. Modeling of the compound employed eight density functionals utilizing both solid-state and isolated-molecule methods. The results clearly indicate the necessity of solid-state simulations for the accurate assignment of solid-state THz spectra. Assignment of the observed spectral features to specific atomic motions is based upon the BP density functional, which provided the best-fit solid-state simulation of the experimental spectrum. The seven experimental spectral features are the result of thirteen infrared-active vibrational modes predicted at a BP/DNP level of theory, with more than 90% of the total spectral intensity associated with external crystal vibrations.

pubs.acs.org/journal/jpcafh
en.wikipedia.org/wiki/Methamphetamine
en.wikipedia.org/wiki/Time_domain_terahertz_spectroscopy
en.wikipedia.org/wiki/Density_functional_theory
www.physics.ohio-state.edu/~aulbur/dft.html
www.crystal.unito.it
www.abinit.org
www.somewhereville.com/?cat=8
accelrys.com/products/materials-studio/modules/dmol3.html
link.aip.org/link/?JCPSA6/110/10664/1
link.aps.org/doi/10.1103/PhysRevA.38.3098
en.wikipedia.org/wiki/Computational_chemistry
chemistry.syr.edu

Building Abinit 5.6.5 (And Other Versions) And OpenMPI 1.3 (And Others) From Sources In Ubuntu 8.10 (Intrepid Ibex)

NOTE 25 March 2009: The problem with Open-MPI and Abinit is related to the version of Open-MPI.  1.3.x is used below, while 1.2.x allows you to use the .files for running batch-based Abinit calculations.  See www.somewhereville.com/?p=590 for additional notes.

The purpose of the HPLIP fix reported in a previous post was to install Abinit in Ubuntu via apt-get in order to employ the procedure used by Hooper et al in Chemical Physics Letters to calculate infrared intensities in the low-frequency region for solid-state terahertz (THz) assignments (phew!).  The problem is that the apt-get install of Abinit is an older and serial (non-parallel) version.  Further compounding the problem, the OpenMPI version one can install via apt-get (sudo apt-get install openmpi-bin) does not have F90 (Fortran 90) support, so one cannot simply install OpenMPI, install one of the pre-compiled versions of Abinit, and start using those other processors either on the board or plugged into a gigabit switch.

Continue reading “Building Abinit 5.6.5 (And Other Versions) And OpenMPI 1.3 (And Others) From Sources In Ubuntu 8.10 (Intrepid Ibex)”