148 basic.
setName(
"MovingIntersectionOfWallsUnitTest_Basic");
149 movingReferenceFrame.
setName(
"MovingIntersectionOfWallsUnitTest_MovingReferenceFrame");
151 movingReferenceFrame.
solve();
152 compareParticles(movingReferenceFrame.
p1f,basic.
p1f, 1e-10, movingReferenceFrame.
velocity*movingReferenceFrame.
getTime(), movingReferenceFrame.
velocity, {0,0,0,0}, {0,0,0});
153 compareParticles(movingReferenceFrame.
p2f,basic.
p2f, 1e-10, movingReferenceFrame.
velocity*movingReferenceFrame.
getTime(), movingReferenceFrame.
velocity, {0,0,0,0}, {0,0,0});
154 compareParticles(movingReferenceFrame.
p3f,basic.
p3f, 1e-10, movingReferenceFrame.
velocity*movingReferenceFrame.
getTime(), movingReferenceFrame.
velocity, {0,0,0,0}, {0,0,0});
155 compareParticles(movingReferenceFrame.
p1e,basic.
p1e, 1e-10, movingReferenceFrame.
velocity*movingReferenceFrame.
getTime(), movingReferenceFrame.
velocity, {0,0,0,0}, {0,0,0});
156 compareParticles(movingReferenceFrame.
p2e,basic.
p2e, 1e-10, movingReferenceFrame.
velocity*movingReferenceFrame.
getTime(), movingReferenceFrame.
velocity, {0,0,0,0}, {0,0,0});
157 compareParticles(movingReferenceFrame.
p3e,basic.
p3e, 1e-10, movingReferenceFrame.
velocity*movingReferenceFrame.
getTime(), movingReferenceFrame.
velocity, {0,0,0,0}, {0,0,0});
void compareParticles(BaseParticle *Ptest, BaseParticle *Pref, double absError, Vec3D positionDifference, Vec3D velocityDifference, Quaternion orientationDifference, Vec3D AngularVelocityDifference)
Definition: MovingIntersectionOfWallsUnitTest.cpp:125
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:422
Mdouble getTime() const
Returns the current simulation time.
Definition: DPMBase.cc:808
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
Definition: MovingIntersectionOfWallsUnitTest.cpp:40
BaseParticle * p3e
Definition: MovingIntersectionOfWallsUnitTest.cpp:102
BaseParticle * p3f
Definition: MovingIntersectionOfWallsUnitTest.cpp:99
BaseParticle * p1f
Definition: MovingIntersectionOfWallsUnitTest.cpp:97
BaseParticle * p1e
Definition: MovingIntersectionOfWallsUnitTest.cpp:100
BaseParticle * p2f
Definition: MovingIntersectionOfWallsUnitTest.cpp:98
BaseParticle * p2e
Definition: MovingIntersectionOfWallsUnitTest.cpp:101
Definition: MovingIntersectionOfWallsUnitTest.cpp:111
Vec3D velocity
Definition: MovingIntersectionOfWallsUnitTest.cpp:123