| 55 |
|
#include "selection/SelectionManager.hpp" |
| 56 |
|
#include <iostream> |
| 57 |
|
|
| 58 |
+ |
using namespace std; |
| 59 |
|
namespace OpenMD { |
| 60 |
|
|
| 61 |
|
/** |
| 70 |
|
void doRNEMD(); |
| 71 |
|
void doSwap(); |
| 72 |
|
void doScale(); |
| 73 |
+ |
void doShiftScale(); |
| 74 |
|
void collectData(); |
| 75 |
|
void getStarted(); |
| 76 |
|
void getStatus(); |
| 78 |
|
exchangeTime_ = exchangeTime; |
| 79 |
|
} |
| 80 |
|
void set_RNEMD_nBins(int nbins) { nBins_ = nbins; } |
| 81 |
< |
RealType get_RNEMD_exchange_total() { return exchangeSum_; } |
| 81 |
> |
void set_RNEMD_logWidth(int logWidth) { rnemdLogWidth_ = logWidth; } |
| 82 |
|
void set_RNEMD_exchange_total(RealType et) { exchangeSum_ = et; } |
| 83 |
|
void set_RNEMD_target_flux(RealType targetFlux) {targetFlux_ = targetFlux;} |
| 84 |
+ |
void set_RNEMD_target_JzKE(RealType targetJzKE) {targetJzKE_ = targetJzKE;} |
| 85 |
+ |
void set_RNEMD_target_jzpx(RealType targetJzpx) {targetJzpx_ = targetJzpx;} |
| 86 |
+ |
void set_RNEMD_target_jzpy(RealType targetJzpy) {targetJzpy_ = targetJzpy;} |
| 87 |
+ |
void set_RNEMD_target_jzpz(RealType targetJzpz) {targetJzpz_ = targetJzpz;} |
| 88 |
+ |
RealType get_RNEMD_exchange_total() { return exchangeSum_; } |
| 89 |
|
|
| 90 |
|
private: |
| 91 |
|
|
| 92 |
|
enum RNEMDTypeEnum { |
| 93 |
|
rnemdKineticSwap, |
| 94 |
|
rnemdKineticScale, |
| 95 |
+ |
rnemdKineticScaleVAM, |
| 96 |
+ |
rnemdKineticScaleAM, |
| 97 |
|
rnemdPxScale, |
| 98 |
|
rnemdPyScale, |
| 99 |
|
rnemdPzScale, |
| 100 |
|
rnemdPx, |
| 101 |
|
rnemdPy, |
| 102 |
|
rnemdPz, |
| 103 |
+ |
rnemdShiftScaleV, |
| 104 |
+ |
rnemdShiftScaleVAM, |
| 105 |
|
rnemdUnknown |
| 106 |
|
}; |
| 107 |
|
|
| 108 |
|
SimInfo* info_; |
| 109 |
|
RandNumGen* randNumGen_; |
| 110 |
< |
std::map<std::string, RNEMDTypeEnum> stringToEnumMap_; |
| 110 |
> |
map<string, RNEMDTypeEnum> stringToEnumMap_; |
| 111 |
|
RNEMDTypeEnum rnemdType_; |
| 112 |
< |
std::string rnemdObjectSelection_; |
| 112 |
> |
string rnemdObjectSelection_; |
| 113 |
|
SelectionEvaluator evaluator_; |
| 114 |
|
SelectionManager seleMan_; |
| 115 |
|
bool usePeriodicBoundaryConditions_; |
| 116 |
< |
int nBins_; |
| 116 |
> |
bool outputTemp_; |
| 117 |
> |
bool outputVx_; |
| 118 |
> |
bool outputVy_; |
| 119 |
> |
bool output3DTemp_; |
| 120 |
> |
bool outputRotTemp_; |
| 121 |
> |
int nBins_; /**< The number of bins to divide the simulation box into. */ |
| 122 |
> |
/*! |
| 123 |
> |
The middle bin for the RNEMD method. midBin_ = nBins_/2; |
| 124 |
> |
Depending on the setting of the flux, this box should contain the minimum energy (temperature) |
| 125 |
> |
within the simulation. |
| 126 |
> |
*/ |
| 127 |
|
int midBin_; |
| 128 |
< |
int rnemdLogWidth_; |
| 128 |
> |
int rnemdLogWidth_; /**< Number of elements to print out in logs */ |
| 129 |
> |
RealType zShift_; |
| 130 |
|
RealType exchangeTime_; |
| 131 |
|
RealType targetFlux_; |
| 132 |
+ |
RealType targetJzKE_; |
| 133 |
+ |
RealType targetJzpx_; |
| 134 |
+ |
RealType targetJzpy_; |
| 135 |
+ |
RealType targetJzpz_; |
| 136 |
+ |
Vector3d jzp_, njzp_; |
| 137 |
|
RealType exchangeSum_; |
| 138 |
|
int failTrialCount_; |
| 139 |
|
int failRootCount_; |
| 140 |
< |
std::ofstream rnemdLog_; |
| 140 |
> |
ofstream tempLog_, vxzLog_, vyzLog_; |
| 141 |
> |
ofstream xTempLog_, yTempLog_, zTempLog_, rotTempLog_; |
| 142 |
|
// keeps track of what's being averaged |
| 143 |
< |
std::vector<RealType> valueHist_; |
| 144 |
< |
std::vector<int> valueCount_; |
| 143 |
> |
vector<RealType> tempHist_, pxzHist_, pyzHist_, mHist_; |
| 144 |
> |
vector<RealType> xTempHist_, yTempHist_, zTempHist_, rotTempHist_; |
| 145 |
|
// keeps track of the number of degrees of freedom being averaged |
| 146 |
< |
std::vector<RealType> xTempHist_, yTempHist_, zTempHist_; |
| 147 |
< |
std::ofstream xTempLog_, yTempLog_, zTempLog_; |
| 146 |
> |
//vector<int> pxzCount_, pyzCount_; |
| 147 |
> |
vector<int> tempCount_, xyzTempCount_, rotTempCount_; |
| 148 |
|
}; |
| 149 |
|
|
| 150 |
|
} |