Coverage for src/pymor/domaindescriptions/interfaces : 67%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
|
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright Holders: Rene Milk, Stephan Rave, Felix Schindler # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
'''Analytically describes a domain and its boundary (types).
Attributes ---------- boundary_types Set of |BoundaryTypes| the domain has. '''
def has_dirichlet(self): return BoundaryType('dirichlet') in self.boundary_types
def has_neumann(self): return BoundaryType('neumann') in self.boundary_types
def has_only_dirichlet(self): return self.boundary_types == {BoundaryType('dirichlet')}
def has_only_neumann(self): return self.boundary_types == {BoundaryType('neumann')}
def has_only_dirichletneumann(self): return self.boundary_types <= {BoundaryType('dirichlet'), BoundaryType('neumann')} |