HeaterBoundaryTest.cpp File Reference
#include <iostream>
#include <Species/LinearViscoelasticSpecies.h>
#include "Mercury3D.h"
#include "Boundaries/HeaterBoundary.h"
#include "Walls/InfiniteWall.h"
#include "MercuryTime.h"

Classes

class  HeaterBoundaryTest
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  UNUSED,
char *argv[]  UNUSED 
)
70 {
71  Time time;
72  time.tic();
73 
76  species.setDensity(2000);
77  species.setDissipation(0.005);
78  species.setStiffness(1e3);
79  problem.speciesHandler.copyAndAddObject(species);
80 
81  problem.setXMax(0.1);
82  problem.setYMax(0.1);
83  problem.setZMax(0.1);
84  problem.N = 1000;
85  problem.setName("HeaterBoundaryTest");
86  problem.setGravity(Vec3D(0.0, 0.0, 0.0));
87  problem.setTimeStep(4e-5);
88 // logger(INFO, "dt / tc = % / % = 1/%",
89 // problem.getTimeStep(), species.getCollisionTime( 2000 * 4./3. * constants::pi * pow(0.002,3)),
90 // 1/(problem.getTimeStep() / species.getCollisionTime( 2000 * 4./3. * constants::pi * pow(0.002,3))));
91  problem.setSaveCount(25);
92  problem.setTimeMax(0.3);
93  problem.setSystemDimensions(3);
94 
95  problem.setHGridMaxLevels(1);
96  problem.setHGridCellOverSizeRatio(1.2);
97  problem.setHGridUpdateEachTimeStep(false);
98 
99  problem.dataFile.setFileType(FileType::MULTIPLE_FILES);
100 
101  problem.solve();
102 
103  logger(INFO, "Total time to run this simulation: % s", time.toc());
104 }
Array< double, 1, 3 > e(1./3., 0.5, 2.)
@ MULTIPLE_FILES
each time-step will be written into/read from separate files numbered consecutively: name_....
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
Definition: HeaterBoundaryTest.cpp:18
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
Allows for timing the algorithms; accurate up to 0.01 sec.
Definition: MercuryTime.h:25
Mdouble toc()
This is like a stop button of a stopwatch. Assigns the variable finish to the current value of ticks ...
Definition: MercuryTime.h:49
void tic()
This is like a start button of a stopwatch. Assigns the variable start with the current number of clo...
Definition: MercuryTime.h:38
Definition: Kernel/Math/Vector.h:30
#define INFO(i)
Definition: mumps_solver.h:54
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References e(), INFO, logger, MULTIPLE_FILES, problem, ParticleSpecies::setDensity(), LinearViscoelasticNormalSpecies::setDissipation(), LinearViscoelasticNormalSpecies::setStiffness(), Time::tic(), and Time::toc().