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

BoundaryPatch --> LevelBoundaryPatch

[[Imported from SVN: r4474]]
parent c73aa08d
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ class PressureAverager : public Ipopt::TNLP ...@@ -29,7 +29,7 @@ class PressureAverager : public Ipopt::TNLP
public: public:
/** \brief Constructor */ /** \brief Constructor */
PressureAverager(const BoundaryPatch<GridType>* patch, PressureAverager(const LevelBoundaryPatch<GridType>* patch,
Dune::BlockVector<Dune::FieldVector<double,dim> >* result, Dune::BlockVector<Dune::FieldVector<double,dim> >* result,
const Dune::FieldVector<double,dim>& resultantForce, const Dune::FieldVector<double,dim>& resultantForce,
const Dune::FieldVector<double,dim>& resultantTorque, const Dune::FieldVector<double,dim>& resultantTorque,
...@@ -111,7 +111,7 @@ public: ...@@ -111,7 +111,7 @@ public:
*/ */
const double jacobianCutoff_; const double jacobianCutoff_;
const BoundaryPatch<GridType>* patch_; const LevelBoundaryPatch<GridType>* patch_;
double patchArea_; double patchArea_;
...@@ -408,11 +408,11 @@ finalize_solution(Ipopt::SolverReturn status, ...@@ -408,11 +408,11 @@ finalize_solution(Ipopt::SolverReturn status,
template <class GridType> template <class GridType>
void computeAveragePressure(const Dune::FieldVector<double,GridType::dimension>& resultantForce, void computeAveragePressure(const Dune::FieldVector<double,GridType::dimension>& resultantForce,
const Dune::FieldVector<double,GridType::dimension>& resultantTorque, const Dune::FieldVector<double,GridType::dimension>& resultantTorque,
const BoundaryPatch<GridType>& interface, const LevelBoundaryPatch<GridType>& interface,
const RigidBodyMotion<3>& crossSection, const RigidBodyMotion<3>& crossSection,
Dune::BlockVector<Dune::FieldVector<double, GridType::dimension> >& pressure) Dune::BlockVector<Dune::FieldVector<double, GridType::dimension> >& pressure)
{ {
const GridType& grid = interface.getGrid(); const GridType& grid = interface.gridView().grid();
const int level = interface.level(); const int level = interface.level();
const typename GridType::Traits::LevelIndexSet& indexSet = grid.levelIndexSet(level); const typename GridType::Traits::LevelIndexSet& indexSet = grid.levelIndexSet(level);
const int dim = GridType::dimension; const int dim = GridType::dimension;
...@@ -456,8 +456,8 @@ void computeAveragePressure(const Dune::FieldVector<double,GridType::dimension>& ...@@ -456,8 +456,8 @@ void computeAveragePressure(const Dune::FieldVector<double,GridType::dimension>&
Dune::BlockVector<Dune::FieldVector<double,1> > nodalWeights(interface.numVertices()); Dune::BlockVector<Dune::FieldVector<double,1> > nodalWeights(interface.numVertices());
nodalWeights = 0; nodalWeights = 0;
typename BoundaryPatch<GridType>::iterator it = interface.begin(); typename LevelBoundaryPatch<GridType>::iterator it = interface.begin();
typename BoundaryPatch<GridType>::iterator endIt = interface.end(); typename LevelBoundaryPatch<GridType>::iterator endIt = interface.end();
for (; it!=endIt; ++it) { for (; it!=endIt; ++it) {
...@@ -638,7 +638,7 @@ void computeAveragePressure(const Dune::FieldVector<double,GridType::dimension>& ...@@ -638,7 +638,7 @@ void computeAveragePressure(const Dune::FieldVector<double,GridType::dimension>&
} }
template <class GridType> template <class GridType>
void computeAverageInterface(const BoundaryPatch<GridType>& interface, void computeAverageInterface(const LevelBoundaryPatch<GridType>& interface,
const Dune::BlockVector<Dune::FieldVector<double,GridType::dimension> > deformation, const Dune::BlockVector<Dune::FieldVector<double,GridType::dimension> > deformation,
RigidBodyMotion<3>& average) RigidBodyMotion<3>& average)
{ {
...@@ -648,7 +648,7 @@ void computeAverageInterface(const BoundaryPatch<GridType>& interface, ...@@ -648,7 +648,7 @@ void computeAverageInterface(const BoundaryPatch<GridType>& interface,
typedef typename GridType::template Codim<0>::Entity EntityType; typedef typename GridType::template Codim<0>::Entity EntityType;
typedef typename EntityType::LevelIntersectionIterator NeighborIterator; typedef typename EntityType::LevelIntersectionIterator NeighborIterator;
const GridType& grid = interface.getGrid(); const GridType& grid = interface.gridView().grid();
const int level = interface.level(); const int level = interface.level();
const typename GridType::Traits::LevelIndexSet& indexSet = grid.levelIndexSet(level); const typename GridType::Traits::LevelIndexSet& indexSet = grid.levelIndexSet(level);
const int dim = GridType::dimension; const int dim = GridType::dimension;
...@@ -665,8 +665,8 @@ void computeAverageInterface(const BoundaryPatch<GridType>& interface, ...@@ -665,8 +665,8 @@ void computeAverageInterface(const BoundaryPatch<GridType>& interface,
// Loop and integrate over the interface // Loop and integrate over the interface
// /////////////////////////////////////////// // ///////////////////////////////////////////
typename BoundaryPatch<GridType>::iterator it = interface.begin(); typename LevelBoundaryPatch<GridType>::iterator it = interface.begin();
typename BoundaryPatch<GridType>::iterator endIt = interface.end(); typename LevelBoundaryPatch<GridType>::iterator endIt = interface.end();
for (; it!=endIt; ++it) { for (; it!=endIt; ++it) {
......
...@@ -82,7 +82,7 @@ class RodAssembler : public GeodesicFEAssembler<typename GridType::LeafGridView, ...@@ -82,7 +82,7 @@ class RodAssembler : public GeodesicFEAssembler<typename GridType::LeafGridView,
/** \brief Return resultant force across boundary in canonical coordinates /** \brief Return resultant force across boundary in canonical coordinates
\note Linear run-time in the size of the grid */ \note Linear run-time in the size of the grid */
Dune::FieldVector<double,3> getResultantForce(const BoundaryPatch<GridType>& boundary, Dune::FieldVector<double,3> getResultantForce(const LevelBoundaryPatch<GridType>& boundary,
const std::vector<RigidBodyMotion<3> >& sol, const std::vector<RigidBodyMotion<3> >& sol,
Dune::FieldVector<double,3>& canonicalTorque) const; Dune::FieldVector<double,3>& canonicalTorque) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment