dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #22719
Re: [Question #153453]: more than 2 subdomains in 2D?
Question #153453 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/153453
Kent-Andre Mardal proposed the following answer:
On 19 April 2011 17:28, Achim Schroll
<question153453@xxxxxxxxxxxxxxxxxxxxx>wrote:
> New question #153453 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/153453
>
> is it possible to have more than 2 subdomains in 2D?
>
> it seems that if I mark by a integer label greater or equal 2
>
> subdomains = MeshFunction('uint', mesh, 2)
>
I am not sure that I understand you here. But the number 2 in the line
above does not indicate 2 subdomains. It indicates
the dimension. You can use whatever int >= 0.
> subdomain0 = Omega0()
> subdomain0.mark(subdomains, label)
>
> the integral dx(label) returns just zero.
> so the only available labels are 0 and 1.
> Is that reasonable?
>
> Hilsen, Achim
>
> --
> You received this question notification because you are a member of
> DOLFIN Team, which is an answer contact for DOLFIN.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help : https://help.launchpad.net/ListHelp
>
--
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.
References