ffc team mailing list archive
-
ffc team
-
Mailing list archive
-
Message #01985
Re: Named Functions
On Sat, Dec 06, 2008 at 03:48:34PM +0000, Garth N. Wells wrote:
> It would be useful if we could somehow associate names with mixed
> functions, e.g.
>
> P2 = VectorElement("Lagrange", "triangle", 2)
> P1 = FiniteElement("Lagrange", "triangle", 1)
> TH = P2 + P1
> (u, p, "U") = Functions(TH)
Is it ever necessary to create a Functions that way?
TestFunctions and TrialFunctions are special since they correspond to
subsets of a bigger system, but for coefficients, one can just do
u = Function(P2)
p = Function(P1)
Even though it seems strange to name two coefficients "u" and "p" for
Stokes.
--
Anders
> so that in the DOLFIN-specific C++ wrapper code we can use
>
> a.U = u;
>
> to attach mixed functions rather than
>
> a.w0 = u;
> a.w1 = v;
> etc.
>
> which is error prone. Andy suggestions on a nice way to do this in the
> FFC input? Will this be part of UFL?
>
> Garth
> _______________________________________________
> FFC-dev mailing list
> FFC-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/ffc-dev
Attachment:
signature.asc
Description: Digital signature
Follow ups
References