127 basic.
setName(
"MovingIntersectionOfWallsUnitTest_Basic");
128 movingReferenceFrame.
setName(
"MovingIntersectionOfWallsUnitTest_MovingReferenceFrame");
130 movingReferenceFrame.
solve();
131 compareParticles(movingReferenceFrame.
p1f,basic.
p1f, 1
e-10, movingReferenceFrame.
velocity*movingReferenceFrame.
getTime(), movingReferenceFrame.
velocity, {0,0,0,0}, {0,0,0});
132 compareParticles(movingReferenceFrame.
p2f,basic.
p2f, 1
e-10, movingReferenceFrame.
velocity*movingReferenceFrame.
getTime(), movingReferenceFrame.
velocity, {0,0,0,0}, {0,0,0});
133 compareParticles(movingReferenceFrame.
p3f,basic.
p3f, 1
e-10, movingReferenceFrame.
velocity*movingReferenceFrame.
getTime(), movingReferenceFrame.
velocity, {0,0,0,0}, {0,0,0});
134 compareParticles(movingReferenceFrame.
p1e,basic.
p1e, 1
e-10, movingReferenceFrame.
velocity*movingReferenceFrame.
getTime(), movingReferenceFrame.
velocity, {0,0,0,0}, {0,0,0});
135 compareParticles(movingReferenceFrame.
p2e,basic.
p2e, 1
e-10, movingReferenceFrame.
velocity*movingReferenceFrame.
getTime(), movingReferenceFrame.
velocity, {0,0,0,0}, {0,0,0});
136 compareParticles(movingReferenceFrame.
p3e,basic.
p3e, 1
e-10, movingReferenceFrame.
velocity*movingReferenceFrame.
getTime(), movingReferenceFrame.
velocity, {0,0,0,0}, {0,0,0});
Array< double, 1, 3 > e(1./3., 0.5, 2.)
void compareParticles(BaseParticle *Ptest, BaseParticle *Pref, double absError, Vec3D positionDifference, Vec3D velocityDifference, Quaternion orientationDifference, Vec3D AngularVelocityDifference)
Definition: MovingIntersectionOfWallsUnitTest.cpp:104
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:400
Mdouble getTime() const
Returns the current simulation time.
Definition: DPMBase.cc:799
void solve()
The work horse of the code.
Definition: DPMBase.cc:4334
Definition: MovingIntersectionOfWallsUnitTest.cpp:19
BaseParticle * p3e
Definition: MovingIntersectionOfWallsUnitTest.cpp:81
BaseParticle * p3f
Definition: MovingIntersectionOfWallsUnitTest.cpp:78
BaseParticle * p1f
Definition: MovingIntersectionOfWallsUnitTest.cpp:76
BaseParticle * p1e
Definition: MovingIntersectionOfWallsUnitTest.cpp:79
BaseParticle * p2f
Definition: MovingIntersectionOfWallsUnitTest.cpp:77
BaseParticle * p2e
Definition: MovingIntersectionOfWallsUnitTest.cpp:80
Definition: MovingIntersectionOfWallsUnitTest.cpp:90
Vec3D velocity
Definition: MovingIntersectionOfWallsUnitTest.cpp:102