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

Print evolution of state

parent 231259dc
Branches
No related tags found
No related merge requests found
......@@ -452,6 +452,18 @@ int main(int argc, char *argv[]) {
u4 += u4_diff;
s4_old = *s4_new;
if (parset.get<bool>("printEvolution")) {
// Print displacement on frictional boundary
boost::format const formatter("s[%02d] = %+3e, "
"%|40t|u[%02d] = %+3e");
for (size_t i = 0; i < frictionalNodes.size(); ++i)
if (frictionalNodes[i][0]) {
std::cout << boost::format(formatter) % i % (*s4_new)[i] % i % u4[i]
<< std::endl;
break; // Only print the first element
}
}
// Compute von Mises stress and write everything to a file
if (parset.get<bool>("writeVTK")) {
auto const displacement =
......
......@@ -2,6 +2,7 @@
timesteps = 30
verbose = false
printEvolution = true
printFrictionalBoundary = false
printProgress = false
printDifference = false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment