Ignore:
Timestamp:
Oct 11, 2015, 7:11:15 AM (9 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
ce9874
Parents:
057c8a
git-author:
Frederik Heber <heber@…> (03/20/14 17:31:42)
git-committer:
Frederik Heber <heber@…> (10/11/15 07:11:15)
Message:

Added new SetValues FragmentForces.

  • struct is particle_forces used in fusion maps and vectors.
Location:
src/Fragmentation/Summation/Containers
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/Fragmentation/Summation/Containers/VMGData.cpp

    r057c8a rd200ae  
    5454  ost << "Nuclei long-Range energy: " << data.nuclei_long << std::endl;
    5555  ost << "Electron long-Range energy: " << data.electron_long << std::endl;
     56  ost << "Nuclei long-Range forces: " << data.particle_forces << std::endl;
    5657  return ost;
    5758}
  • src/Fragmentation/Summation/Containers/VMGData.hpp

    r057c8a rd200ae  
    2222#include <vector>
    2323
     24#include "Fragmentation/Summation/SetValues/FragmentForces.hpp"
    2425#include "Fragmentation/Summation/SetValues/SamplingGrid.hpp"
    2526
     
    4849  //!> electron long-range contribution to energy
    4950  double electron_long;
     51  //!> force vectors of all nuclei
     52  FragmentForces particle_forces;
    5053
    5154private:
     
    6164      ar & nuclei_long;
    6265    ar & electron_long;
     66    if (version > 2)
     67      ar & particle_forces;
    6368  }
    6469};
    6570
    66 BOOST_CLASS_VERSION(VMGData, 2)
     71BOOST_CLASS_VERSION(VMGData, 3)
    6772
    6873std::ostream & operator<<(std::ostream &ost, const VMGData &data);
  • src/Fragmentation/Summation/Containers/VMGDataFused.hpp

    r057c8a rd200ae  
    2929  struct nuclei_long {};
    3030  struct electron_long {};
     31  // keys for forces
     32  struct particle_forces {};
    3133
    3234  // keys for longrange
    33 
    3435  struct electron_longrange {};
    3536  struct electron_shortrange {};
     
    4041  struct total_longrange {};
    4142  struct total_shortrange {};
     43
    4244}
    4345
  • src/Fragmentation/Summation/Containers/VMGDataMap.hpp

    r057c8a rd200ae  
    1818#include <boost/mpl/list.hpp>
    1919
     20#include <vector>
     21
    2022#include "Fragmentation/Summation/Containers/VMGDataFused.hpp"
    2123
    2224class SamplingGrid;
     25class IndexedVectors;
    2326
    2427/** This boost::fusion map defines key-value or rather key-type pairs with
     
    3336    boost::fusion::pair<VMGDataFused::both_sampled_potential, SamplingGrid >,
    3437    boost::fusion::pair<VMGDataFused::nuclei_long, double >,
    35     boost::fusion::pair<VMGDataFused::electron_long, double >
     38    boost::fusion::pair<VMGDataFused::electron_long, double >,
     39    boost::fusion::pair<VMGDataFused::particle_forces, IndexedVectors >
    3640> VMGDataMap_t;
    3741
     
    4044    VMGDataFused::both_sampled_potential,
    4145    VMGDataFused::nuclei_long,
    42     VMGDataFused::electron_long
     46    VMGDataFused::electron_long,
     47        VMGDataFused::particle_forces
    4348> VMGDataVector_t;
    4449
  • src/Fragmentation/Summation/Containers/VMGData_printKeyNames.hpp

    r057c8a rd200ae  
    3838  (nuclei_long) \
    3939  (electron_long) \
     40  (particle_forces) \
    4041  (electron_longrange) \
    4142  (electron_shortrange) \
Note: See TracChangeset for help on using the changeset viewer.