dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #01127
Re: Dimension d in elasticity module
Quoting Anders Logg <logg@xxxxxxxxx>:
> On Fri, Oct 07, 2005 at 01:00:15PM +0200, Johan Jansson wrote:
>
> > Ok, my bad. I only saw spacedim() and tensordim() which were not what
> > I wanted (the dimension of Omega). Thanks for clearing it up.
>
> Perhaps there should be a vectordim() that returns the number of
> vector components and gives an error if rank() > 1?
>
> rank() == 0 : vectordim() == 1
> rank() == 1 : vectordim() == tensordim(0)
> rank() > 1 : error
>
Knowing the tensor rank and dimension of each field of a mixed formulation would
be useful for extracting "subfunctions".
Garth
> /Anders
>
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev
>
References