Tutorial12_PrismWalls.cpp File Reference

Classes

class  Tutorial12
 [T12:headers] More...
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

[T12:class]

[T12:main]

[T12: constructor]

[T12:speciesProp]

[T12:speciesProp]

[T12: constructor]

[T12: Solve Problem]

[T12: Solve Problem]

97 {
99  // Problem setup
100  Tutorial12 problem; // instantiate an object of class Tutorial 12
101 
102  problem.setName("Tutorial12");
103  problem.setGravity(Vec3D(0.0, 0.0, 0.0));
104  problem.setXMax(0.5);
105  problem.setYMax(0.5);
106  problem.setZMax(0.1);
107  problem.setTimeMax(5.0);
108 
110  // The normal spring stiffness and normal dissipation is computed and set as
111  // For collision time tc=0.005 and restitution coefficient rc=1.0,
113  species.setDensity(2500.0); //sets the species type_0 density
114  species.setStiffness(258.5);//sets the spring stiffness.
115  species.setDissipation(0.0); //sets the dissipation.
116  problem.speciesHandler.copyAndAddObject(species);
117 
119 
120  problem.setSaveCount(10);
121  problem.dataFile.setFileType(FileType::ONE_FILE);
122  problem.restartFile.setFileType(FileType::ONE_FILE);
123  problem.fStatFile.setFileType(FileType::NO_FILE);
124  problem.eneFile.setFileType(FileType::NO_FILE);
125  problem.setParticlesWriteVTK(true);
126  problem.wallHandler.setWriteVTK(FileType::ONE_FILE);
127 
128  problem.setTimeStep(.005 / 50.0); // (collision time)/50.0
130 
132  problem.solve(argc, argv);
134 
135  return 0;
136 }
@ 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
[T12:headers]
Definition: Tutorial12_PrismWalls.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().