dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #08463
Re: Example demonstrating use of ds(i) somewhere?
On Thu, Jun 26, 2008 at 11:48:26AM +0200, Marie Rognes wrote:
> I'm wondering how to specify which part(s) of the boundary maps to
> ds(0), ds(1) etc using PyDOLFIN. Any hints anywhere?
The easiest way is to use MeshBuilder to mark the domains using your
mouse.
The other option is to define a MeshFunction over the facets and then
mark your domains by overloading inside() in SubDomain. See
demo/mesh/subdomains/python/demo.py
--
Anders
Attachment:
signature.asc
Description: Digital signature
References