MembraneDemo.cpp File Reference
#include <Mercury3D.h>
#include <Species/HertzianViscoelasticMindlinSpecies.h>
#include <Walls/Membrane/Membrane.h>
#include <climits>

Classes

class  MembraneDemo
 

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)
255 {
257 
258 
259  problem.setTimeMax(3.0);
260  problem.setGravity(Vec3D(0.0,0.0,-9.81));
261 
262  /* Make sure to add an (unique) name here */
263  problem.setName("MembraneDemo");
264 
265  problem.setFileType(FileType::ONE_FILE);
266 
267  //Add any configuration which is modified often below...
268  problem.setTimeStep(1e-5);
269 
270  problem.setSaveCount(floor(0.01/problem.getTimeStep()));
271 
272  if (helpers::readFromCommandLine(argc, argv, "-vtk", true))
273  {
274  problem.setParticlesWriteVTK(true);
275  // Write one file per timestep
276  problem.wallHandler.setWriteVTK(FileType::MULTIPLE_FILES);
277  }
278 
279  problem.setNumberOfOMPThreads(helpers::readFromCommandLine(argc, argv, "-omp",1));
280  problem.random.setRandomSeed(helpers::readFromCommandLine(argc, argv, "-seed",1));
281  problem.solve(argc,argv);
282  return 0;
283 }
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_....
@ ONE_FILE
all data will be written into/ read from a single file called name_
Definition: MembraneDemo.cpp:17
Definition: Kernel/Math/Vector.h:30
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 floor(const bfloat16 &a)
Definition: BFloat16.h:643
bool readFromCommandLine(int argc, char *argv[], const std::string &varName)
Returns true if command line arguments contain varName, false else.
Definition: CommandLineHelpers.cc:99
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References e(), Eigen::bfloat16_impl::floor(), MULTIPLE_FILES, ONE_FILE, problem, and helpers::readFromCommandLine().