Skip to content
Snippets Groups Projects
Commit 47457d86 authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

compute average orientation

[[Imported from SVN: r1535]]
parent 6fecdf21
No related branches found
No related tags found
No related merge requests found
......@@ -199,16 +199,16 @@ void computeAverageInterface(const BoundaryPatch<GridType>& interface,
// polar composition.
FieldVector<double,dim> W;
FieldMatrix<double,dim,dim> VT;
// returns a decomposition U W VT, where U is returned in the first argument
svdcmp<double,dim,dim>(deformationGradient, W, VT);
deformationGradient.rightmultiply(VT);
// deformationGradient now contains the orthogonal part of the polar decomposition
assert( std::abs(1-deformationGradient.determinant()) < 1e-3);
//std::cout << "determinant: " << deformationGradient.determinant() << " (should be 1)\n";
// average orientation not implemented yet
average.q = Quaternion<double>::identity();
average.q.set(deformationGradient);
}
#endif
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