Ignore:
Timestamp:
Jul 24, 2008, 2:00:19 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
747b10
Parents:
b3eb8e
Message:

BIG change: Hcorrection included and bugfix of analyzer (wrt forces)

  • Hcorrection is supplied via molecuilder which gives correction values if hydrogen atoms are to close and thus already feel each other's influence. This correction energy matrix is also parsed ans subtracted from the approximated energy matrix generated from the fragments. This impacts both on joiner, analyzer and molecuilder
  • Forces were not working which had multiple causes:
    • first, we stepped back down to absolute errors which rather gives a feel about convergence (1e-6 is simply small and neglegible)
    • there may have been bugs where (either in Force or in ForceFragments) adding up took place, this is cleaned up
    • more routines have been abstracted from analyzer into datacreator functions
      • the order of ions had changed, re-run with current molecuilder, calculation and subsequent joining/analyzing brought correct results finally
  • plots were bad still due to wrong axes (two more functions finding max/min values), use of wrong columns in plot file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/parser.hpp

    rb3eb8e rdb3ea3  
    1919
    2020#define EnergySuffix ".energy.all"
     21#define HcorrectionSuffix ".Hcorrection.all"
    2122#define ForcesSuffix ".forces.all"
    2223#define ShieldingSuffix ".sigma_all.csv"
     
    2627#define TimeSuffix ".speed"
    2728#define EnergyFragmentSuffix ".energyfragment.all"
     29#define HcorrectionFragmentSuffix ".Hcorrectionfragment.all"
    2830#define ForceFragmentSuffix ".forcefragment.all"
    2931#define OrderSuffix ".Order"
     
    5254  bool AllocateMatrix(char *GivenHeader, int MCounter, int *RCounter, int CCounter);
    5355  bool ResetMatrix();
     56  double FindMinValue();
     57  double FindMaxValue();
    5458  bool SetLastMatrix(double value, int skipcolumns);
    5559  bool SetLastMatrix(double **values, int skipcolumns);
     
    6670  public:
    6771    bool ParseIndices();
    68     bool SumSubEnergy(class EnergyMatrix &Fragments, class KeySetsContainer &KeySet, int Order);
     72    bool SumSubEnergy(class EnergyMatrix &Fragments, class EnergyMatrix *CorrectionFragments, class KeySetsContainer &KeySet, int Order, double sign);
    6973};
    7074
     
    7478  public:
    7579    bool ParseIndices(char *name);
    76     bool SumSubForces(class ForceMatrix &Fragments, class KeySetsContainer &KeySet, int Order);
     80    bool SumSubForces(class ForceMatrix &Fragments, class KeySetsContainer &KeySet, int Order, double sign);
    7781};
    7882
Note: See TracChangeset for help on using the changeset viewer.