Package org.jmol.quantum
Class NMRCalculation
java.lang.Object
org.jmol.quantum.NMRCalculation
- All Implemented Interfaces:
JmolNMRInterface
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double[]calc2or3JorNOE(Viewer viewer, Atom[] atoms, String CHEquation, int mode) Calculate a 2-bond (geminal) or 3-bond (vicinal) coupling constant or an NOE;static doublestatic doublecalcJKarplus(double theta) static double[]static intgetCalcType(Atom[] atoms, String[] elementsToFill, int mode) floatgetChemicalShift(Atom atom) If shift reference has not been set, it defaults to 0 and just displays the negative of magnetic shieldingfloatgetDipolarConstantHz(Atom a1, Atom a2) floatgetDipolarCouplingHz(Atom a1, Atom a2, V3 vField) floatgetIsoOrAnisoHz(boolean isIso, Atom a1, Atom a2, String units, Tensor isc) If t is null, then a1, a2, and type are used to find the appropriate tensor.floatgetJCouplingHz(Atom a1, Atom a2, String type, Tensor isc) floatgetMagneticShielding(Atom atom) double[]getNOEorJHH(Atom[] atoms, int mode) floatQuadrupolar constant, directly proportional to Vzz and dependent on the quadrupolar moment of the isotope consideredbooleangetTensorInfo(String tensorType, String infoType, BS bs) getUniqueTensorSet(BS bsAtoms) An attempt to find unique atoms using tensors.booleansetChemicalShiftReference(String element, float value)
-
Field Details
-
MODE_CALC_INVALID
public static final int MODE_CALC_INVALID- See Also:
-
MODE_CALC_2JHH
public static final int MODE_CALC_2JHH- See Also:
-
MODE_CALC_3JHH
public static final int MODE_CALC_3JHH- See Also:
-
MODE_CALC_JHH
public static final int MODE_CALC_JHH- See Also:
-
MODE_CALC_3JCH
public static final int MODE_CALC_3JCH- See Also:
-
MODE_CALC_J
public static final int MODE_CALC_J- See Also:
-
MODE_CALC_NOE
public static final int MODE_CALC_NOE- See Also:
-
MODE_CALC_ALL
public static final int MODE_CALC_ALL- See Also:
-
JCH3_NONE
- See Also:
-
JCH3_WASYLISHEN_SCHAEFER
- See Also:
-
JCH3_TVAROSKA_TARAVEL
- See Also:
-
JCH3_AYDIN_GUETHER
- See Also:
-
-
Constructor Details
-
NMRCalculation
public NMRCalculation()
-
-
Method Details
-
setViewer
- Specified by:
setViewerin interfaceJmolNMRInterface
-
getQuadrupolarConstant
Description copied from interface:JmolNMRInterfaceQuadrupolar constant, directly proportional to Vzz and dependent on the quadrupolar moment of the isotope considered- Specified by:
getQuadrupolarConstantin interfaceJmolNMRInterface- Parameters:
efg-- Returns:
- float value
-
getUniqueTensorSet
Description copied from interface:JmolNMRInterfaceAn attempt to find unique atoms using tensors.- Specified by:
getUniqueTensorSetin interfaceJmolNMRInterface- Parameters:
bsAtoms-- Returns:
- bitset of atoms
-
getJCouplingHz
-
getIsoOrAnisoHz
Description copied from interface:JmolNMRInterfaceIf t is null, then a1, a2, and type are used to find the appropriate tensor.- Specified by:
getIsoOrAnisoHzin interfaceJmolNMRInterface- Parameters:
isIso-a1-a2-units-isc-- Returns:
- 0 if not found
-
getDipolarConstantHz
- Specified by:
getDipolarConstantHzin interfaceJmolNMRInterface- Parameters:
a1-a2-- Returns:
- desired constant
-
getDipolarCouplingHz
- Specified by:
getDipolarCouplingHzin interfaceJmolNMRInterface- Parameters:
a1-a2-vField-- Returns:
- projected value
-
getInfo
- Specified by:
getInfoin interfaceJmolNMRInterface- Parameters:
what- "C" or "14C" or "all"- Returns:
- list of double[isotopeNumber,g,Q] if no isotope number is given, or a single double[] if it does.
-
getChemicalShift
Description copied from interface:JmolNMRInterfaceIf shift reference has not been set, it defaults to 0 and just displays the negative of magnetic shielding- Specified by:
getChemicalShiftin interfaceJmolNMRInterface- Parameters:
atom-- Returns:
- value
-
getMagneticShielding
- Specified by:
getMagneticShieldingin interfaceJmolNMRInterface
-
getState
- Specified by:
getStatein interfaceJmolNMRInterface
-
setChemicalShiftReference
- Specified by:
setChemicalShiftReferencein interfaceJmolNMRInterface
-
getTensorInfo
- Specified by:
getTensorInfoin interfaceJmolNMRInterface
-
getMinDistances
- Specified by:
getMinDistancesin interfaceJmolNMRInterface
-
calcJKarplus
public static double calcJKarplus(double theta) -
calc3JCH
- Parameters:
CHequation- 'was' Simple equation for 3JCH, from Wasylishen and Schaefer Can J Chem (1973) 51 961 used in Kozerski et al. J Chem Soc Perkin 2, (1997) 1811 'tva' Tvaroska and Taravel Adv. Carbohydrate Chem. Biochem. (1995) 51, 15-61 'ayd' Aydin and Guether Mag. Res. Chem. (1990) 28, 448-457theta- dihedralis23Double-- Returns:
- 3JCH prediction
-
calcNOE
-
calc2or3JorNOE
Calculate a 2-bond (geminal) or 3-bond (vicinal) coupling constant or an NOE;- Parameters:
viewer-atoms- required Atom[4]; can be just two atoms, then in atom[0] and atom[4]CHEquation- 'none' or 'was' or 'tva' or 'ayd'mode-- Returns:
- [theta, jvalue, atom2.i, atom3.i] for 3JHH; [theta, jvalue, center.i] for 2JHH; [distance, noe] for NOE
-
getCalcType
-
getNOEorJHH
- Specified by:
getNOEorJHHin interfaceJmolNMRInterface
-