Skip to content
Snippets Groups Projects
Commit f0ad74cb authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Write coefficient of friction to file

parent c7a5b066
No related branches found
No related tags found
No related merge requests found
...@@ -208,6 +208,7 @@ int main(int argc, char *argv[]) { ...@@ -208,6 +208,7 @@ int main(int argc, char *argv[]) {
ignoreNodes); ignoreNodes);
std::fstream octave_writer("data", std::fstream::out); std::fstream octave_writer("data", std::fstream::out);
std::fstream coefficient_writer("coefficient", std::fstream::out);
timer.reset(); timer.reset();
auto const timesteps = parset.get<size_t>("timesteps"); auto const timesteps = parset.get<size_t>("timesteps");
octave_writer << "# name: A" << std::endl << "# type: matrix" << std::endl octave_writer << "# name: A" << std::endl << "# type: matrix" << std::endl
...@@ -298,8 +299,9 @@ int main(int argc, char *argv[]) { ...@@ -298,8 +299,9 @@ int main(int argc, char *argv[]) {
auto const eta = parset.get<double>("boundary.friction.eta"); auto const eta = parset.get<double>("boundary.friction.eta");
auto const mu = parset.get<double>("boundary.friction.mu"); auto const mu = parset.get<double>("boundary.friction.mu");
std::cout << mu + a *std::log(V * eta) + coefficient_writer << mu + a *std::log(V * eta) +
b * (state - std::log(eta * L)) << std::endl; b * (state - std::log(eta * L))
<< std::endl;
break; break;
} }
...@@ -328,6 +330,7 @@ int main(int argc, char *argv[]) { ...@@ -328,6 +330,7 @@ int main(int argc, char *argv[]) {
<< timer.elapsed() << "s" << std::endl; << timer.elapsed() << "s" << std::endl;
octave_writer.close(); octave_writer.close();
coefficient_writer.close();
if (parset.get<bool>("printFrictionalBoundary")) { if (parset.get<bool>("printFrictionalBoundary")) {
// Print displacement on frictional boundary // Print displacement on frictional boundary
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment