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

boundarypatchbase->boundarypatch

[[Imported from SVN: r7494]]
parent e69e32a2
No related branches found
No related tags found
No related merge requests found
...@@ -142,7 +142,7 @@ getStress(const std::vector<RigidBodyMotion<3> >& sol, ...@@ -142,7 +142,7 @@ getStress(const std::vector<RigidBodyMotion<3> >& sol,
template <class GridView> template <class GridView>
template <class PatchGridView> template <class PatchGridView>
Dune::FieldVector<double,6> RodAssembler<GridView,3>:: Dune::FieldVector<double,6> RodAssembler<GridView,3>::
getResultantForce(const BoundaryPatchBase<PatchGridView>& boundary, getResultantForce(const BoundaryPatch<PatchGridView>& boundary,
const std::vector<RigidBodyMotion<3> >& sol) const const std::vector<RigidBodyMotion<3> >& sol) const
{ {
using namespace Dune; using namespace Dune;
...@@ -159,8 +159,8 @@ getResultantForce(const BoundaryPatchBase<PatchGridView>& boundary, ...@@ -159,8 +159,8 @@ getResultantForce(const BoundaryPatchBase<PatchGridView>& boundary,
FieldVector<double,3> canonicalTorque(0); FieldVector<double,3> canonicalTorque(0);
// Loop over the given boundary // Loop over the given boundary
typename BoundaryPatchBase<PatchGridView>::iterator it = boundary.begin(); typename BoundaryPatch<PatchGridView>::iterator it = boundary.begin();
typename BoundaryPatchBase<PatchGridView>::iterator endIt = boundary.end(); typename BoundaryPatch<PatchGridView>::iterator endIt = boundary.end();
for (; it!=endIt; ++it) { for (; it!=endIt; ++it) {
......
...@@ -66,6 +66,10 @@ public: ...@@ -66,6 +66,10 @@ public:
dynamic_cast<RodLocalStiffness<GridView, double>* >(this->localStiffness_)->setReferenceConfiguration(referenceConfiguration); dynamic_cast<RodLocalStiffness<GridView, double>* >(this->localStiffness_)->setReferenceConfiguration(referenceConfiguration);
} }
std::vector<RigidBodyMotion<3> > getRefConfig()
{ return dynamic_cast<RodLocalStiffness<GridView, double>* >(this->localStiffness_)->referenceConfiguration_;
}
void assembleGradient(const std::vector<RigidBodyMotion<3> >& sol, void assembleGradient(const std::vector<RigidBodyMotion<3> >& sol,
Dune::BlockVector<Dune::FieldVector<double, blocksize> >& grad) const; Dune::BlockVector<Dune::FieldVector<double, blocksize> >& grad) const;
...@@ -79,7 +83,7 @@ public: ...@@ -79,7 +83,7 @@ public:
\note Linear run-time in the size of the grid */ \note Linear run-time in the size of the grid */
template <class PatchGridView> template <class PatchGridView>
Dune::FieldVector<double,6> getResultantForce(const BoundaryPatchBase<PatchGridView>& boundary, Dune::FieldVector<double,6> getResultantForce(const BoundaryPatch<PatchGridView>& boundary,
const std::vector<RigidBodyMotion<3> >& sol) const; const std::vector<RigidBodyMotion<3> >& sol) const;
}; // end class }; // end class
......
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