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

Rotation dofs should have pure Neumann boundary conditions

[[Imported from SVN: r7429]]
parent 71f6cc1b
No related branches found
No related tags found
No related merge requests found
...@@ -140,9 +140,13 @@ int main (int argc, char *argv[]) try ...@@ -140,9 +140,13 @@ int main (int argc, char *argv[]) try
allNodes.setAll(); allNodes.setAll();
LeafBoundaryPatch<GridType> dirichletBoundary(grid, allNodes); LeafBoundaryPatch<GridType> dirichletBoundary(grid, allNodes);
BitSetVector<blocksize> dirichletNodes(grid.size(dim)); BitSetVector<blocksize> dirichletNodes(grid.size(dim), false);
for (int i=0; i<dirichletNodes.size(); i++) for (int i=0; i<dirichletNodes.size(); i++) {
dirichletNodes[i] = dirichletBoundary.containsVertex(i); // Only translation dofs are Dirichlet
if (dirichletBoundary.containsVertex(i))
for (int j=0; j<3; j++)
dirichletNodes[i][j] = true;
}
// ////////////////////////// // //////////////////////////
// Initial solution // Initial solution
......
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