VerticalMixerAngledBlades.cpp File Reference
#include "VerticalMixer.h"

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
29 {
30  std::string name = helpers::readFromCommandLine(argc, argv, "-name", std::string("VerticalMixerAngledBlades"));
31 
32  //first, do the real run
33  VerticalMixerAngledBlades mixer(argc, argv);
34  mixer.setName(name);
35  mixer.removeOldFiles();
36  // use straight blades
37  mixer.bladeAngle_ = helpers::readFromCommandLine(argc, argv, "-bladeAngle", 0.0)*constants::pi;
38  mixer.particleNumber_ = helpers::readFromCommandLine(argc, argv, "-particleNumber", 5000);
39  mixer.setTimeMax(helpers::readFromCommandLine(argc, argv, "-timeMax", 30.0));
40  mixer.setParticlesWriteVTK(true);
41  mixer.solve();
42 
43  //then create pretty wall data
44  VerticalMixerAngledBlades walls(argc, argv);
45  walls.setName(name + "PrettyWalls");
46  walls.removeOldFiles();
47  walls.bladeAngle_ = mixer.bladeAngle_;
48  walls.prettyWalls_ = true;
49  walls.setTimeMax(mixer.getTimeMax());
50  walls.solve();
51 
52  //finally, create pretty blade data
53  VerticalMixerAngledBlades blades(argc, argv);
54  blades.setName(name + "PrettyBlades");
55  blades.removeOldFiles();
56  blades.bladeAngle_ = mixer.bladeAngle_;
57  blades.prettyWalls_ = true;
58  blades.haveOuterWalls = false;
59  blades.setTimeMax(mixer.getTimeMax());
60  blades.solve();
61  return 0;
62 }
const Mdouble pi
Definition: ExtendedMath.h:45
bool readFromCommandLine(int argc, char *argv[], std::string varName)
Returns true if command line arguments contain varName, false else.
Definition: CommandLineHelpers.cc:103
std::string name
Definition: MercuryProb.h:48
Definition: VerticalMixer.h:203

References VerticalMixerAngledBlades::bladeAngle_, DPMBase::getTimeMax(), VerticalMixer::haveOuterWalls, units::name, VerticalMixer::particleNumber_, constants::pi, VerticalMixer::prettyWalls_, helpers::readFromCommandLine(), DPMBase::removeOldFiles(), DPMBase::setName(), DPMBase::setParticlesWriteVTK(), DPMBase::setTimeMax(), and DPMBase::solve().