TGas.cpp File Reference
#include "Mercury3D.h"
#include "Walls/InfiniteWall.h"
#include "Species/LinearViscoelasticFrictionSpecies.h"
#include "Particles/ClumpParticle.h"
#include "../ClumpHeaders/ClumpInput.h"
#include "../ClumpHeaders/Mercury3DClump.h"
#include <stdlib.h>
#include <CMakeDefinitions.h>

Classes

class  ChangingTOIParticle
 

Functions

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

Variables

Mdouble f_min = -20
 
Mdouble f_max = 20
 
Mdouble margin = 0
 
Mdouble av_min = -0
 
Mdouble av_max = 0
 
Mdouble tv_min = -100
 
Mdouble tv_max = 100
 
int N_att = 2000
 
std::vector< intD_h
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
193 {
195  problem.setNumberOfOMPThreads(helpers::readFromCommandLine(argc, argv, "-omp",4));
196  auto species = problem.speciesHandler.copyAndAddObject(LinearViscoelasticFrictionSpecies());
197  species->setDensity(1.0); // sets the species type-0 density
198  //species->setConstantRestitution(0);
199  std::cout<<species->getConstantRestitution()<<std::endl;
200  species->setDissipation(0.0);
201  species->setStiffness(1e6);
202  const Mdouble collisionTime = species->getCollisionTime(problem.getClumpMass());
203  problem.setClumpDamping(0);
204  std::cout <<"coll time"<<collisionTime<<std::endl;
205  problem.setTimeStep(collisionTime / 50.0);
206 
207  // Quick demonstration
208  problem.setSaveCount(50);
209  problem.setTimeMax(0.1);
210 
211 
212  problem.removeOldFiles();
213  problem.solve();
214 
215 
216  // Return the log of the Dzh particles
217  std::ofstream D_hyst; D_hyst.open ("Dzh_hystory.txt");
218  for (int i = 0; i<D_h.size(); i+=50){D_hyst <<D_h[i]<<std::endl;}
219  D_hyst.close();
220 
221  return 0;
222 }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Species< LinearViscoelasticNormalSpecies, FrictionSpecies > LinearViscoelasticFrictionSpecies
Definition: LinearViscoelasticFrictionSpecies.h:12
std::vector< int > D_h
Definition: TGas.cpp:27
Definition: ChangingTOI.cpp:37
bool readFromCommandLine(int argc, char *argv[], const std::string &varName)
Returns true if command line arguments contain varName, false else.
Definition: CommandLineHelpers.cc:99
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References D_h, i, problem, and helpers::readFromCommandLine().

Variable Documentation

◆ av_max

◆ av_min

◆ D_h

std::vector<int> D_h

◆ f_max

◆ f_min

◆ margin

◆ N_att

◆ tv_max

◆ tv_min