ffc team mailing list archive
-
ffc team
-
Mailing list archive
-
Message #00258
Re: New operators
Good suggestion, I'll add cross(), trace() and probably mult()
so you can multiply with permutation matrices/tensors.
/Anders
On Fri, Sep 09, 2005 at 08:10:35AM +0200, Garth N. Wells wrote:
> Hi Anders,
>
> Looks great. I'll try it out and let you know. One useful non-differential
> operator (for me at least) would the cross product. Perhaps the most generic way
> to allow for it would be to add the permutation tensor when you're ready for
> higher-order tensors.
>
> Garth
>
>
>
> Quoting Anders Logg <logg@xxxxxxxxx>:
>
> > The new operators are now in place:
> >
> > dot - scalar product
> > grad - gradient
> > div - divergence
> > rot - rotation (curl works also)
> >
> > One can now write things like
> >
> > a = div(grad(dot(rot(v), u)))*dx
> >
> > Please try them out and tell me if they work. Suggestions for
> > modifications of the behavior of these operators as well as
> > suggestions for new (standard) operators that might make life easier
> > for you are also welcome. Remember, these operators are defined
> > independently from and on top of the form algebra so adding a new
> > operator does not add to the complexity of the form language (this
> > comment is for you Rob ;-).
> >
> > /Anders
> >
> > _______________________________________________
> > FFC-dev mailing list
> > FFC-dev@xxxxxxxxxx
> > http://www.fenics.org/cgi-bin/mailman/listinfo/ffc-dev
> >
>
--
Anders Logg
Research Assistant Professor
Toyota Technological Institute at Chicago
http://www.tti-c.org/logg/
Follow ups
References