2d-mini element-can't use sub(0),but bubble element is ok.
my program(python):
mesh=UnitSquare
U_h = VectorFunctionS
B = VectorFunctionS
Mini_h = U_h + B
# boundary definition:for example u0_boundary and u1_boundary are part of square,respectively
w0 = Constant("0.0")
bc0 = DirichletBC(
bc1 = DirichletBC(
ValueError: Can only extract SubSpaces with i = 0 ... -1
Who can tell me why? Mini_h.sub(0) is the first component of Mini_h,
Actually, only for vector bubble element, everything is ok,for example:
B = VectorFunctionS
bc0 = DirichletBC(
bc1 = DirichletBC(
all right!
In addition, I want to know why can not directly added to a mini finite element, rather than CG + Bubble.
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 Guo Jiang for more information if necessary.