specifying a subset of boundary conditions

Asked by Paul Constantine

Suppose I have a function on a VectorFunctionSpace. Is there a way to specify the (Dirichlet) boundary conditions on only one component and leave the other "free?" This is inside a nonlinear solver.

Question information

Language:
English Edit question
Status:
Answered
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Garth Wells (garth-wells) said :
#1

On 7 February 2013 03:55, Paul Constantine
<email address hidden> wrote:
> New question #221253 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/221253
>
> Suppose I have a function on a VectorFunctionSpace. Is there a way to specify the (Dirichlet) boundary conditions on only one component and leave the other "free?" This is inside a nonlinear solver.
>

Yes.

# First component
bc0 = DirichetBC(W.sub(0), . . . )

# Third component
bc2 = DirichetBC(W.sub(2), . . . )

Garth

> --
> You received this question notification because you are a member of
> DOLFIN Team, which is an answer contact for DOLFIN.

Can you help with this problem?

Provide an answer of your own, or ask Paul Constantine for more information if necessary.

To post a message you must log in.