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

bugfix: do not mix boundary patches for different grids

[[Imported from SVN: r6879]]
parent 9c16108a
No related branches found
No related tags found
No related merge requests found
......@@ -433,6 +433,9 @@ rodDirichletToNeumannMap(const std::string& rodName,
for (; it!=lambda.end(); ++it) {
const std::pair<std::string,std::string>& couplingName = it->first;
if (couplingName.first != rodName)
continue;
// Use \lambda as a Dirichlet value for the rod
const LeafBoundaryPatch<RodGridType>& interfaceBoundary = complex_.coupling(couplingName).rodInterfaceBoundary_;
......@@ -470,6 +473,9 @@ rodDirichletToNeumannMap(const std::string& rodName,
const std::pair<std::string,std::string>& couplingName = it->first;
if (couplingName.first != rodName)
continue;
const LeafBoundaryPatch<RodGridType>& couplingBoundary = complex_.coupling(couplingName).rodInterfaceBoundary_;
result[couplingName] = rod(rodName).assembler_->getResultantForce(couplingBoundary, rodX);
......@@ -501,6 +507,9 @@ continuumDirichletToNeumannMap(const std::string& continuumName,
for (; it!=lambda.end(); ++it) {
const std::pair<std::string,std::string>& couplingName = it->first;
if (couplingName.second != continuumName)
continue;
// Turn \lambda \in TSE(3) into a Dirichlet value for the continuum
const LeafBoundaryPatch<ContinuumGridType>& interfaceBoundary = complex_.coupling(couplingName).continuumInterfaceBoundary_;
......@@ -546,6 +555,9 @@ continuumDirichletToNeumannMap(const std::string& continuumName,
const std::pair<std::string,std::string>& couplingName = it->first;
if (couplingName.second != continuumName)
continue;
/** \todo Is referenceInterface.r the correct center of rotation? */
const RigidBodyMotion<dim>& referenceInterface = complex_.coupling(couplingName).referenceInterface_;
......
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