| 45 |
|
#include "brains/ForceManager.hpp" |
| 46 |
|
#include "primitives/Molecule.hpp" |
| 47 |
|
#include "math/SeqRandNumGen.hpp" |
| 48 |
+ |
#include "hydrodynamics/Shape.hpp" |
| 49 |
|
|
| 50 |
|
namespace oopse { |
| 51 |
+ |
|
| 52 |
+ |
struct SDShape{ |
| 53 |
+ |
StuntDouble* sd; |
| 54 |
+ |
Shape* shape; |
| 55 |
+ |
}; |
| 56 |
|
|
| 51 |
– |
|
| 57 |
|
struct HydroProp{ |
| 58 |
|
Vector3d cor; |
| 59 |
|
Mat3x3d Xirtt; |
| 78 |
|
|
| 79 |
|
private: |
| 80 |
|
std::map<std::string, HydroProp> parseFrictionFile(const std::string& filename); |
| 81 |
< |
void genRandomForceAndTorque(Vector3d& force, Vector3d& torque, unsigned int index, double variance); |
| 81 |
> |
void genRandomForceAndTorque(Vector3d& force, Vector3d& torque, unsigned int index, RealType variance); |
| 82 |
|
std::vector<HydroProp> hydroProps_; |
| 83 |
|
SeqRandNumGen randNumGen_; |
| 84 |
< |
double variance_; |
| 85 |
< |
double langevinBufferRadius_; |
| 86 |
< |
double frozenBufferRadius_; |
| 84 |
> |
RealType variance_; |
| 85 |
> |
RealType langevinBufferRadius_; |
| 86 |
> |
RealType frozenBufferRadius_; |
| 87 |
|
bool sphericalBoundaryConditions_; |
| 88 |
|
}; |
| 89 |
|
|