46 logger(
INFO,
"This unit test checks that liquid bridge migration is not affected by the slight inaccuracy created "
47 "by having ghost particles. A pair of particles is created that touches right at the periodic boundary.");
55 dpm.
setName(
"LiquidMigrationPeriodicBoundaryInteraction");
68 s.setCollisionTimeAndRestitutionCoefficient(50*dpm.
getTimeStep(), .9, 1);
69 s.setLiquidBridgeVolumeMax(1.1);
76 b.set({1,0,0},-.5,4.5);
85 p.setLiquidVolume(.5);
87 p.setPosition({4,0,0});
91 p.setPosition({2*
pow(2,-52),0,0});
101 "Liquid Volume not conserved (%!=%)", dpm.
getLiquidVolume(), initialLiquidVolume);
108 p->setPosition({3,0,0});
119 "Liquid Volume not conserved (%!=%)", dpm.
getLiquidVolume(), initialLiquidVolume);
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
bool isEqual(const std::vector< DistributionElements > &l, const std::vector< DistributionElements > &r)
Definition: PSDConversionUnitTest.cpp:30
float * p
Definition: Tutorial_Map_using.cpp:9
Scalar * b
Definition: benchVecAdd.cpp:17
std::enable_if<!std::is_pointer< U >::value, U * >::type copyAndAddObject(const U &object)
Creates a copy of a Object and adds it to the BaseHandler.
Definition: BaseHandler.h:360
T * getObject(const unsigned int id)
Gets a pointer to the Object at the specified index in the BaseHandler.
Definition: BaseHandler.h:621
T * getLastObject()
Gets a pointer to the last Object in this BaseHandler.
Definition: BaseHandler.h:642
Definition: BaseParticle.h:33
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:386
SpeciesHandler speciesHandler
A handler to that stores the species type i.e. LinearViscoelasticSpecies, etc.
Definition: DPMBase.h:1433
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 getTimeStep() const
Returns the simulation time step.
Definition: DPMBase.cc:1241
void setMin(const Vec3D &min)
Sets the minimum coordinates of the problem domain.
Definition: DPMBase.cc:1109
void setRestarted(bool newRestartedFlag)
Allows to set the flag stating if the simulation is to be restarted or not.
Definition: DPMBase.cc:1492
BoundaryHandler boundaryHandler
An object of the class BoundaryHandler which concerns insertion and deletion of particles into or fro...
Definition: DPMBase.h:1458
ParticleHandler particleHandler
An object of the class ParticleHandler, contains the pointers to all the particles created.
Definition: DPMBase.h:1443
void setTimeStep(Mdouble newDt)
Sets a new value for the simulation time step.
Definition: DPMBase.cc:1225
void setTimeMax(Mdouble newTMax)
Sets a new value for the maximum simulation duration.
Definition: DPMBase.cc:864
void solve()
The work horse of the code.
Definition: DPMBase.cc:4334
void setMax(const Vec3D &max)
Sets the maximum coordinates of the problem domain.
Definition: DPMBase.cc:1073
Mdouble getTimeMax() const
Returns the maximum simulation duration.
Definition: DPMBase.cc:879
void setGravity(Vec3D newGravity)
Sets a new value for the gravitational acceleration.
Definition: DPMBase.cc:1374
EIGEN_DEVICE_FUNC const GlobalUnaryPowReturnType< Derived, ScalarExponent > pow(const Eigen::ArrayBase< Derived > &x, const ScalarExponent &exponent)
Definition: GlobalFunctions.h:137
Definition: LiquidFilmParticle.h:15
Definition: LiquidMigrationPeriodicBoundaryUnitTest.cpp:11
Mdouble getLiquidVolume() const
Definition: LiquidMigrationPeriodicBoundaryUnitTest.cpp:35
void printTime() const override
Displays the current simulation time and the maximum simulation duration.
Definition: LiquidMigrationPeriodicBoundaryUnitTest.cpp:39
Defines a pair of periodic walls. Inherits from BaseBoundary.
Definition: PeriodicBoundary.h:20
Contains material and contact force properties.
Definition: Species.h:14
RealScalar s
Definition: level1_cplx_impl.h:130
#define INFO(i)
Definition: mumps_solver.h:54
const Mdouble pi
Definition: ExtendedMath.h:23