21 if (fit ==
"identity1") {
25 double param0 = std::stof(string0);
28 outFile +=
"_" + string0 ;
29 }
else if (fit ==
"identity2") {
33 double param0 = std::stof(string0);
35 double param1 = std::stof(string1);
38 outFile +=
"_" + string0 +
"_" + string1;
39 }
else if (fit ==
"calibration43") {
43 double restitutionCoefficient = std::stof(string0);
45 double slidingFriction = std::stof(string1);
47 double rollingFriction = std::stof(string2);
49 double bondNumber = std::stof(string3);
54 double ffc = 1.0/bondNumber;
55 double angleOfRepose = slidingFriction;
56 double drum = rollingFriction;
59 outFile +=
"_" + string0 +
"_" + string1 +
"_" + string2 +
"_" + string3;
60 }
else if (fit ==
"calibration44") {
64 double restitutionCoefficient = std::stof(string0);
66 double slidingFriction = std::stof(string1);
68 double rollingFriction = std::stof(string2);
70 double bondNumber = std::stof(string3);
72 double dummy = restitutionCoefficient;
73 double ffc = 1.0/bondNumber;
74 double angleOfRepose = slidingFriction;
75 double drum = rollingFriction;
78 outFile +=
"_" + string0 +
"_" + string1 +
"_" + string2 +
"_" + string3;
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
LL< Log::ERROR > ERROR
Error log level.
Definition: Logger.cc:32
#define INFO(i)
Definition: mumps_solver.h:54
type
Definition: compute_granudrum_aor.py:141
bool readFromCommandLine(int argc, char *argv[], const std::string &varName)
Returns true if command line arguments contain varName, false else.
Definition: CommandLineHelpers.cc:99
bool writeToFile(const std::string &filename, const std::string &filecontent)
Writes a string to a file.
Definition: FileIOHelpers.cc:29
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
std::string to_string(T object, unsigned float_precision=8)
Definition: oomph_utilities.h:189
std::ofstream out("Result.txt")