19#include <fmt/format.h>
26 auto begin = steady_clock::now();
29 auto *deck =
new inp::Input(filepath +
"/input.yaml");
30 deck->getOutputDeck()->d_path = filepath +
"/out/";
31 std::cout <<
"filepath = " << deck->getOutputDeck()->d_path <<
"\n";
34 if (deck->isPeriDEM()) {
38 std::cout <<
"PeriDEM model not found in input file.\n";
39 return "PeriDEM not found in input file";
43 auto end = steady_clock::now();
46 std::cout <<
"Total simulation time = " << elapsed_secs
47 <<
" (seconds)" << std::endl;
A class for discrete element particle simulation with peridynamic model
virtual void run(inp::Input *deck)
Main driver to simulate.
std::string testPeriDEM(std::string filepath)
Tests PeriDEM model class.
float timeDiff(std::chrono::steady_clock::time_point begin, std::chrono::steady_clock::time_point end, std::string unit="microseconds")
Returns difference between two times.