Tutorial7_ParticleIn2DBox.cpp File Reference

Classes

class  Tutorial7
 [T7:headers] More...
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

[T7:class]

[T7:main]

[T7:speciesProp]

[T7:speciesProp]

[T7:visualOutput]

57 {
58  // Problem setup
59  Tutorial7 problem; // instantiate an object of class Tutorial 7
60 
61  problem.setName("Tutorial7");
62  problem.setGravity(Vec3D(0.0, 0.0, 0.0));
63  problem.setXMax(1);
64  problem.setYMax(0.5);
65  problem.setZMax(1.0);
66  problem.setTimeMax(2.5);
67 
69  // The normal spring stiffness and normal dissipation is computed and set as
70  // For collision time tc=0.005 and restitution coefficient rc=1.0,
72  species.setDensity(2500.0); //sets the species type_0 density
73  species.setStiffness(258.5);//sets the spring stiffness.
74  species.setDissipation(0.0); //sets the dissipation.
75  problem.speciesHandler.copyAndAddObject(species);
77 
78  problem.setSaveCount(50);
79  problem.dataFile.setFileType(FileType::ONE_FILE);
80  problem.restartFile.setFileType(FileType::ONE_FILE);
81  problem.fStatFile.setFileType(FileType::NO_FILE);
82  problem.eneFile.setFileType(FileType::NO_FILE);
83 
85  problem.wallHandler.setWriteVTK(FileType::ONE_FILE);
86  problem.setParticlesWriteVTK(true);
87 
88  problem.setTimeStep(0.005 / 50.0);// (collision time)/50.0
89  problem.solve(argc, argv);
90 
91  return 0;
92 }
@ 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
[T7:headers]
Definition: Tutorial7_ParticleIn2DBox.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().