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

getResultantForce for a given BoundaryPatch

[[Imported from SVN: r1472]]
parent 997bd2f4
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,8 @@
#include <dune/common/fmatrix.hh>
#include <dune/istl/matrixindexset.hh>
#include <dune/istl/matrix.hh>
#include "../../common/boundarypatch.hh"
#include "configuration.hh"
namespace Dune
......@@ -124,8 +126,17 @@ namespace Dune
double pos) const;
/** \brief Return resultant force in canonical coordinates */
FieldVector<double,3> getResultantForce(const std::vector<Configuration>& sol) const;
/** \brief Return resultant force across boundary in canonical coordinates
\note Linear run-time in the size of the grid */
FieldVector<double,3> getResultantForce(const BoundaryPatch<GridType>& boundary,
const std::vector<Configuration>& sol) const;
/** \brief Return resultant torque across boundary in canonical coordinates
\note Linear run-time in the size of the grid */
FieldVector<double,3> getResultantTorque(const BoundaryPatch<GridType>& boundary,
const std::vector<Configuration>& sol) const;
protected:
......
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