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