Skip to content
Snippets Groups Projects
Commit 45cbed8d authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Temporary: Add the z-coordinate of the deformation as a scalar field

This makes visualizing wrinkles much easier.

[[Imported from SVN: r9753]]
parent df922afd
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@
#include <dune/fufem/functionspacebases/p1nodalbasis.hh>
#include <dune/fufem/functions/vtkbasisgridfunction.hh>
#include <dune/fufem/functiontools/basisinterpolator.hh>
#include <dune/gfe/rigidbodymotion.hh>
......@@ -186,6 +187,14 @@ public:
vtkWriter.addVertexData(vtkDirector);
}
// For easier visualization of wrinkles: add z-coordinate as scalar field
std::vector<double> zCoord(downsampledConfig.size());
for (size_t i=0; i<zCoord.size(); i++)
zCoord[i] = downsampledConfig[i].r[2];
vtkWriter.addVertexData(zCoord, "zCoord");
// Write the file to disk
vtkWriter.write(filename);
}
......
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