Package name.mjw.jamber.IO.AMBER

Examples of name.mjw.jamber.IO.AMBER.AtomType


          .getAtomByIndex(i).getZ());

      Attribute AtomTypeElement = new Attribute("element",
          chemicalElement);

      AtomType atomtype = parameterStore.getAtomByType(CurrentAtomType);
      Attribute AtomTypeMass = new Attribute("mass", atomtype.getMass()
          .toString());

      TypeElement.addAttribute(AtomTypeName);
      TypeElement.addAttribute(AtomTypeClass);
      TypeElement.addAttribute(AtomTypeElement);
View Full Code Here


          "charge", df.format(atom.getCharge()));

      AtomElement.addAttribute(NonbondedForceElementChargeAttribute);

      // Now look up the atomtype from the parm file
      AtomType atomType = parameterStore.getAtomByType(atom.getType());

      /*
       * Convert values; getVdwRadius is in the form of r_min and in
       * Angstroms, this needs to be converted to sigma and into nm.
       *
       * See section 14.6.1 of the theory OpenMM user's manual
       */
      Double sigma = (atomType.getVdwRadius() * 2 * ANGSTROM_TO_NANOMETER)
          / (Math.pow(2.0, (1.0 / 6)));

      df = new DecimalFormat("#.############");
      Attribute NonbondedForceElementSigmaAttribute = new Attribute(
          "sigma", df.format(sigma));

      // Convert values; epsilon is in kcal/mol, but should be in kJ
      Double epsilon = atomType.getVdwWellDepth() * KCAL_TO_KJOULES;

      df = new DecimalFormat("#.#######");
      Attribute NonbondedForceElementEpsilonAttribute = new Attribute(
          "epsilon", df.format(epsilon));

View Full Code Here

TOP

Related Classes of name.mjw.jamber.IO.AMBER.AtomType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.