Ignore:
Timestamp:
Jun 21, 2017, 8:01:27 AM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
IndependentFragmentGrids_Sole_NN_Calculation
Parents:
3fb9ab
git-author:
Frederik Heber <heber@…> (08/19/16 05:27:39)
git-committer:
Frederik Heber <frederik.heber@…> (06/21/17 08:01:27)
Message:

Fixing long-range energy calculations and contribution summation.

  • we now calculate e-e+e-n and n-n separately. From the sampled_potential we recover e-e, and vmg delivers e-n. The second calculation yields n-n.
  • we need to sum forces from electronic contribution and from second run with nuclei contribution.
  • we need to sum the potentials for later fitting partial charges.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Jobs/InterfaceVMGJob.cpp

    r3fb9ab ra8961d  
    116116
    117117  Grid& grid = multigrid(multigrid.MaxLevel());
    118   grid.Clear();
    119   //grid.ClearBoundary(); // we don't have a boundary under periodic boundary conditions
     118//  grid.Clear();
     119//  grid.ClearBoundary(); // we don't have a boundary under periodic boundary conditions
    120120
    121121  // print debugging info on grid size
     
    393393  comm.PrintOnce(Debug, "E_total*:       %e", e_long + e_short_peak + e_short_spline - e_self);
    394394
    395   returndata.nuclei_long = e_long;
    396   returndata.electron_long = e_long;
     395  returndata.nuclei_long = e;   // nuclei needs self-energy subtracted, ...
     396  returndata.electron_long = e_long;  // charge grid gets only long-range interaction
    397397
    398398  // calculate residual
Note: See TracChangeset for help on using the changeset viewer.