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