DistributionPhiNormalSelfTest.cpp File Reference

Classes

class  DistributionPhiNormalSelfTest
 

Functions

int main (int argc UNUSED, char *argv[] UNUSED)
 

Function Documentation

◆ main()

int main ( int argc  UNUSED,
char *argv[]  UNUSED 
)
93 {
94 
96  st.setName("DistributionPhiNormalSelfTest");
97  st.setMax({0.005, 0.005, 0.005});
98  st.setGravity({0.0, 0.0, -9.8});
99  st.setD50StandardDeviationAndNumofPSD(0.00025, 0.5, 100);
100 
102  st.setParticlesWriteVTK(true);
104  st.solve();
105  st.particleHandler.saveNumberPSDtoCSV("DistributionPhiNormalSelfTestPSD.csv");
106 }
@ ONE_FILE
all data will be written into/ read from a single file called name_
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:400
WallHandler wallHandler
An object of the class WallHandler. Contains pointers to all the walls created.
Definition: DPMBase.h:1453
void setFileType(FileType fileType)
Sets File::fileType_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:437
ParticleHandler particleHandler
An object of the class ParticleHandler, contains the pointers to all the particles created.
Definition: DPMBase.h:1443
void setParticlesWriteVTK(bool writeParticlesVTK)
Sets whether particles are written in a VTK file.
Definition: DPMBase.cc:933
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
void setGravity(Vec3D newGravity)
Sets a new value for the gravitational acceleration.
Definition: DPMBase.cc:1374
Definition: DistributionPhiNormalSelfTest.cpp:17
void setD50StandardDeviationAndNumofPSD(double D50, double std, int num)
Definition: DistributionPhiNormalSelfTest.cpp:81
void saveNumberPSDtoCSV(std::string csvFileName, std::vector< double > diameterBins={}) const
Writes the PSD of the particles currently in the handler to a CSV file, with type PROBABILITYDENSITY_...
Definition: ParticleHandler.cc:1400
void setWriteVTK(FileType)
Sets whether walls are written into a VTK file.
Definition: WallHandler.cc:445

References ONE_FILE, DPMBase::particleHandler, ParticleHandler::saveNumberPSDtoCSV(), DistributionPhiNormalSelfTest::setD50StandardDeviationAndNumofPSD(), DPMBase::setFileType(), DPMBase::setGravity(), DPMBase::setMax(), DPMBase::setName(), DPMBase::setParticlesWriteVTK(), WallHandler::setWriteVTK(), DPMBase::solve(), and DPMBase::wallHandler.