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, exclude_overlapped_boundaries=true)
Create boundary condition for subdomain
- Arguments
- V (
MultiMeshFunctionSpace
) The function space
- g (
GenericFunction
) The value
- sub_domain (
SubDomain
) The subdomain
- method (str)
Option passed to DirichletBC.
- check_midpoint (bool)
Option passed to DirichletBC.
- exclude_overlapped_boundaries (bool)
If true, then the variable on_boundary will be set to false for facets that are overlapped by another mesh (irrespective of the layering order of the meshes).
- V (
MultiMeshDirichletBC(V, g, sub_domains, sub_domain, part, method=”topological”)
Create boundary condition for subdomain specified by index
- Arguments
- V (
FunctionSpace
) The function space.
- g (
GenericFunction
) The value.
- sub_domains (
MeshFunction
) Subdomain markers
- sub_domain (int)
The subdomain index (number)
- part (int)
The part on which to set boundary conditions
- 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