Changes in src/molecule_dynamics.cpp [a3fded:112b09]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/molecule_dynamics.cpp
ra3fded r112b09 5 5 * Author: heber 6 6 */ 7 8 #include "Helpers/MemDebug.hpp" 7 9 8 10 #include "World.hpp" … … 16 18 #include "parser.hpp" 17 19 #include "Plane.hpp" 18 #include "ThermoStatContainer.hpp"19 20 20 21 /************************************* Functions for class molecule *********************************/ … … 642 643 643 644 // calculate scale configuration 644 ScaleTempFactor = configuration.T hermostats->TargetTemp/ActualTemp;645 ScaleTempFactor = configuration.TargetTemp/ActualTemp; 645 646 646 647 // differentating between the various thermostats … … 650 651 break; 651 652 case Woodcock: 652 if ((configuration. Thermostats->ScaleTempStep > 0) && ((MDSteps-1) % configuration.Thermostats->ScaleTempStep == 0)) {653 if ((configuration.ScaleTempStep > 0) && ((MDSteps-1) % configuration.ScaleTempStep == 0)) { 653 654 DoLog(2) && (Log() << Verbose(2) << "Applying Woodcock thermostat..." << endl); 654 655 ActOnAllAtoms( &atom::Thermostat_Woodcock, sqrt(ScaleTempFactor), MDSteps, &ekin ); … … 683 684 delta_alpha = 0.; 684 685 ActOnAllAtoms( &atom::Thermostat_NoseHoover_init, MDSteps, &delta_alpha ); 685 delta_alpha = (delta_alpha - (3.*getAtomCount()+1.) * configuration.T hermostats->TargetTemp)/(configuration.Thermostats->HooverMass*Units2Electronmass);686 configuration. Thermostats->alpha += delta_alpha*configuration.Deltat;687 DoLog(3) && (Log() << Verbose(3) << "alpha = " << delta_alpha << " * " << configuration.Deltat << " = " << configuration. Thermostats->alpha << "." << endl);686 delta_alpha = (delta_alpha - (3.*getAtomCount()+1.) * configuration.TargetTemp)/(configuration.HooverMass*Units2Electronmass); 687 configuration.alpha += delta_alpha*configuration.Deltat; 688 DoLog(3) && (Log() << Verbose(3) << "alpha = " << delta_alpha << " * " << configuration.Deltat << " = " << configuration.alpha << "." << endl); 688 689 // apply updated alpha as additional force 689 690 ActOnAllAtoms( &atom::Thermostat_NoseHoover_scale, MDSteps, &ekin, &configuration );
Note:
See TracChangeset
for help on using the changeset viewer.