ComputeVolumeFractionSelfTest.cpp File Reference
#include "Mercury3D.h"
#include "StatisticsVector.h"
#include "Walls/InfiniteWall.h"
#include <cmath>
#include <iostream>
#include <iomanip>
#include <Species/LinearViscoelasticSpecies.h>

Classes

class  DPM
 In this file a cubic packing of 5^3 particles in a tri-axial box is created and allowed to settle under small gravity. After that Z statistics are calculated. More...
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  UNUSED,
char *argv[]  UNUSED 
)
179 {
180  DPM problem;
181  problem.solve();
182  Vec3D position = 2.5*Vec3D(1,1,1);
183  double volumeFraction = problem.computeLocalVolumeFraction(position,2.5);
184  logger(INFO,"LocalVolumeFraction at %: %",position, volumeFraction);
185  volumeFraction = problem.computeLocalVolumeFractionHGrid(position,2.5);
186  logger(INFO,"LocalVolumeFraction with HGrid at %: %",position, volumeFraction);
187  volumeFraction = problem.computeLocalVolumeFractionHGridCompact(position,2.5);
188  logger(INFO,"LocalVolumeFraction with HGrid at %: %",position, volumeFraction);
189 }
LL< Log::INFO > INFO
Info log level.
Definition: Logger.cc:55
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
In this file a cubic packing of 5^3 particles in a tri-axial box is created and allowed to settle und...
Definition: HGridUpdateUnitTest.cpp:30
Mdouble computeLocalVolumeFractionHGrid(Vec3D position, Mdouble cutoff)
Definition: ComputeVolumeFractionSelfTest.cpp:78
Mdouble computeLocalVolumeFraction(Vec3D position, Mdouble cutoff)
Definition: ComputeVolumeFractionSelfTest.cpp:66
Mdouble computeLocalVolumeFractionHGridCompact(Vec3D position, Mdouble cutoff)
Definition: ComputeVolumeFractionSelfTest.cpp:171
Definition: Vector.h:51

References DPM::computeLocalVolumeFraction(), DPM::computeLocalVolumeFractionHGrid(), DPM::computeLocalVolumeFractionHGridCompact(), INFO, logger, and DPMBase::solve().