Tutorial8_ParticleIn2DBoxWithObstacle.cpp File Reference

Classes

class  Tutorial8
 [T8:headers] More...
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

[T8:class]

[T8:speciesProp]

[T8:speciesProp]

[T8:visualOutput]

68 {
69 
70  // Problem setup
71  Tutorial8 problem; // instantiate an object of class Tutorial 8
72 
73  problem.setName("Tutorial8");
74  problem.setGravity(Vec3D(0.0, 0.0, 0.0));
75  problem.setXMax(0.5);
76  problem.setYMax(0.5);
77  problem.setZMax(0.5);
78  problem.setTimeMax(5.0);
79 
81  // The normal spring stiffness and normal dissipation is computed and set as
82  // For collision time tc=0.005 and restitution coefficient rc=1.0,
84  species.setDensity(2500.0); //sets the species type_0 density
85  species.setStiffness(258.5);//sets the spring stiffness.
86  species.setDissipation(0.0); //sets the dissipation.
87  problem.speciesHandler.copyAndAddObject(species);
88 
90 
91  problem.setSaveCount(50);
92  problem.dataFile.setFileType(FileType::ONE_FILE);
93  problem.restartFile.setFileType(FileType::ONE_FILE);
94  problem.fStatFile.setFileType(FileType::NO_FILE);
95  problem.eneFile.setFileType(FileType::NO_FILE);
96 
98  problem.wallHandler.setWriteVTK(FileType::ONE_FILE);
99  problem.setParticlesWriteVTK(true);
100 
101  problem.setTimeStep(.005 / 50.0); // (collision time)/50.0
102  problem.solve(argc, argv);
103 
104  return 0;
105 }
@ 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
[T8:headers]
Definition: Tutorial8_ParticleIn2DBoxWithObstacle.cpp:24
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().