Skip to content
Snippets Groups Projects
Commit 16818f45 authored by Youett, Jonathan's avatar Youett, Jonathan Committed by akbib@FU-BERLIN.DE
Browse files

add method to get the i'th base coefficient of a localGfeFunction and...

add method to get the i'th base coefficient of a localGfeFunction and implement this method for the RigidBodyMotion template specialization

[[Imported from SVN: r8031]]
parent 38fbd5fe
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,12 @@ public: ...@@ -81,7 +81,12 @@ public:
void evaluateFDDerivativeOfGradientWRTCoefficient(const Dune::FieldVector<ctype, dim>& local, void evaluateFDDerivativeOfGradientWRTCoefficient(const Dune::FieldVector<ctype, dim>& local,
int coefficient, int coefficient,
Tensor3<double,embeddedDim,embeddedDim,dim>& result) const; Tensor3<double,embeddedDim,embeddedDim,dim>& result) const;
/** \brief Get the i'th base coefficient. */
TargetSpace coefficient(int i) const
{
return coefficients_[i];
}
private: private:
static Dune::FieldMatrix<double,embeddedDim,embeddedDim> pseudoInverse(const Dune::FieldMatrix<double,embeddedDim,embeddedDim>& dFdq, static Dune::FieldMatrix<double,embeddedDim,embeddedDim> pseudoInverse(const Dune::FieldMatrix<double,embeddedDim,embeddedDim>& dFdq,
...@@ -735,6 +740,10 @@ public: ...@@ -735,6 +740,10 @@ public:
derivative[3+i][3+j][k] = qDerivative[i][j][k]; derivative[3+i][3+j][k] = qDerivative[i][j][k];
} }
TargetSpace coefficient(int i) const {
return TargetSpace(translationCoefficients_[i],orientationFEFunction_->coefficient(i));
}
private: private:
/** \brief The scalar local finite element, which provides the weighting factors /** \brief The scalar local finite element, which provides the weighting factors
......
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