Example #1
0
Vector LocalAverage::getCentralAtom(){
  addDerivativeOfCentralAtomPos( 0, Tensor::identity() ); 
  return getPositionOfCentralAtom(0); 
} 
Example #2
0
Vector NumberOfLinks::getCentralAtom(){
   addDerivativeOfCentralAtomPos( 0, 0.5*Tensor::identity() );
   addDerivativeOfCentralAtomPos( 1, 0.5*Tensor::identity() );
   return 0.5*( getPositionOfCentralAtom(0) + getPositionOfCentralAtom(1) );
}
Example #3
0
Vector OrientationSphere::getCentralAtom(){
   addDerivativeOfCentralAtomPos( 0, Tensor::identity() );
   return getPositionOfCentralAtom(0);
}