Dirichlet BC problems...
Hello,
This is a beginner question. I have the following error setting Dirichlet BC .
Error: Unable to create Dirichlet boundary condition.
*** Reason: Illegal value rank (1), expecting (2).
*** Where: This error was encountered inside DirichletBC.cpp.
Here is part of my code:
mesh = UnitSquareMesh(300, 300)
V = VectorFunctionS
Q = VectorFunctionS
W = V * Q
class DirichletBounda
def inside(
return on_boundary
zero = Constant((0.0,0.0))
bc1 = DirichletBC(
bc2 = DirichletBC(
bcs =[bc1, bc2]
Any help ?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Arun Jaganathan for more information if necessary.