pde.conditions Module

Provides the data structures that represent the boundary conditions for the pdes.

class pysofe.pde.conditions.BoundaryCondition(fe_space, domain)[source]

Base class for all boundary conditions.

Parameters:
apply(A=None, b=None)[source]

Applies the boundary condition to the stiffness matrix A and/or load vector b.

class pysofe.pde.conditions.DirichletBC(fe_space, domain, ud=0.0)[source]

This class represents Dirichlet boundary conditions of the form

\[u(x,t) = u_{D}|_{\Gamma_{D}}, \Gamma_{D}\subseteq\partial\Omega\]
Parameters:
  • fe_space (pysofe.spaces.space.FESpace) – The considered function space
  • domain (callable) – A function specifying the boundary part where the condition should hold
  • ud (callable) – A function specifying the values at the boundary