|
| DirichletBC (const std::shared_ptr< const function::Function< T >> &g, const Eigen::Ref< const Eigen::Array< std::int32_t, Eigen::Dynamic, 1 >> &dofs) |
| Create boundary condition. More...
|
|
| DirichletBC (const std::shared_ptr< const function::Function< T >> &g, const Eigen::Ref< const Eigen::Array< std::int32_t, Eigen::Dynamic, 2 >> &V_g_dofs, std::shared_ptr< const function::FunctionSpace > V) |
| Create boundary condition. More...
|
|
| DirichletBC (const DirichletBC &bc)=default |
| Copy constructor. More...
|
|
| DirichletBC (DirichletBC &&bc)=default |
| Move constructor. More...
|
|
| ~DirichletBC ()=default |
| Destructor.
|
|
DirichletBC & | operator= (const DirichletBC &bc)=default |
| Assignment operator. More...
|
|
DirichletBC & | operator= (DirichletBC &&bc)=default |
| Move assignment operator.
|
|
std::shared_ptr< const function::FunctionSpace > | function_space () const |
| The function space to which boundary conditions are applied. More...
|
|
std::shared_ptr< const function::Function< T > > | value () const |
| Return boundary value function g. More...
|
|
const Eigen::Array< std::int32_t, Eigen::Dynamic, 2 > & | dofs () const |
| Get array of dof indices to which a Dirichlet boundary condition is applied. The array is sorted and may contain ghost entries.
|
|
const Eigen::Ref< const Eigen::Array< std::int32_t, Eigen::Dynamic, 2 > > | dofs_owned () const |
| Get array of dof indices owned by this process to which a Dirichlet BC is applied. The array is sorted and does not contain ghost entries.
|
|
void | set (Eigen::Ref< Eigen::Matrix< T, Eigen::Dynamic, 1 >> x, double scale=1.0) const |
| Set bc entries in x to scale*x_bc. More...
|
|
void | set (Eigen::Ref< Eigen::Matrix< T, Eigen::Dynamic, 1 >> x, const Eigen::Ref< const Eigen::Matrix< T, Eigen::Dynamic, 1 >> &x0, double scale=1.0) const |
| Set bc entries in x to scale*(x0 - x_bc). More...
|
|
void | dof_values (Eigen::Ref< Eigen::Matrix< T, Eigen::Dynamic, 1 >> values) const |
| Set boundary condition value for entres with an applied boundary condition. Other entries are not modified. More...
|
|
void | mark_dofs (std::vector< bool > &markers) const |
| Set markers[i] = true if dof i has a boundary condition applied. Value of markers[i] is not changed otherwise. More...
|
|
template<typename T>
class dolfinx::fem::DirichletBC< T >
Interface for setting (strong) Dirichlet boundary conditions.
u = g on G,
where u is the solution to be computed, g is a function and G is a sub domain of the mesh.
A DirichletBC is specified by the function g, the function space (trial space) and degrees of freedom to which the boundary condition applies.