Changeset 50d49d
- Timestamp:
- Feb 28, 2016, 5:59:42 PM (9 years ago)
- 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:
- b9d387
- Parents:
- 0824dd
- git-author:
- Frederik Heber <heber@…> (02/13/16 10:59:21)
- git-committer:
- Frederik Heber <heber@…> (02/28/16 17:59:42)
- Files:
-
- 7 edited
- 7 moved
Legend:
- Unmodified
- Added
- Removed
-
doc/userguide/userguide.xml
r0824dd r50d49d 1814 1814 <note>Again, only the <productname>TREMOLO</productname>potential format is understood currently and is written.</note> 1815 1815 </section> 1816 <section xml:id="potentials.fit-parti cle-charges">1817 <title xml:id="potentials.fit-parti cle-charges.title">Fittingparticle charges</title>1816 <section xml:id="potentials.fit-partial-charges"> 1817 <title xml:id="potentials.fit-partial-charges.title">Fitting partial particle charges</title> 1818 1818 <para>The above empirical potential just model the short-range 1819 1819 behavior in the molecular fragment, namely the (covalently) bonded interaction. … … 1829 1829 action as follows.</para> 1830 1830 <programlisting> 1831 ... --fit-parti cle-charges \1831 ... --fit-partial-charges \ 1832 1832 --fragment-charges 8 1 1 \ 1833 1833 --potential-file water.potentials \ -
src/Actions/GlobalListOfActions.hpp
r0824dd r50d49d 89 89 (MoleculeTranslate) \ 90 90 (MoleculeVerletIntegration) \ 91 (PotentialFitParti cleCharges) \91 (PotentialFitPartialCharges) \ 92 92 (PotentialParseHomologies) \ 93 93 (PotentialParsePotentials) \ -
src/Actions/Makefile.am
r0824dd r50d49d 374 374 375 375 POTENTIALACTIONSOURCE = \ 376 Actions/PotentialAction/FitParti cleChargesAction.cpp \376 Actions/PotentialAction/FitPartialChargesAction.cpp \ 377 377 Actions/PotentialAction/ParseHomologiesAction.cpp \ 378 378 Actions/PotentialAction/ParsePotentialsAction.cpp \ … … 380 380 Actions/PotentialAction/SavePotentialsAction.cpp 381 381 POTENTIALACTIONHEADER = \ 382 Actions/PotentialAction/FitParti cleChargesAction.hpp \382 Actions/PotentialAction/FitPartialChargesAction.hpp \ 383 383 Actions/PotentialAction/ParseHomologiesAction.hpp \ 384 384 Actions/PotentialAction/ParsePotentialsAction.hpp \ … … 386 386 Actions/PotentialAction/SavePotentialsAction.hpp 387 387 POTENTIALACTIONDEFS = \ 388 Actions/PotentialAction/FitParti cleChargesAction.def \388 Actions/PotentialAction/FitPartialChargesAction.def \ 389 389 Actions/PotentialAction/ParseHomologiesAction.def \ 390 390 Actions/PotentialAction/ParsePotentialsAction.def \ -
src/Actions/PotentialAction/FitPartialChargesAction.cpp
r0824dd r50d49d 22 22 23 23 /* 24 * FitParti cleChargesAction.cpp24 * FitPartialChargesAction.cpp 25 25 * 26 26 * Created on: Jul 03, 2013 … … 51 51 #include <string> 52 52 53 #include "Actions/PotentialAction/FitParti cleChargesAction.hpp"53 #include "Actions/PotentialAction/FitPartialChargesAction.hpp" 54 54 55 55 #include "Potentials/PartialNucleiChargeFitter.hpp" … … 67 67 68 68 // and construct the stuff 69 #include "FitParti cleChargesAction.def"69 #include "FitPartialChargesAction.def" 70 70 #include "Action_impl_pre.hpp" 71 71 /** =========== define the function ====================== */ … … 113 113 } 114 114 115 ActionState::ptr PotentialFitParti cleChargesAction::performCall() {115 ActionState::ptr PotentialFitPartialChargesAction::performCall() { 116 116 117 117 // fragment specifies the homology fragment to use … … 189 189 } 190 190 191 ActionState::ptr PotentialFitParti cleChargesAction::performUndo(ActionState::ptr _state) {191 ActionState::ptr PotentialFitPartialChargesAction::performUndo(ActionState::ptr _state) { 192 192 return Action::success; 193 193 } 194 194 195 ActionState::ptr PotentialFitParti cleChargesAction::performRedo(ActionState::ptr _state){195 ActionState::ptr PotentialFitPartialChargesAction::performRedo(ActionState::ptr _state){ 196 196 return Action::success; 197 197 } 198 198 199 bool PotentialFitParti cleChargesAction::canUndo() {199 bool PotentialFitPartialChargesAction::canUndo() { 200 200 return false; 201 201 } 202 202 203 bool PotentialFitParti cleChargesAction::shouldUndo() {203 bool PotentialFitPartialChargesAction::shouldUndo() { 204 204 return false; 205 205 } -
src/Actions/PotentialAction/FitPartialChargesAction.def
r0824dd r50d49d 1 1 /* 2 * FitParti cleChargesAction.def2 * FitPartialChargesAction.def 3 3 * 4 4 * Created on: Jul 03, 2013 … … 36 36 #define MENUNAME "potential" 37 37 #define MENUPOSITION 4 38 #define ACTIONNAME FitParti cleCharges39 #define TOKEN "fit-parti cle-charges"38 #define ACTIONNAME FitPartialCharges 39 #define TOKEN "fit-partial-charges" 40 40 41 41 42 42 // finally the information stored in the ActionTrait specialization 43 #define DESCRIPTION "fits partial nuclear charges to present particle types from lo ng-range fragmentation results"43 #define DESCRIPTION "fits partial nuclear charges to present particle types from loaded homologies containing sampled grids." 44 44 #undef SHORTFORM -
src/Actions/PotentialAction/FitPartialChargesAction.hpp
r0824dd r50d49d 1 1 /* 2 * FitParti cleChargesAction.hpp2 * FitPartialChargesAction.hpp 3 3 * 4 4 * Created on: Jul 03, 2013 … … 17 17 #include "Actions/Action.hpp" 18 18 19 #include "FitParti cleChargesAction.def"19 #include "FitPartialChargesAction.def" 20 20 #include "Action_impl_header.hpp" 21 21 -
tests/GuiChecks/Makefile.am
r0824dd r50d49d 150 150 $(srcdir)/./RandomNumbers/Distribution/testsuite-set-random-number-distribution.at \ 151 151 $(srcdir)/./Potential/testsuite-potential.at \ 152 $(srcdir)/./Potential/FitParti cleCharges/testsuite-potential-fit-particle-charges.at \152 $(srcdir)/./Potential/FitPartialCharges/testsuite-potential-fit-partial-charges.at \ 153 153 $(srcdir)/./Potential/FitPotential/testsuite-potential-fit-potential.at \ 154 154 $(srcdir)/./Bond/Add/testsuite-bond-add.at \ -
tests/GuiChecks/Potential/FitParticleCharges/testsuite-potential-fit-partial-charges.at
r0824dd r50d49d 22 22 23 23 AT_SETUP([Potential - Fit particle charges to water]) 24 AT_KEYWORDS([potential parse-homologies fit-parti cle-charges])25 AT_SKIP_IF([../../molecuilder --help fit-parti cle-charges; if test $? -eq 5; then /bin/true; else /bin/false; fi])24 AT_KEYWORDS([potential parse-homologies fit-partial-charges]) 25 AT_SKIP_IF([../../molecuilder --help fit-partial-charges; if test $? -eq 5; then /bin/true; else /bin/false; fi]) 26 26 27 27 # homology file created with water.pdb and as follows: 28 28 # molecuilder -i water.pdb --select-all-atoms --fragment-molecule --distance 2 --order 1 --fragment-automation --server-address 127.0.0.1 --server-port 1026 --DoLongrange 1 --grid 5 --store-grids 1 --analyse-fragment-results --save-homologies homology_grid.dat 29 29 file=homology_grid.dat 30 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Potential/FitParti cleCharges/pre/$file $file], 0)30 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Potential/FitPartialCharges/pre/$file $file], 0) 31 31 AT_CHECK([chmod u+w $file], 0, [ignore], [ignore]) 32 AT_CHECK([../../molecuilder --dry-run --parse-homologies $file --fit-parti cle-charges --potential-file water.particles --fragment-charges 8 1 1 --radius 1.5 --no-dry-run --store-session session-potential-fit-particle-charges.py --session-type python], 0, [stdout], [ignore])33 AT_CHECK([grep -v "Command.*DryRun" session-potential-fit-parti cle-charges.py >session-potential-fit-particle-charges_new.py], 0, [ignore], [ignore])34 AT_CHECK([../../molecuilderguitest session-potential-fit-parti cle-charges_new.py], 0, [stdout], [ignore])32 AT_CHECK([../../molecuilder --dry-run --parse-homologies $file --fit-partial-charges --potential-file water.particles --fragment-charges 8 1 1 --radius 1.5 --no-dry-run --store-session session-potential-fit-partial-charges.py --session-type python], 0, [stdout], [ignore]) 33 AT_CHECK([grep -v "Command.*DryRun" session-potential-fit-partial-charges.py >session-potential-fit-partial-charges_new.py], 0, [ignore], [ignore]) 34 AT_CHECK([../../molecuilderguitest session-potential-fit-partial-charges_new.py], 0, [stdout], [ignore]) 35 35 # check that L_2 error is below 1e-6 36 36 -
tests/GuiChecks/Potential/testsuite-potential.at
r0824dd r50d49d 23 23 24 24 # fitting particle charges to fragment results 25 m4_include([Potential/FitParti cleCharges/testsuite-potential-fit-particle-charges.at])25 m4_include([Potential/FitPartialCharges/testsuite-potential-fit-partial-charges.at]) -
tests/regression/Makefile.am
r0824dd r50d49d 183 183 $(srcdir)/Parser/Xyz/testsuite-parser-xyz-save.at \ 184 184 $(srcdir)/Potential/testsuite-potential.at \ 185 $(srcdir)/Potential/FitParti cleCharges/testsuite-potential-fit-particle-charges.at \185 $(srcdir)/Potential/FitPartialCharges/testsuite-potential-fit-partial-charges.at \ 186 186 $(srcdir)/Potential/FitPotential/testsuite-potential-fit-potential.at \ 187 187 $(srcdir)/RandomNumbers/testsuite-randomnumbers.at \ -
tests/regression/Potential/FitPartialCharges/testsuite-potential-fit-partial-charges.at
r0824dd r50d49d 16 16 # along with this program. If not, see <http://www.gnu.org/licenses/>. 17 17 # 18 ### fit parti cle charges18 ### fit partial particle charges 19 19 20 20 # the potential has been generated by: 21 21 # ./molecuilder -i pre/water.pdb --center-in-box "8,0,8,0,0,8" --select-all-atoms --fragment-molecule BondFragment --distance 2 --order 1 --fragment-automation --server-address 127.0.0.1 --server-port 1026 --DoLongrange 1 --grid 4 --DoPrintDebug 1 --DoValenceOnly 0 --analyse-fragment-results --store-grids 1 --save-homologies homology_grid_4_full.dat 22 22 23 AT_SETUP([Potential - Fit parti clecharges to water])24 AT_KEYWORDS([potential parse-homologies fit-parti cle-charges])25 AT_SKIP_IF([../../molecuilder --help fit-parti cle-charges; if test $? -eq 5; then /bin/true; else /bin/false; fi])23 AT_SETUP([Potential - Fit partial charges to water]) 24 AT_KEYWORDS([potential parse-homologies fit-partial-charges]) 25 AT_SKIP_IF([../../molecuilder --help fit-partial-charges; if test $? -eq 5; then /bin/true; else /bin/false; fi]) 26 26 27 27 # homology file created with water.pdb and as follows: 28 28 # molecuilder -i water.pdb --select-all-atoms --fragment-molecule --distance 2 --order 1 --fragment-automation --server-address 127.0.0.1 --server-port 1026 --DoLongrange 1 --grid 5 --store-grids 1 --analyse-fragment-results --save-homologies homology_grid.dat 29 29 file=homology_grid.dat 30 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Potential/FitParti cleCharges/pre/$file $file], 0)30 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Potential/FitPartialCharges/pre/$file $file], 0) 31 31 AT_CHECK([chmod u+w $file], 0, [ignore], [ignore]) 32 AT_CHECK([../../molecuilder --parse-homologies $file --fit-parti cle-charges --potential-file water.particles --fragment-charges 8 1 1 --radius 1.5], 0, [stdout], [ignore])32 AT_CHECK([../../molecuilder --parse-homologies $file --fit-partial-charges --fragment-charges 8 1 1 --radius 1.5], 0, [stdout], [ignore]) 33 33 # check that L_2 error is below 1e-6 34 34 AT_CHECK([grep "L2-Norm" stdout | awk '{if ($6 > 1e1) exit 1}'], 0, [ignore], [ignore]) -
tests/regression/Potential/testsuite-potential.at
r0824dd r50d49d 23 23 24 24 # fitting particle charges to fragment results 25 m4_include([Potential/FitParti cleCharges/testsuite-potential-fit-particle-charges.at])25 m4_include([Potential/FitPartialCharges/testsuite-potential-fit-partial-charges.at])
Note:
See TracChangeset
for help on using the changeset viewer.