| 1 |
< |
/* |
| 1 |
> |
/* |
| 2 |
|
* Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. |
| 3 |
|
* |
| 4 |
|
* The University of Notre Dame grants you ("Licensee") a |
| 39 |
|
* such damages. |
| 40 |
|
*/ |
| 41 |
|
|
| 42 |
< |
/** |
| 43 |
< |
* @file Velocitizer.hpp |
| 44 |
< |
* @author tlin |
| 45 |
< |
* @date 11/14/2004 |
| 46 |
< |
* @time 13:25am |
| 47 |
< |
* @version 1.0 |
| 48 |
< |
*/ |
| 42 |
> |
/** |
| 43 |
> |
* @file Velocitizer.hpp |
| 44 |
> |
* @author tlin |
| 45 |
> |
* @date 11/14/2004 |
| 46 |
> |
* @time 13:25am |
| 47 |
> |
* @version 1.0 |
| 48 |
> |
*/ |
| 49 |
|
|
| 50 |
|
#ifndef INTEGRATORS_VELOCITIZER_HPP |
| 51 |
|
#define INTEGRATORS_VELOCITIZER_HPP |
| 52 |
|
#include "brains/SimInfo.hpp" |
| 53 |
< |
#include "math/ParallelRandNumGen.hpp" |
| 53 |
> |
#include "math/RandNumGen.hpp" |
| 54 |
|
|
| 55 |
|
namespace oopse { |
| 56 |
|
|
| 57 |
< |
/** |
| 58 |
< |
* @class Velocitizer Velocitizer.hpp "integratos/Velocitizer.hpp" |
| 59 |
< |
* @todo document |
| 60 |
< |
*/ |
| 61 |
< |
class Velocitizer { |
| 62 |
< |
public: |
| 63 |
< |
Velocitizer(SimInfo* info); |
| 64 |
< |
virtual ~Velocitizer(); |
| 57 |
> |
/** |
| 58 |
> |
* @class Velocitizer Velocitizer.hpp "integratos/Velocitizer.hpp" |
| 59 |
> |
* @todo document |
| 60 |
> |
*/ |
| 61 |
> |
class Velocitizer { |
| 62 |
> |
public: |
| 63 |
> |
Velocitizer(SimInfo* info); |
| 64 |
> |
virtual ~Velocitizer(); |
| 65 |
|
|
| 66 |
< |
void velocitize(double temperature); |
| 66 |
> |
void velocitize(RealType temperature); |
| 67 |
|
|
| 68 |
< |
void removeComDrift(); |
| 68 |
> |
void removeComDrift(); |
| 69 |
> |
/* |
| 70 |
> |
Removes center of mass angular momemtum |
| 71 |
> |
*/ |
| 72 |
> |
void removeAngularDrift(); |
| 73 |
|
|
| 74 |
< |
private: |
| 74 |
> |
private: |
| 75 |
|
|
| 76 |
< |
SimInfo* info_; |
| 76 |
> |
SimInfo* info_; |
| 77 |
|
|
| 78 |
< |
/**@todo random number generator should have same interface*/ |
| 75 |
< |
#ifndef IS_MPI |
| 76 |
< |
MTRand* randNumGen_; |
| 77 |
< |
#else |
| 78 |
< |
ParallelRandNumGen* randNumGen_; |
| 79 |
< |
#endif |
| 80 |
< |
}; |
| 78 |
> |
RandNumGen* randNumGen_; |
| 79 |
|
|
| 80 |
+ |
}; |
| 81 |
+ |
|
| 82 |
|
} |
| 83 |
|
#endif //INTEGRATORS_VELOCITIZER_HPP |