Tutorial6_ElasticCollisionPeriodic.cpp File Reference

Classes

class  Tutorial6
 [T6:headers] More...
 

Functions

int main (int argc, char *argv[])
 [T6:class] More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

[T6:class]

[T6:speciesProp]

[T6:speciesProp]

50 {
51 
52  // Problem setup
53  Tutorial6 problem; // instantiate an object of class Tutorial 6
54 
55  problem.setName("Tutorial6");
56  problem.setGravity(Vec3D(0.0, 0.0, 0.0));
57  problem.setXMax(0.5);
58  problem.setYMax(0.25);
59  problem.setZMax(0.5);
60  problem.setTimeMax(5.0);
61 
63  // The normal spring stiffness and normal dissipation is computed and set as
64  // For collision time tc=0.005 and restitution coefficient rc=1.0,
66  species.setDensity(2500.0); //sets the species type_0 density
67  species.setStiffness(258.5);//sets the spring stiffness.
68  species.setDissipation(0.0); //sets the dissipation.
69  problem.speciesHandler.copyAndAddObject(species);
70 
72 
73  problem.setSaveCount(10);
74  problem.dataFile.setFileType(FileType::ONE_FILE);
75  problem.restartFile.setFileType(FileType::ONE_FILE);
76  problem.fStatFile.setFileType(FileType::NO_FILE);
77  problem.eneFile.setFileType(FileType::NO_FILE);
78 
79  // Write vtk files
80  problem.wallHandler.setWriteVTK(FileType::ONE_FILE);
81  problem.setParticlesWriteVTK(true);
82 
83  problem.setTimeStep(0.005 / 50.0);// (collision time)/50.0
84  problem.solve(argc, argv);
85 
86  return 0;
87 }
@ NO_FILE
file will not be created/read
@ ONE_FILE
all data will be written into/ read from a single file called name_
void setDissipation(Mdouble dissipation)
Allows the normal dissipation to be changed.
Definition: LinearViscoelasticNormalSpecies.cc:96
void setStiffness(Mdouble new_k)
Allows the spring constant to be changed.
Definition: LinearViscoelasticNormalSpecies.cc:72
void setDensity(Mdouble density)
Definition: ParticleSpecies.cc:88
[T6:headers]
Definition: Tutorial6_ElasticCollisionPeriodic.cpp:23
Definition: Kernel/Math/Vector.h:30
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References NO_FILE, ONE_FILE, problem, ParticleSpecies::setDensity(), LinearViscoelasticNormalSpecies::setDissipation(), and LinearViscoelasticNormalSpecies::setStiffness().