Skip to content
Snippets Groups Projects
Commit daabb605 authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

added the code for the twisted-strip boundary conditions

[[Imported from SVN: r9274]]
parent 70a3c41f
No related branches found
No related tags found
No related merge requests found
......@@ -162,15 +162,23 @@ int main (int argc, char *argv[]) try
GridType::Codim<dim>::LeafIterator vEndIt = grid->leafend<dim>();
for (; vIt!=vEndIt; ++vIt) {
#if 1 // Boundary conditions for the cantilever example
if (vIt->geometry().corner(0)[0] < 1.0+1e-3 /* or vIt->geometry().corner(0)[0] > upper[0]-1e-3*/ ) {
// Only translation dofs are Dirichlet
for (int j=0; j<3; j++)
dirichletNodes[grid->leafIndexSet().index(*vIt)][j] = true;
}
if (vIt->geometry().corner(0)[0] > upper[0]-1e-3 ) {
if (vIt->geometry().corner(0)[0] > upper[0]-1e-3 )
neumannNodes[grid->leafIndexSet().index(*vIt)][0] = true;
#endif
#if 0 // Boundary conditions for the twisted-strip example
if (vIt->geometry().corner(0)[0] < lower[0]+1e-3 or vIt->geometry().corner(0)[0] > upper[0]-1e-3 ) {
// Only translation dofs are Dirichlet
for (int j=0; j<3; j++)
dirichletNodes[grid->leafIndexSet().index(*vIt)][j] = true;
}
#endif
}
//////////////////////////////////////////////////////////////////////////////
......
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