ffc team mailing list archive
-
ffc team
-
Mailing list archive
-
Message #00292
Re: Add mixed formulation of Stokes to the set of demo forms: [...]
Looks very nice!
/Johan
> Commit from logg (2005-09-20 17:15 CEST)
> ----------------
>
> Add mixed formulation of Stokes to the set of demo forms:
>
> P1 = FiniteElement("Lagrange", "triangle", 1)
> P2 = FiniteElement("Vector Lagrange", "triangle", 2)
> TH = P2 + P1
>
> (v, q) = BasisFunctions(TH)
> (u, p) = BasisFunctions(TH)
>
> f = Function(P2)
>
> a = (dot(grad(u), grad(v)) - p*div(v) + div(u)*q)*dx
> L = dot(f, v)*dx
>
> ffc src/demo/Poisson.form 1.20
> ffc src/demo/PoissonSystem.form 1.6
> + ffc src/demo/Stokes.form 1.1
>
> _______________________________________________
> FFC-dev mailing list
> FFC-dev@xxxxxxxxxx
> http://www.fenics.org/cgi-bin/mailman/listinfo/ffc-dev
>
--
Johan Hoffman, PhD
Assistant Professor
School of Computer Science and Communication
Royal Institute of Technology KTH
SE-100 44 Stockholm
Sweden
Email: jhoffman@xxxxxxxxxxx
URL: www.nada.kth.se/~jhoffman
Follow ups
References