CGHandlerRadialSelfTest.cpp File Reference
#include "Mercury3D.h"
#include "StatisticsVector.h"
#include "Walls/InfiniteWall.h"
#include "CG/CG.h"
#include "CG/TimeSmoothedCG.h"
#include "CG/TimeAveragedCG.h"
#include "CG/Functions/Lucy.h"
#include "CG/Functions/Linear.h"
#include "CG/Functions/Heaviside.h"
#include "CG/Functions/Gauss.h"
#include <cmath>
#include <iostream>
#include <iomanip>
#include <Species/LinearViscoelasticSpecies.h>

Classes

class  CGHandlerSelfTest
 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, char *argv[])
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
88 {
89  //declare the DPM problem and set the name
91  problem.setTimeMax(1.0);
92  problem.setSaveCount(999999);
93 
94  problem.cgHandler.copyAndAddObject(CG<CGCoordinates::X,CGFunctions::Gauss>());
95  problem.cgHandler.copyAndAddObject(CG<CGCoordinates::R,CGFunctions::Gauss>());
96 // problem.cgHandler.copyAndAddObject(CG<CGCoordinates::XZ,CGFunctions::Gauss>());
97 // problem.cgHandler.copyAndAddObject(CG<CGCoordinates::RZ,CGFunctions::Gauss>());
98 
99  for (auto cg : problem.cgHandler)
100  {
101  cg->setN(100);
102  cg->setWidth(0.5/3.01);
103  cg->setTimeMin(problem.getTimeMax());
104  }
105 
106  //run the simulation
107  problem.solve(argc, argv);
108 
109  helpers::writeToFile("CGHandlerRadialSelfTest.0.gnu","p 'CGHandlerRadialSelfTest.0.stat' u 2:($3*16), 'CGHandlerRadialSelfTest.1.stat' u 2:($3*2*pi*$2*4)");
110  helpers::writeToFile("CGHandlerRadialSelfTest.1.gnu","p 'CGHandlerRadialSelfTest.0.stat' u 2:($14*16), 'CGHandlerRadialSelfTest.1.stat' u 2:($14*2*pi*$2*4)");
111 
112  //helpers::gnuplot("p 'CGHandlerRadialSelfTest.0.stat' u 2:($3*3), 'CGHandlerRadialSelfTest.1.stat' u 2:($3*2*pi*$2)\n");
113 }
In this file a cubic packing of 5^3 particles in a tri-axial box is created and allowed to settle und...
Definition: CGHandlerLargeSelfTest.cpp:18
Evaluates time-resolved continuum fields and writes the data into a stat file.
Definition: CG.h:55
bool writeToFile(const std::string &filename, const std::string &filecontent)
Writes a string to a file.
Definition: FileIOHelpers.cc:29
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References problem, and helpers::writeToFile().