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

Classes

class  MembraneSelfTest
 

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)
229 {
231 
232 
233  problem.setTimeMax(0.2);
234  problem.setGravity(Vec3D(0.0,0.0,-9.81));
235 
236  /* Make sure to add an (unique) name here */
237  problem.setName("MembraneSelfTest");
238 
239  // problem.setFileType(FileType::ONE_FILE);
240 
241  problem.dataFile.setFileType(FileType::NO_FILE);
242  problem.restartFile.setFileType(FileType::ONE_FILE);
243  problem.fStatFile.setFileType(FileType::NO_FILE);
244  problem.eneFile.setFileType(FileType::NO_FILE);
245 
246  //Add any configuration which is modified often below...
247  problem.setTimeStep(1e-5);
248 
249  problem.setSaveCount(floor(1.0/problem.getTimeStep()));
250 
251  if (helpers::readFromCommandLine(argc, argv, "-vtk"))
252  {
253  helpers::removeFromCommandline(argc, argv, "-vtk", 0);
254  problem.setSaveCount(floor(0.01/problem.getTimeStep()));
255  problem.setParticlesWriteVTK(true);
256  // Write one file per timestep
257  problem.wallHandler.setWriteVTK(FileType::MULTIPLE_FILES);
258  }
259 
260  problem.solve(argc,argv);
261  return 0;
262 }
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_....
@ NO_FILE
file will not be created/read
@ ONE_FILE
all data will be written into/ read from a single file called name_
Definition: MembraneSelfTest.cpp:18
Definition: Kernel/Math/Vector.h:30
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 floor(const bfloat16 &a)
Definition: BFloat16.h:643
bool removeFromCommandline(int &argc, char *argv[], const std::string &varName, int nArgs)
May be used to hide arguments from argc and argv.
Definition: CommandLineHelpers.cc:41
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, NO_FILE, ONE_FILE, problem, helpers::readFromCommandLine(), and helpers::removeFromCommandline().