MultiMeshDirichletBC

class dolfin.cpp.fem.MultiMeshDirichletBC(*args)

Bases: object

This class is used to set Dirichlet boundary conditions for multimesh function spaces.

Create boundary condition for subdomain specified by index

Parameters:
  • const MultiMeshFunctionSpace > V (std::shared_ptr<) – (FunctionSpace ) The function space.
  • const GenericFunction > g (std::shared_ptr<) – (GenericFunction ) The value.
  • const MeshFunction< std::size_t >> sub_domains (std::shared_ptr<) – (MeshFunction <std::size_t>) Subdomain markers
  • sub_domain (std::size_t) – (std::size_t) The subdomain index (number)
  • part (std::size_t) – (std::size_t) The part on which to set boundary conditions
  • method (std::string) – (std::string) Optional argument: A string specifying the method to identify dofs.
apply()

Apply boundary condition to vectors for a nonlinear problem

Parameters:
  • & b (GenericVector) – (GenericVector ) The vector to apply boundary conditions to.
  • GenericVector & x (const) – (GenericVector ) Another vector (nonlinear problem).
Return type:

void

thisown

The membership flag