35 Simulation(std::filesystem::path& settingPath, std::filesystem::path& outputDirectory);
42 template <
typename Rep,
typename Period> std::string
calHourMinuteSecond(std::chrono::duration<Rep, Period> d) {
43 auto h = std::chrono::duration_cast<std::chrono::hours>(d);
45 auto m = std::chrono::duration_cast<std::chrono::minutes>(d);
47 auto s = std::chrono::duration_cast<std::chrono::seconds>(d);
49 std::stringstream out;
50 out << h.count() <<
"h ";
51 out << std::setfill(
'0') << std::setw(2) << m.count() <<
"m " << s.count() <<
"s";
61 const std::chrono::system_clock::time_point& timeStepStartTime,
62 const std::chrono::system_clock::time_point& timeStepEndTime
Class for loading setting file and particle file.
std::chrono::system_clock::time_point realEndTime
std::string getCurrentTimeString()
std::string calHourMinuteSecond(std::chrono::duration< Rep, Period > d)
std::chrono::system_clock::time_point realStartTime
void timeStepReport(const std::chrono::system_clock::time_point &timeStepStartTime, const std::chrono::system_clock::time_point &timeStepEndTime)
Report time step information to the console.
Simulation(std::filesystem::path &settingPath, std::filesystem::path &outputDirectory)