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

add infinitesimalVariation() for 2d rigid body motions

[[Imported from SVN: r5740]]
parent 535edad6
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,16 @@ class LocalGeodesicFEStiffness
(i==5)*eps));
}
/** \brief For the fd approximations
*/
static void infinitesimalVariation(RigidBodyMotion<2>& c, double eps, int i)
{
if (i<2)
c.r[i] += eps;
else
c.q = c.q.mult(Rotation<2,double>::exp(Dune::FieldVector<double,1>(eps)));
}
static void infinitesimalVariation(Rotation<3,double>& c, double eps, int i)
{
c = c.mult(Rotation<3,double>::exp((i==0)*eps,
......
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