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/Fragmentation/Summation/Containers/FragmentationLongRangeResults.cpp

    r3fb9ab ra8961d  
    121121        Result_perIndexSet_Grid);
    122122
    123     // multiply each short-range potential with the respective charge
     123    // multiply each short-range e-e potential with the respective charge
    124124    std::map<JobId_t,MPQCData>::const_iterator mpqciter = fragmentData.begin();
    125125    std::map<JobId_t,VMGData>::iterator vmgiter = longrangeData.begin();
     
    214214#endif
    215215
    216       // then, we obtain the e-n+n-n full solution in the same way
     216      // then, we obtain the n-n full solution directly
    217217      double nuclei_solution_energy = fullsolutionData[level-1].nuclei_long;
    218218      double nuclei_short_range_energy =
     
    229229      electron_solution_energy *= .5;
    230230      electron_short_range_energy *= .5;
    231 
    232       // At last, we subtract e-n from n-n+e-n for full solution and short-range
    233       // correction.
    234       nuclei_solution_energy -= both_solution_energy;
    235       nuclei_short_range_energy -= both_short_range_energy;
    236231
    237232      VMGDataLongRangeMap_t instance;
Note: See TracChangeset for help on using the changeset viewer.