Skip to content
Snippets Groups Projects
Commit a91f55dd authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Comments

parent e330f471
No related branches found
No related tags found
No related merge requests found
...@@ -95,13 +95,13 @@ void setup_boundary(GridView const &gridView, ...@@ -95,13 +95,13 @@ void setup_boundary(GridView const &gridView,
assert(it->geometry().corners() == 1); assert(it->geometry().corners() == 1);
Dune::FieldVector<double, dim> const coordinates = it->geometry().corner(0); Dune::FieldVector<double, dim> const coordinates = it->geometry().corner(0);
size_t const id = myVertexMapper.map(*it); size_t const id = myVertexMapper.map(*it);
if (coordinates[1] == upperRight[1]) if (coordinates[1] == upperRight[1]) // upper face
ignoreNodes[id] = true; ignoreNodes[id] = true;
else if (coordinates[1] == lowerLeft[1]) { else if (coordinates[1] == lowerLeft[1]) { // lower face
frictionalNodes[id] = true; frictionalNodes[id] = true;
ignoreNodes[id][1] = true; // Zero displacement in direction y ignoreNodes[id][1] = true;
} else if (coordinates[0] == lowerLeft[0] || } else if (coordinates[0] == lowerLeft[0] // left face
coordinates[0] == upperRight[0]) || coordinates[0] == upperRight[0]) // right face
neumannNodes[id] = true; neumannNodes[id] = true;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment