| 43 |
|
/* Calculates Rho(theta) */ |
| 44 |
|
|
| 45 |
|
#include <algorithm> |
| 46 |
< |
#include <fstream> |
| 46 |
> |
#include <fstream> |
| 47 |
|
#include "applications/staticProps/pAngle.hpp" |
| 48 |
|
#include "utils/simError.h" |
| 49 |
|
#include "io/DumpReader.hpp" |
| 50 |
|
#include "primitives/Molecule.hpp" |
| 51 |
+ |
#include "brains/Thermo.hpp" |
| 52 |
+ |
|
| 53 |
|
namespace OpenMD { |
| 54 |
|
|
| 55 |
|
pAngle::pAngle(SimInfo* info, const std::string& filename, |
| 76 |
|
Molecule::RigidBodyIterator rbIter; |
| 77 |
|
int i; |
| 78 |
|
|
| 79 |
+ |
Thermo thermo(info_); |
| 80 |
|
DumpReader reader(info_, dumpFilename_); |
| 81 |
|
int nFrames = reader.getNFrames(); |
| 82 |
|
nProcessed_ = nFrames/step_; |
| 97 |
|
} |
| 98 |
|
} |
| 99 |
|
|
| 100 |
< |
Vector3d CenterOfMass = info_->getCom(); |
| 100 |
> |
Vector3d CenterOfMass = thermo.getCom(); |
| 101 |
|
|
| 102 |
|
if (evaluator_.isDynamic()) { |
| 103 |
|
seleMan_.setSelectionSet(evaluator_.evaluate()); |