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

boundary conditions for the L-shape problem

[[Imported from SVN: r9277]]
parent f319e64b
No related branches found
No related tags found
No related merge requests found
...@@ -163,7 +163,7 @@ int main (int argc, char *argv[]) try ...@@ -163,7 +163,7 @@ int main (int argc, char *argv[]) try
for (; vIt!=vEndIt; ++vIt) { for (; vIt!=vEndIt; ++vIt) {
#if 1 // Boundary conditions for the cantilever example #if 0 // 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*/ ) { 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 // Only translation dofs are Dirichlet
for (int j=0; j<3; j++) for (int j=0; j<3; j++)
...@@ -178,6 +178,15 @@ int main (int argc, char *argv[]) try ...@@ -178,6 +178,15 @@ int main (int argc, char *argv[]) try
for (int j=0; j<3; j++) for (int j=0; j<3; j++)
dirichletNodes[grid->leafIndexSet().index(*vIt)][j] = true; dirichletNodes[grid->leafIndexSet().index(*vIt)][j] = true;
} }
#endif
#if 1 // Boundary conditions for the cantilever example
if (vIt->geometry().corner(0)[0] < 1.0) {
// 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] < -239 )
neumannNodes[grid->leafIndexSet().index(*vIt)][0] = true;
#endif #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