LiquidMigrationSelfTest.cpp File Reference
#include "Mercury2D.h"
#include "Particles/LiquidFilmParticle.h"
#include "Walls/InfiniteWall.h"
#include <iostream>
#include "Species/Species.h"
#include "Species/LinearViscoelasticFrictionLiquidMigrationWilletSpecies.h"
#include <iomanip>

Classes

class  LiquidMigrationSelfTest
 In this file two particles are symmetrically placed in a bi-axial box are allowed to jump around under gravity. It tests walls gravity and symmetry. More...
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  UNUSED,
char *argv[]  UNUSED 
)
185 {
186  LiquidMigrationSelfTest LiquidMigrationProblem;
187  LiquidMigrationProblem.setName("LiquidMigrationSelfTest");
188  LiquidMigrationProblem.setSystemDimensions(3);
189  LiquidMigrationProblem.setXBallsAdditionalArguments("-v0 -solid -3dturn 1");
191  LiquidMigrationProblem.speciesHandler.addObject(species);
192  species->setDensity(2000);
193  species->setStiffness(10000);
194  species->setLiquidBridgeVolumeMax(5e-12);
195  species->setDistributionCoefficient(0.8);
196  species->setSurfaceTension(1.0);
197  species->setContactAngle(20.0 * constants::pi / 180.0);
198 
199  LiquidMigrationProblem.setTimeMax(0.7);//2.5);
200  LiquidMigrationProblem.setSaveCount(100);
201  LiquidMigrationProblem.setTimeStep(2e-5);
202  LiquidMigrationProblem.fStatFile.setFileType(FileType::NO_FILE);
203  LiquidMigrationProblem.solve();
204 }
@ NO_FILE
file will not be created/read
Species< LinearViscoelasticNormalSpecies, FrictionSpecies, LiquidMigrationWilletSpecies > LinearViscoelasticFrictionLiquidMigrationWilletSpecies
Definition: LinearViscoelasticFrictionLiquidMigrationWilletSpecies.h:35
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:408
SpeciesHandler speciesHandler
A handler to that stores the species type i.e. LinearViscoelasticSpecies, etc.
Definition: DPMBase.h:1427
File fStatFile
An instance of class File to handle in- and output into a .fstat file.
Definition: DPMBase.h:1483
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:422
void setXBallsAdditionalArguments(std::string newXBArgs)
Set the additional arguments for xballs.
Definition: DPMBase.cc:1347
void setTimeStep(Mdouble newDt)
Sets a new value for the simulation time step.
Definition: DPMBase.cc:1234
void setTimeMax(Mdouble newTMax)
Sets a new value for the maximum simulation duration.
Definition: DPMBase.cc:873
void setSystemDimensions(unsigned int newDim)
Sets the system dimensionality.
Definition: DPMBase.cc:1417
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
void setFileType(FileType fileType)
Sets the type of file needed to write into or read from. File::fileType_.
Definition: File.cc:215
In this file two particles are symmetrically placed in a bi-axial box are allowed to jump around unde...
Definition: LiquidMigrationSelfTest.cpp:37
void addObject(ParticleSpecies *S) override
Adds a new ParticleSpecies to the SpeciesHandler.
Definition: SpeciesHandler.cc:890
const Mdouble pi
Definition: ExtendedMath.h:45

References SpeciesHandler::addObject(), DPMBase::fStatFile, NO_FILE, constants::pi, File::setFileType(), DPMBase::setName(), DPMBase::setSaveCount(), DPMBase::setSystemDimensions(), DPMBase::setTimeMax(), DPMBase::setTimeStep(), DPMBase::setXBallsAdditionalArguments(), DPMBase::solve(), and DPMBase::speciesHandler.