energy
Class Energy_Dihedral

java.lang.Object
  extended byenergy.Energy
      extended byenergy.Energy_Dihedral
All Implemented Interfaces:
InteractionsEnergy, java.lang.Runnable

public class Energy_Dihedral
extends Energy
implements java.lang.Runnable, InteractionsEnergy


Field Summary
private  Dihedrals dih
           
private  Dihedrals dihh
           
private  double vdih
           
 
Fields inherited from class energy.Energy
atoms, DIM, interactionsEnergy, size, sys
 
Constructor Summary
Energy_Dihedral(Particles atoms, SimSystem sys)
          The Energy_Dihedral class constructor.
 
Method Summary
(package private)  double Calc_COSPHI(double cosphi, int m)
           
protected  double calc(Dihedrals dihedrals)
          protected void Method calc evaluates the dihedral force as (GROMOS96 manual pages II-25ff):
 void run()
          public void Method run calls protected void Method calc.
 
Methods inherited from class energy.Energy
calcEnergy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dihh

private final Dihedrals dihh

dih

private final Dihedrals dih

vdih

private double vdih
Constructor Detail

Energy_Dihedral

public Energy_Dihedral(Particles atoms,
                       SimSystem sys)
The Energy_Dihedral class constructor.

Method Detail

run

public void run()
public void Method run calls protected void Method calc. It also serves as the interface for the thread start.

Specified by:
run in interface java.lang.Runnable

calc

protected double calc(Dihedrals dihedrals)
protected void Method calc evaluates the dihedral force as (GROMOS96 manual pages II-25ff):


Calc_COSPHI

final double Calc_COSPHI(double cosphi,
                         int m)