SubDomain¶
-
class
dolfin.cpp.mesh.
SubDomain
¶ Bases:
object
This class defines the interface for definition of subdomains. Alternatively, subdomains may be defined by a
Mesh
and a MeshFunction<std::size_t> over the mesh.Friends:
DirichletBC
,PeriodicBC
.Constructor
Parameters: double map_tol (const) – (double) The tolerance used when identifying mapped points using the function SubDomain::map
.-
geometric_dimension
()¶ Return geometric dimension
Return type: std::size_t Returns: std::size_t The geometric dimension.
-
get_property
()¶ Property getter
Parameters: name (std::string) – Return type: double Returns: double
-
inside
()¶ Return true for points inside the subdomain
Parameters: - Array< double > & x (const) – (Array<double>) The coordinates of the point.
- on_boundary (bool) – (bool) True for points on the boundary.
Return type: Returns: bool True for points inside the subdomain.
-
map
()¶ Map coordinate x in domain H to coordinate y in domain G (used for periodic boundary conditions)
Parameters: - Array< double > & x (const) – (Array<double>) The coordinates in domain H.
- double > & y (Array<) – (Array<double>) The coordinates in domain G.
Return type: void
-
map_tolerance
¶ Return tolerance uses to find matching point via map function
Return type: const double Returns: double The tolerance.
-
mark
(*args, **kwargs)¶ Set
subdomain markers (bool) for given subdomainParameters: Return type: void
-
mark_cells
()¶ Set
subdomain markers (std::size_t) on cells for given subdomain numberParameters: Return type: void
-
mark_facets
()¶ Set
subdomain markers (std::size_t) on facets for given subdomain numberParameters: Return type: void
-
set_property
()¶ Property setter
Parameters: - name (std::string) –
- value (double) –
Return type: void
-
snap
()¶ Snap coordinate to boundary of subdomain
Parameters: double > & x (Array<) – (Array<double>) The coordinates. Return type: void
-
thisown
¶ The membership flag
-