Specifying DirichletBC on function sub-spaces of MixedFunctionSpace
Hi,
I am using MixedFunctionSpace:
# Create FunctionSpaces
Q = FunctionSpace(mesh, "CG", 1)
V = VectorFunctionS
U = MixedFunctionSp
and am trying to specify a Dirichlet BC on the 0 subspace of V with something like:
right= compile_
disp = Constant(0.0)
bcr = DirichletBC(
This seems to work (no ffc errors), but evidently the desired BC is not imposed strongly in the plotted solution.
I tried:
bcr = DirichletBC(
as suggested in SubSpace.h, but it gives
Traceback (most recent call last):
File "tumor51.py", line 76, in <module>
bcr = DirichletBC(
TypeError: 'MixedFunctionS
Is there another way to address subspaces of subspaces in DirichletBC?
---Krishna
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 Krishna Garikipati for more information if necessary.