Molmodel

NoseHooverThermostat.h

Go to the documentation of this file.
00001 #ifndef SimTK_MOLMODEL_NOSE_HOOVER_THERMOSTAT_H_
00002 #define SimTK_MOLMODEL_NOSE_HOOVER_THERMOSTAT_H_
00003 /* -------------------------------------------------------------------------- *
00004  *                      SimTK Core: SimTK Simbody(tm)                         *
00005  * -------------------------------------------------------------------------- *
00006  * This is part of the SimTK Core biosimulation toolkit originating from      *
00007  * Simbios, the NIH National Center for Physics-Based Simulation of           *
00008  * Biological Structures at Stanford, funded under the NIH Roadmap for        *
00009  * Medical Research, grant U54 GM072970. See https://simtk.org.               *
00010  *                                                                            *
00011  * Portions copyright (c) 2009 Stanford University and the Authors.           *
00012  * Authors: Christopher Bruns                                                 *
00013  * Contributors:                                                              *
00014  *                                                                            *
00015  * Permission is hereby granted, free of charge, to any person obtaining a    *
00016  * copy of this software and associated documentation files (the "Software"), *
00017  * to deal in the Software without restriction, including without limitation  *
00018  * the rights to use, copy, modify, merge, publish, distribute, sublicense,   *
00019  * and/or sell copies of the Software, and to permit persons to whom the      *
00020  * Software is furnished to do so, subject to the following conditions:       *
00021  *                                                                            *
00022  * The above copyright notice and this permission notice shall be included in *
00023  * all copies or substantial portions of the Software.                        *
00024  *                                                                            *
00025  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
00026  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   *
00027  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    *
00028  * THE AUTHORS, CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,    *
00029  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR      *
00030  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE  *
00031  * USE OR OTHER DEALINGS IN THE SOFTWARE.                                     *
00032  * -------------------------------------------------------------------------- */
00033 
00034 #include "SimTKsimbody.h"
00035 #include "molmodel/internal/common.h"
00036 #include "molmodel/internal/AtomSubsystem.h"
00037 #include "molmodel/internal/DuMMForceFieldSubsystem.h"
00038 
00039 namespace SimTK {
00040 
00041 class NoseHooverThermostat : public Force::Thermostat {
00042 public:
00043     NoseHooverThermostat(
00044                GeneralForceSubsystem&        forces, 
00045                const SimbodyMatterSubsystem& matter, 
00046                Real                          bathTemperature    = 293.15, 
00047                Real                          relaxationTime     = 1,
00048                int                           numExcludedDofs    = 6)
00049     :   Force::Thermostat(forces,matter,SimTK_BOLTZMANN_CONSTANT_MD,
00050                           bathTemperature, relaxationTime, numExcludedDofs) {}
00051 
00052 };
00053 
00054 } // namespace SimTK
00055 
00056 #endif // SimTK_MOLMODEL_NOSE_HOOVER_THERMOSTAT_H_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines