revision: v0.14
ClusterGenerator.h
Go to the documentation of this file.
1 //Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved.
2 //For the list of developers, see <http://www.MercuryDPM.org/Team>.
3 //
4 //Redistribution and use in source and binary forms, with or without
5 //modification, are permitted provided that the following conditions are met:
6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above copyright
9 // notice, this list of conditions and the following disclaimer in the
10 // documentation and/or other materials provided with the distribution.
11 // * Neither the name MercuryDPM nor the
12 // names of its contributors may be used to endorse or promote products
13 // derived from this software without specific prior written permission.
14 //
15 //THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16 //ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 //WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 //DISCLAIMED. IN NO EVENT SHALL THE MERCURYDPM DEVELOPERS TEAM BE LIABLE FOR ANY
19 //DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 //(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21 //LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22 //ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 //(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24 //SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 
26 #ifndef ClusterGenerator_H
27 #define ClusterGenerator_H
28 
29 #endif //ClusterGenerator_H
30 
31 #include "BaseCluster.h"
32 
39 {
40 public:
41 
47 
52 
56  void create();
57 
58 
60 
62 
63  //InteractionHandler* interactionHandler;
64 
65 
66 
67 private:
68 
69  /*
70  * ----------------------------------------------------
71  * VARIABLES
72  * ----------------------------------------------------
73  */
74 
75  // Position
77 
78  // TIME
81 
82  //Particles
87 
88  //Cluster
90  unsigned int idCluster_;
93 
94  // Central force
97 
98  // Data analysis
101 
102  // Energy
105 
106  // File
125 
126  // Restart self test
129 
130 
131 
132 };
LinearViscoelasticSlidingFrictionSpecies.h
BaseCluster::doEneOutput
void doEneOutput(bool isEneOutputOn)
This sets the bool variable that defines whether the cluster ene output will be written or not.
Definition: BaseCluster.cc:376
DPMBase::setName
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:420
ClosedCSCRestart
Definition: ClosedCSCRestart.cpp:37
File::getName
const std::string & getName() const
Allows to access the file name, e.g., "problem.data".
Definition: File.cc:165
File::close
void close()
Closes the file by calling fstream_.close()
Definition: File.cc:407
DPMBase::readRestartFile
bool readRestartFile(ReadOptions opt=ReadOptions::ReadAll)
Reads all the particle data corresponding to a given, existing . restart file (for more details regar...
Definition: DPMBase.cc:2921
ClusterGenerator::sizeDispersityParticle_
Mdouble sizeDispersityParticle_
Size dispersity of particles: must be between 0 and 1.
Definition: ClusterGenerator.h:84
DPMBase::setTimeStep
void setTimeStep(Mdouble newDt)
Sets a new value for the simulation time step.
Definition: DPMBase.cc:1225
DPMBase::getTimeStep
Mdouble getTimeStep() const
Returns the simulation time step.
Definition: DPMBase.cc:1241
ClosedCSCRun::lid
InfiniteWall * lid
Definition: ClosedCSCRun.cpp:97
ClusterGenerator::ClusterGenerator
ClusterGenerator()
This constructor initializes all variables to default values. After initialization all values are pas...
Definition: ClusterGenerator.cc:36
ClusterGenerator::isEneOutputOn_
bool isEneOutputOn_
bool used to define whether or not eneOutput output must be created.
Definition: ClusterGenerator.h:124
BaseCluster::doOverlOutput
void doOverlOutput(bool iOOO)
This sets the bool variable that defines whether the cluster overlap output will be written or not.
Definition: BaseCluster.cc:292
LinearViscoelasticSlidingFrictionSpecies
Species< LinearViscoelasticNormalSpecies, SlidingFrictionSpecies > LinearViscoelasticSlidingFrictionSpecies
Definition: LinearViscoelasticSlidingFrictionSpecies.h:34
ClusterGenerator::internalStructureGridLength_
int internalStructureGridLength_
Number of points used for creating internal structure's grid.
Definition: ClusterGenerator.h:100
ClosedCSCRun::printTime
void printTime() const
Displays the current simulation time and the maximum simulation duration.
Definition: ClosedCSCRun.cpp:84
BaseCluster.h
constants::pi
const Mdouble pi
Definition: ExtendedMath.h:45
BaseCluster
Definition: BaseCluster.h:51
StatisticsVector.h
PeriodicBoundary.h
get_wall_time
double get_wall_time()
Definition: ClosedCSCRestart.cpp:28
Flusher::FLUSH
@ FLUSH
BaseCluster::doIntStrucOutput
void doIntStrucOutput(bool iISOO)
This sets the bool variable that defines whether the cluster internal structure output will be writte...
Definition: BaseCluster.cc:320
BaseCluster::doAmatOutput
void doAmatOutput(bool iAOO)
This sets the bool variable that defines whether the cluster adjacency matrix output will be written ...
Definition: BaseCluster.cc:306
ChargedBondedParticleUnitTest::setupInitialConditions
void setupInitialConditions() override
This function allows to set the initial conditions for our problem to be solved, by default particle ...
Definition: ClayParticles.cpp:37
MixedSpecies::mixAll
void mixAll(BaseSpecies *const S, BaseSpecies *const T) final
sets the MixedSpecies properties by mixing the properties of two particle species
Definition: MixedSpecies.h:290
StatisticsVector< XZ >::setN
void setN(int n)
Definition: StatisticsVector.h:179
ClosedCSCWalls::saveWalls
void saveWalls()
Definition: ClosedCSCWalls.cpp:177
ClosedCSCWalls::eneTolerance
Mdouble eneTolerance
Definition: ClosedCSCWalls.cpp:220
ClusterGenerator::velocityDampingModulus_
Mdouble velocityDampingModulus_
Value of damping modulus for velocity.
Definition: ClusterGenerator.h:96
DPMBase::setParticleDimensions
void setParticleDimensions(unsigned int particleDimensions)
Sets the particle dimensionality.
Definition: DPMBase.cc:1439
main
int main(int argc, char *argv[])
Definition: ClosedCSCWalls.cpp:228
ClosedCSCWalls::wallThickness
Mdouble wallThickness
Definition: ClosedCSCWalls.cpp:225
DPMBase::getXMax
Mdouble getXMax() const
If the length of the problem domain in x-direction is XMax - XMin, then getXMax() returns XMax.
Definition: DPMBase.h:607
ClusterGenerator::fakeParticleHandler
ParticleHandler fakeParticleHandler
Definition: ClusterGenerator.h:61
BaseInteractable::setPosition
void setPosition(const Vec3D &position)
Sets the position of this BaseInteractable.
Definition: BaseInteractable.h:239
logger
Logger< MERCURY_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
ClusterGenerator::clusterProperties
BaseCluster clusterProperties
Definition: ClusterGenerator.h:59
BaseInteractable::getForce
const Vec3D & getForce() const
Returns the force on this BaseInteractable.
Definition: BaseInteractable.h:126
DPMBase::random
RNG random
This is a random generator, often used for setting up the initial conditions etc.....
Definition: DPMBase.h:1390
ParticleHandler::getNumberOfObjects
unsigned int getNumberOfObjects() const override
Returns the number of objects in the container. In parallel code this practice is forbidden to avoid ...
Definition: ParticleHandler.cc:1315
Vec3D::X
Mdouble X
the vector components
Definition: Vector.h:65
ClusterGenerator::clusterSizeSafetyFactor_
Mdouble clusterSizeSafetyFactor_
safety factor for the initial size of the cluster: this must be greater than 1.
Definition: ClusterGenerator.h:92
ClosedCSCRestart::initialTime
double initialTime
Definition: ClosedCSCRestart.cpp:103
ClosedCSCWalls
Definition: ClosedCSCWalls.cpp:30
ClosedCSCWalls::lidForce
Mdouble lidForce
Definition: ClosedCSCWalls.cpp:223
ClosedCSCRestart::printTime
void printTime() const
Displays the current simulation time and the maximum simulation duration.
Definition: ClosedCSCRestart.cpp:86
ClusterGenerator::isDataOutputOn_
bool isDataOutputOn_
bool used to define whether or not data output must be created.
Definition: ClusterGenerator.h:118
main
int main(int argc, char *argv[])
Definition: ClayParticles.cpp:194
MercuryBase::checkParticleForInteraction
bool checkParticleForInteraction(const BaseParticle &P) final
Checks if given BaseParticle has an interaction with a BaseWall or other BaseParticle.
Definition: MercuryBase.cc:594
DPMBase::setYMax
void setYMax(Mdouble newYMax)
Sets the value of YMax, the upper bound of the problem domain in the y-direction.
Definition: DPMBase.cc:1182
BaseCluster::doCdatOutput
void doCdatOutput(bool iCOO)
This sets the bool variable that defines whether the cluster data output will be written or not.
Definition: BaseCluster.cc:278
SpeciesHandler::getMixedObject
std::enable_if<!std::is_pointer< typename U::MixedSpeciesType >::value, typename U::MixedSpeciesType * >::type getMixedObject(const U *S, const U *T)
Definition: SpeciesHandler.h:74
ClosedCSCRestart::maxWallTime
double maxWallTime
Definition: ClosedCSCRestart.cpp:102
DPMBase::writeXBallsScript
virtual void writeXBallsScript() const
This writes a script which can be used to load the xballs problem to display the data just generated.
BaseCluster::setSizeDispersityParticle
void setSizeDispersityParticle(Mdouble sDP)
This sets the value of particles' dispersity in size.
Definition: BaseCluster.cc:117
Mercury3D
This adds on the hierarchical grid code for 3D problems.
Definition: Mercury3D.h:37
ChargedBondedInteraction::bond
void bond()
A pair of functions which can be used to fix or unfix a pair of overlapping particles.
Definition: ChargedBondedInteraction.cc:300
DPMBase::restartFile
File restartFile
An instance of class File to handle in- and output into a .restart file.
Definition: DPMBase.h:1451
DPMBase::writeRestartFile
virtual void writeRestartFile()
Stores all the particle data for current save time step to a "restart" file, which is a file simply i...
Definition: DPMBase.cc:2854
ClosedCSCRun::ClosedCSCRun
ClosedCSCRun(Mdouble shearVelocity, Mdouble pressure)
Definition: ClosedCSCRun.cpp:32
INFO
LL< Log::INFO > INFO
Info log level.
Definition: Logger.cc:55
ClusterGenerator::isAmatOutputOn_
bool isAmatOutputOn_
bool used to define whether or not adjacency matrix output must be created.
Definition: ClusterGenerator.h:112
main
int main(int argc, char *argv[])
Definition: ClosedCSCRestart.cpp:107
LinearViscoelasticFrictionChargedBondedSpecies
Species< LinearViscoelasticNormalSpecies, FrictionSpecies, ChargedBondedSpecies > LinearViscoelasticFrictionChargedBondedSpecies
Definition: LinearViscoelasticFrictionChargedBondedSpecies.h:35
main
int main(int argc, char *argv[])
Definition: ClosedCSCStats.cpp:72
StatisticsVector
This class is used to extract statistical data from MD simulations.
Definition: StatisticsVector.h:62
BaseInteractable::getVelocity
virtual const Vec3D & getVelocity() const
Returns the velocity of this interactable.
Definition: BaseInteractable.cc:329
BaseParticle::setRadius
virtual void setRadius(Mdouble radius)
Sets the particle's radius_ (and adjusts the mass_ accordingly, based on the particle's species)
Definition: BaseParticle.cc:542
DPMBase::writeOutputFiles
virtual void writeOutputFiles()
Writes simulation data to all the main Mercury files: .data, .ene, .fstat, .xballs and ....
Definition: DPMBase.cc:3881
Vec3D
Definition: Vector.h:50
DPMBase::solve
void solve()
The work horse of the code.
Definition: DPMBase.cc:4003
ClusterGenerator::isRestartOutputOn_
bool isRestartOutputOn_
bool used to define whether or not restart output must be created.
Definition: ClusterGenerator.h:120
ClosedCSCRun
Definition: ClosedCSCRun.cpp:30
ClusterGenerator::idCluster_
unsigned int idCluster_
Total number of particles.
Definition: ClusterGenerator.h:90
StatisticsVector< XZ >::getCGTimeMin
Mdouble getCGTimeMin()
Definition: StatisticsVector.h:247
DPMBase::getYMin
Mdouble getYMin() const
If the length of the problem domain in y-direction is YMax - YMin, then getYMin() returns YMin.
Definition: DPMBase.h:613
ClosedCSCStats::ClosedCSCStats
ClosedCSCStats()
Definition: ClosedCSCStats.cpp:31
DPMBase::setZMax
void setZMax(Mdouble newZMax)
Sets the value of ZMax, the upper bound of the problem domain in the z-direction.
Definition: DPMBase.cc:1208
File::open
bool open()
Checks if the file stream fstream_ has any issues while opening. Alongside, it also increments the ne...
Definition: File.cc:347
Mdouble
double Mdouble
Definition: GeneralDefine.h:34
DPMBase::boundaryHandler
BoundaryHandler boundaryHandler
An object of the class BoundaryHandler which concerns insertion and deletion of particles into or fro...
Definition: DPMBase.h:1410
BaseParticle::getRadius
Mdouble getRadius() const
Returns the particle's radius.
Definition: BaseParticle.h:348
getName
std::string getName(int argc, char *argv[])
Definition: CombineParallelDataFiles.cpp:12
ClosedCSCRestart::lidForce
Mdouble lidForce
Definition: ClosedCSCRestart.cpp:99
ClusterGenerator::isFStatOutputOn_
bool isFStatOutputOn_
bool used to define whether or not fStat output must be created.
Definition: ClusterGenerator.h:122
BaseInteractable::setVelocity
void setVelocity(const Vec3D &velocity)
set the velocity of the BaseInteractable.
Definition: BaseInteractable.cc:350
double
MixedSpecies
Contains contact force properties for contacts between particles with two different species.
Definition: MixedSpecies.h:43
DPMBase::getMax
Vec3D getMax() const
Definition: DPMBase.h:643
ClosedCSCStats::printTime
void printTime() const
Definition: ClosedCSCStats.cpp:53
DPMBase::getKineticEnergy
Mdouble getKineticEnergy() const
Returns the global kinetic energy stored in the system.
Definition: DPMBase.cc:1535
Logger.h
BaseParticle::setSpecies
void setSpecies(const ParticleSpecies *species)
Definition: BaseParticle.cc:804
ClusterGenerator::isVtkOutputOn_
bool isVtkOutputOn_
bool used to define whether or not vtk output must be created.
Definition: ClusterGenerator.h:116
ClusterGenerator.h
BaseCluster::doVtkOutput
void doVtkOutput(bool iVOO)
This sets the bool variable that defines whether the cluster vtk output will be written or not.
Definition: BaseCluster.cc:334
ClosedCSCWalls::species
LinearViscoelasticSlidingFrictionSpecies * species
Definition: ClosedCSCWalls.cpp:219
DPMBase::getTime
Mdouble getTime() const
Returns the current simulation time.
Definition: DPMBase.cc:805
File::getSaveCount
unsigned int getSaveCount() const
Gets File::saveCount_.
Definition: File.cc:255
Species
Contains material and contact force properties.
Definition: Species.h:35
StatisticsVector< XZ >::setDoPeriodicWalls
void setDoPeriodicWalls(bool new_)
Definition: StatisticsVector.h:563
StatisticsVector< XZ >::setCGTimeMin
void setCGTimeMin(Mdouble t)
Definition: StatisticsVector.h:223
DPMBase::setXMax
void setXMax(Mdouble newXMax)
Sets the value of XMax, the upper bound of the problem domain in the x-direction.
Definition: DPMBase.cc:1156
InfiniteWall.h
Log::FATAL
@ FATAL
DPMBase::speciesHandler
SpeciesHandler speciesHandler
A handler to that stores the species type i.e. LinearViscoelasticSpecies, etc.
Definition: DPMBase.h:1385
helpers::round
Mdouble round(const Mdouble value, unsigned precision)
Definition: Helpers.cc:598
ClosedCSCRun::lidMass
Mdouble lidMass
Definition: ClosedCSCRun.cpp:96
DPMBase::getElasticEnergy
Mdouble getElasticEnergy() const
Returns the global elastic energy within the system.
Definition: DPMBase.cc:1521
LinearViscoelasticFrictionChargedBondedSpecies.h
BaseCluster::setVelocityDampingModulus
void setVelocityDampingModulus(Mdouble vDM)
This sets the value of the velocity damping modulus.
Definition: BaseCluster.cc:200
DPMBase.h
main
int main(int argc, char *argv[])
Definition: ClosedCSCRun.cpp:100
ClosedCSCWalls::lid
InfiniteWall * lid
Definition: ClosedCSCWalls.cpp:222
SphericalParticle
A spherical particle is the most simple particle used in MercuryDPM.
Definition: SphericalParticle.h:37
DPMBase::wallHandler
WallHandler wallHandler
An object of the class WallHandler. Contains pointers to all the walls created.
Definition: DPMBase.h:1405
ClusterGenerator::isOverlOutputOn_
bool isOverlOutputOn_
bool used to define whether or not overlap data output must be created.
Definition: ClusterGenerator.h:110
StatisticsVector< XZ >::setCGWidth
void setCGWidth(Mdouble w)
Set CG variables w2 and CG_invvolume.
Definition: StatisticsVector.h:317
BaseHandler::getNumberOfObjects
virtual unsigned int getNumberOfObjects() const
Gets the number of real Object in this BaseHandler. (i.e. no mpi or periodic particles)
Definition: BaseHandler.h:648
BaseCluster::doFStatOutput
void doFStatOutput(bool isfStatOutputOn)
This sets the bool variable that defines whether the cluster fStat output will be written or not.
Definition: BaseCluster.cc:362
DPMBase::setTimeMax
void setTimeMax(Mdouble newTMax)
Sets a new value for the maximum simulation duration.
Definition: DPMBase.cc:870
ClusterGenerator::create
void create()
runs the simulation that creates the cluster.
Definition: ClusterGenerator.cc:132
Vec3D::Y
Mdouble Y
Definition: Vector.h:65
DPMBase::setGravity
void setGravity(Vec3D newGravity)
Sets a new value for the gravitational acceleration.
Definition: DPMBase.cc:1374
InteractionHandler::getInteraction
BaseInteraction * getInteraction(BaseInteractable *P, BaseInteractable *I, unsigned timeStamp)
Returns the Interaction between the BaseInteractable's P and I.
Definition: InteractionHandler.cc:149
InfiniteWall
A infinite wall fills the half-space {point: (position_-point)*normal_<=0}.
Definition: InfiniteWall.h:48
ClosedCSCRestart::ClosedCSCRestart
ClosedCSCRestart(Mdouble pressure)
Definition: ClosedCSCRestart.cpp:39
ClosedCSCRun::actionsAfterTimeStep
void actionsAfterTimeStep()
A virtual function which allows to define operations to be executed after time step.
Definition: ClosedCSCRun.cpp:66
StatisticsVector< XZ >::setNTimeAverageReset
void setNTimeAverageReset(int new_)
Definition: StatisticsVector.h:858
ClusterGenerator::~ClusterGenerator
~ClusterGenerator()
Default destructor.
Definition: ClusterGenerator.cc:124
constants::i
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51
ClosedCSCRun::lidForce
Mdouble lidForce
Definition: ClosedCSCRun.cpp:95
DPMBase::getZMin
Mdouble getZMin() const
If the length of the problem domain in z-direction is ZMax - ZMin, then getZMin() returns ZMin.
Definition: DPMBase.h:625
BaseWall::setSpecies
void setSpecies(const ParticleSpecies *species)
Defines the species of the current wall.
Definition: BaseWall.cc:171
BaseCluster::setNumberOfParticles
void setNumberOfParticles(int nP)
This sets the value of the number of particles in the cluster.
Definition: BaseCluster.cc:134
DPMBase::setYMin
void setYMin(Mdouble newYMin)
Sets the value of YMin, the lower bound of the problem domain in the y-direction.
Definition: DPMBase.cc:1025
DPMBase::setFileType
void setFileType(FileType fileType)
Sets File::fileType_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:457
ClosedCSCRestart::restart
void restart()
Definition: ClosedCSCRestart.cpp:92
ClosedCSCWalls::printTime
void printTime() const
Displays the current simulation time and the maximum simulation duration.
Definition: ClosedCSCWalls.cpp:122
ClosedCSCWalls::lidMass
Mdouble lidMass
Definition: ClosedCSCWalls.cpp:224
ClosedCSCWalls::ClosedCSCWalls
ClosedCSCWalls(Mdouble width, Mdouble length, Mdouble height, Mdouble wallThickness_, Mdouble pressure)
Definition: ClosedCSCWalls.cpp:32
ClosedCSCStats
Definition: ClosedCSCStats.cpp:29
BaseHandler::getObject
T * getObject(const unsigned int id)
Gets a pointer to the Object at the specified index in the BaseHandler.
Definition: BaseHandler.h:613
ClusterGenerator::isCdatOutputOn_
bool isCdatOutputOn_
bool used to define whether or not cluster data output must be created.
Definition: ClusterGenerator.h:108
BaseParticle
Definition: BaseParticle.h:54
ClosedCSCRestart::writeOutputFiles
void writeOutputFiles()
Writes simulation data to all the main Mercury files: .data, .ene, .fstat, .xballs and ....
Definition: ClosedCSCRestart.cpp:57
DPMBase::getMin
Vec3D getMin() const
Definition: DPMBase.h:637
ClosedCSCRestart::lid
InfiniteWall * lid
Definition: ClosedCSCRestart.cpp:101
BaseHandler::copyAndAddObject
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:379
ClosedCSCWalls::continueSolve
bool continueSolve() const
A virtual function for deciding whether to continue the simulation, based on a user-specified criteri...
Definition: ClosedCSCWalls.cpp:110
n
const unsigned n
Definition: CG3DPackingUnitTest.cpp:32
ClosedCSCWalls::setupInitialConditions
void setupInitialConditions()
This function allows to set the initial conditions for our problem to be solved, by default particle ...
Definition: ClosedCSCWalls.cpp:129
BaseHandler::begin
const std::vector< T * >::const_iterator begin() const
Gets the begin of the const_iterator over all Object in this BaseHandler.
Definition: BaseHandler.h:690
ClusterGenerator::collisionTimeOverTimeStep_
Mdouble collisionTimeOverTimeStep_
Ratio between collision time and time step: should be at least 50.
Definition: ClusterGenerator.h:80
ClusterGenerator::nParticles_
int nParticles_
Total number of particles.
Definition: ClusterGenerator.h:86
RNG::getRandomNumber
Mdouble getRandomNumber()
This is a random generating routine can be used for initial positions.
Definition: RNG.cc:142
DPMBase::setXBallsAdditionalArguments
void setXBallsAdditionalArguments(std::string newXBArgs)
Set the additional arguments for xballs.
Definition: DPMBase.cc:1338
DPMBase::setRestarted
void setRestarted(bool newRestartedFlag)
Allows to set the flag stating if the simulation is to be restarted or not.
Definition: DPMBase.cc:1492
Logger
the Logger class is the main class of the logger implementation. It holds all the functions which inv...
Definition: Logger.h:309
PeriodicBoundary
Defines a pair of periodic walls. Inherits from BaseBoundary.
Definition: PeriodicBoundary.h:41
DPMBase::getYMax
Mdouble getYMax() const
If the length of the problem domain in y-direction is YMax - YMin, then getYMax() returns XMax.
Definition: DPMBase.h:619
DPMBase::getZMax
Mdouble getZMax() const
If the length of the problem domain in z-direction is ZMax - ZMin, then getZMax() returns ZMax.
Definition: DPMBase.h:631
DPMBase::outputXBallsData
virtual void outputXBallsData(std::ostream &os) const
This function writes the location of the walls and particles in a format the XBalls program can read....
Definition: DPMBase.cc:2268
DPMBase::setXMin
void setXMin(Mdouble newXMin)
Sets the value of XMin, the lower bound of the problem domain in the x-direction.
Definition: DPMBase.cc:1001
ClusterGenerator::isIntStrucOutputOn_
bool isIntStrucOutputOn_
bool used to define whether or not cluster internal structure output must be created.
Definition: ClusterGenerator.h:114
PeriodicBoundary::set
void set(Vec3D normal, Mdouble distanceLeft, Mdouble distanceRight)
Defines a PeriodicBoundary by its normal and positions.
Definition: PeriodicBoundary.cc:84
ClusterGenerator::restartSelfTest_
bool restartSelfTest_
bool used to define whether or not the restart self test is being computed.
Definition: ClusterGenerator.h:128
ParticleHandler
Container to store all BaseParticle.
Definition: ParticleHandler.h:48
ClosedCSCRestart::actionsAfterTimeStep
void actionsAfterTimeStep()
A virtual function which allows to define operations to be executed after time step.
Definition: ClosedCSCRestart.cpp:69
ClusterGenerator::position_
Vec3D position_
Definition: ClusterGenerator.h:76
DPMBase::particleHandler
ParticleHandler particleHandler
An object of the class ParticleHandler, contains the pointers to all the particles created.
Definition: DPMBase.h:1395
ChargedBondedParticleUnitTest
In this file, the rolling behaviour of the tangential spring is tested. This is done by placing one n...
Definition: ClayParticles.cpp:35
Vec3D::Z
Mdouble Z
Definition: Vector.h:65
ClusterGenerator::energyRatioTolerance_
Mdouble energyRatioTolerance_
Energy ratio threshold under wich the simulation can be considered static.
Definition: ClusterGenerator.h:104
DPMBase::setSaveCount
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:406
BaseCluster::setEnergyRatioTolerance
void setEnergyRatioTolerance(Mdouble eRT)
This sets the value of the value of the energy ratio threshold under which the process can be conside...
Definition: BaseCluster.cc:234
ClosedCSCRun::setupInitialConditions
void setupInitialConditions()
This function allows to set the initial conditions for our problem to be solved, by default particle ...
Definition: ClosedCSCRun.cpp:91
BaseCluster::doRestartOutput
void doRestartOutput(bool isRestartOutputOn)
This sets the bool variable that defines whether the cluster restart output will be written or not.
Definition: BaseCluster.cc:348
ClosedCSCWalls::actionsAfterTimeStep
void actionsAfterTimeStep()
A virtual function which allows to define operations to be executed after time step.
Definition: ClosedCSCWalls.cpp:103
InfiniteWall::set
void set(Vec3D normal, Vec3D point)
Defines a standard wall, given an outward normal vector s.t. normal*x=normal*point for all x of the w...
Definition: InfiniteWall.cc:118
File::getFstream
std::fstream & getFstream()
Allows to access the member variable File::fstream_.
Definition: File.cc:153
BaseCluster::setClusterId
void setClusterId(unsigned int iC)
This sets the value of the cluster ID.
Definition: BaseCluster.cc:183
Mercury3D.h
DPMBase::dataFile
File dataFile
An instance of class File to handle in- and output into a .data file.
Definition: DPMBase.h:1436
ClusterGenerator
This class allows the user to create clusters of particles. All particles will be of LinearPlasticVis...
Definition: ClusterGenerator.h:39
DPMBase::setZMin
void setZMin(Mdouble newZMin)
Sets the value of ZMin, the lower bound of the problem domain in the z-direction.
Definition: DPMBase.cc:1049
ClosedCSCRestart::lidMass
Mdouble lidMass
Definition: ClosedCSCRestart.cpp:100
StatisticsVector::readStatArguments
void readStatArguments(int argc, char *argv[])
testLogger
Logger< Log::ERROR > testLogger("chargedParticleForceUnitTest")
StatisticsVector< XZ >::getNX
int getNX()
Definition: StatisticsVector.h:199
helpers::to_string
std::string to_string(const T &n)
Definition: Helpers.h:227
DPMBase::getXMin
Mdouble getXMin() const
If the length of the problem domain in x-direction is XMax - XMin, then getXMin() returns XMin.
Definition: DPMBase.h:600
ClosedCSCStats::setupInitialConditions
void setupInitialConditions()
Definition: ClosedCSCStats.cpp:59
ClosedCSCWalls::sizeDistribution
Mdouble sizeDistribution
Definition: ClosedCSCWalls.cpp:221
ChargedBondedInteraction
Definition: ChargedBondedInteraction.h:43
DPMBase::interactionHandler
InteractionHandler interactionHandler
An object of the class InteractionHandler.
Definition: DPMBase.h:1425
BaseInteractable::getPosition
const Vec3D & getPosition() const
Returns the position of this BaseInteractable.
Definition: BaseInteractable.h:218
DPMBase::getTimeMax
Mdouble getTimeMax() const
Returns the maximum simulation duration.
Definition: DPMBase.cc:885
BaseCluster::setCollisionTimeOverTimeStep
void setCollisionTimeOverTimeStep(Mdouble cTOTS)
This sets the collisionTimeOverTimeStep number (which is the ratio between collision time and time st...
Definition: BaseCluster.cc:76
DPMBase
The DPMBase header includes quite a few header files, defining all the handlers, which are essential....
Definition: DPMBase.h:76
DPMBase::setAppend
void setAppend(bool newAppendFlag)
Sets whether the "append" option is on or off.
Definition: DPMBase.cc:1513
DPMBase::setSystemDimensions
void setSystemDimensions(unsigned int newDim)
Sets the system dimensionality.
Definition: DPMBase.cc:1408