Skip to content
Snippets Groups Projects
Commit ad6e2598 authored by Oliver Sander's avatar Oliver Sander
Browse files

Implement the derivative of the projection onto R^n

parent f155434b
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,9 @@
#include <dune/common/array.hh>
#include <dune/common/fvector.hh>
#include <dune/istl/scaledidmatrix.hh>
#include <dune/gfe/tensor3.hh>
#include <dune/gfe/symmetricmatrix.hh>
......@@ -36,6 +39,9 @@ public:
/** \brief The global convexity radius of the Euclidean space */
static constexpr double convexityRadius = std::numeric_limits<double>::infinity();
/** \brief The return type of the derivativeOfProjection method */
typedef Dune::ScaledIdentityMatrix<T, N> DerivativeOfProjection;
/** \brief Default constructor */
RealTuple()
{}
......@@ -158,6 +164,15 @@ public:
return EmbeddedTangentVector(0);
}
/** \brief Derivative of the projection from the embedding space onto the manifold
*
* For RealTuples this is simply the identity
*/
static DerivativeOfProjection derivativeOfProjection(const Dune::FieldVector<T,N>& p)
{
return Dune::ScaledIdentityMatrix<T,N>(1.0);
}
/** \brief The global coordinates, if you really want them */
const Dune::FieldVector<T,N>& globalCoordinates() const {
return data_;
......
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