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

remove the TargetSpace parameter of the Cosserat energy class -- Cosserat...

remove the TargetSpace parameter of the Cosserat energy class -- Cosserat materials only make sense with RigidBodyMotion values

[[Imported from SVN: r7418]]
parent c4d6d2f5
No related branches found
No related tags found
No related merge requests found
......@@ -181,7 +181,7 @@ int main (int argc, char *argv[]) try
// Create an assembler for the Harmonic Energy Functional
// ////////////////////////////////////////////////////////////
CosseratEnergyLocalStiffness<GridType::LeafGridView,TargetSpace> harmonicEnergyLocalStiffness;
CosseratEnergyLocalStiffness<GridType::LeafGridView,3> harmonicEnergyLocalStiffness;
GeodesicFEAssembler<GridType::LeafGridView,TargetSpace> assembler(grid.leafView(),
&harmonicEnergyLocalStiffness);
......
......@@ -6,14 +6,16 @@
#include "localgeodesicfestiffness.hh"
#include "localgeodesicfefunction.hh"
#include <dune/gfe/rigidbodymotion.hh>
template<class GridView, class TargetSpace>
template<class GridView, int dim>
class CosseratEnergyLocalStiffness
: public LocalGeodesicFEStiffness<GridView,TargetSpace>
: public LocalGeodesicFEStiffness<GridView,RigidBodyMotion<dim> >
{
// grid types
typedef typename GridView::Grid::ctype DT;
typedef RigidBodyMotion<dim> TargetSpace;
typedef typename TargetSpace::ctype RT;
typedef typename GridView::template Codim<0>::Entity Entity;
......@@ -31,10 +33,10 @@ public:
};
template <class GridView, class TargetSpace>
typename CosseratEnergyLocalStiffness<GridView, TargetSpace>::RT CosseratEnergyLocalStiffness<GridView, TargetSpace>::
template <class GridView, int dim>
typename CosseratEnergyLocalStiffness<GridView, dim>::RT CosseratEnergyLocalStiffness<GridView, dim>::
energy(const Entity& element,
const std::vector<TargetSpace>& localSolution) const
const std::vector<RigidBodyMotion<dim> >& localSolution) const
{
RT energy = 0;
......
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