MultiMeshDirichletBC¶
-
class
dolfin.cpp.fem.
MultiMeshDirichletBC
(*args)¶ Bases:
object
This class is used to set Dirichlet boundary conditions for multimesh function spaces.
Overloaded versions
MultiMeshDirichletBC(V, g, sub_domain, method=”topological”, check_midpoint=true)
Create boundary condition for subdomain
- Arguments
- V (
MultiMeshFunctionSpace
) The function space.
- g (
GenericFunction
) The value.
- sub_domain (
SubDomain
) The subdomain.
- method (str)
Optional argument: A string specifying the method to identify dofs.
- V (
MultiMeshDirichletBC(V, g, sub_domain, method=”topological”, check_midpoint=true)
Create boundary condition for subdomain
- Arguments
- V (
MultiMeshFunctionSpace
) The function space
- g (
GenericFunction
) The value
- sub_domain (
SubDomain
) The subdomain
- method (str)
Optional argument: A string specifying the method to identify dofs
- V (
-
apply
()¶ Overloaded versions
apply(A)
Apply boundary condition to a matrix
- Arguments
- A (
GenericMatrix
) The matrix to apply boundary condition to.
- A (
apply(b)
Apply boundary condition to a vector
- Arguments
- b (
GenericVector
) The vector to apply boundary condition to.
- b (
apply(A, b)
Apply boundary condition to a linear system
- Arguments
- A (
GenericMatrix
) The matrix to apply boundary condition to.
- b (
GenericVector
) The vector to apply boundary condition to.
- A (
apply(b, x)
Apply boundary condition to vectors for a nonlinear problem
- Arguments
- b (
GenericVector
) The vector to apply boundary conditions to.
- x (
GenericVector
) Another vector (nonlinear problem).
- b (
apply(A, b, x)
Apply boundary condition to a linear system for a nonlinear problem
- Arguments
- A (
GenericMatrix
) The matrix to apply boundary conditions to.
- b (
GenericVector
) The vector to apply boundary conditions to.
- x (
GenericVector
) Another vector (nonlinear problem).
- A (
-
thisown
¶ The membership flag