Re: [Ffc] [Branch ~ffc-core/ffc/main] Rev 1498: Added support for CellVolume from UFL.

2010-07-07 Thread Anders Logg
On Wed, Jul 07, 2010 at 10:34:39PM +0100, Kristian Oelgaard wrote: > On 7 July 2010 20:22, Garth N. Wells wrote: > > > > > > On 07/07/10 20:14, Anders Logg wrote: > >> > >> On Wed, Jul 07, 2010 at 06:26:20PM +0100, Kristian Oelgaard wrote: > >>> > >>> Supporting CellVolume makes it possible to do:

Re: [Ffc] [Branch ~ffc-core/ffc/main] Rev 1498: Added support for CellVolume from UFL.

2010-07-07 Thread Kristian Oelgaard
On 7 July 2010 20:22, Garth N. Wells wrote: > > > On 07/07/10 20:14, Anders Logg wrote: >> >> On Wed, Jul 07, 2010 at 06:26:20PM +0100, Kristian Oelgaard wrote: >>> >>> Supporting CellVolume makes it possible to do: >>> >>> CG = FiniteElement("Lagrange", triangle, 2) >>> DG = FiniteElement("DG", t

Re: [Ffc] [Branch ~ffc-core/ffc/main] Rev 1498: Added support for CellVolume from UFL.

2010-07-07 Thread Garth N. Wells
On 07/07/10 20:14, Anders Logg wrote: On Wed, Jul 07, 2010 at 06:26:20PM +0100, Kristian Oelgaard wrote: Supporting CellVolume makes it possible to do: CG = FiniteElement("Lagrange", triangle, 2) DG = FiniteElement("DG", triangle, 0) v = TestFunction(DG) f = Coefficient(CG) vol = triangle.v

Re: [Ffc] [Branch ~ffc-core/ffc/main] Rev 1498: Added support for CellVolume from UFL.

2010-07-07 Thread Anders Logg
On Wed, Jul 07, 2010 at 06:26:20PM +0100, Kristian Oelgaard wrote: > Supporting CellVolume makes it possible to do: > > CG = FiniteElement("Lagrange", triangle, 2) > DG = FiniteElement("DG", triangle, 0) > v = TestFunction(DG) > f = Coefficient(CG) > vol = triangle.v Would it be better to call it

Re: [Ffc] [Branch ~ffc-core/ffc/main] Rev 1498: Added support for CellVolume from UFL.

2010-07-07 Thread Kristian Oelgaard
Supporting CellVolume makes it possible to do: CG = FiniteElement("Lagrange", triangle, 2) DG = FiniteElement("DG", triangle, 0) v = TestFunction(DG) f = Coefficient(CG) vol = triangle.v L = 1.0/vol*v*f*dx instead of using a Coefficient for 'vol' and then defining an Expression in DOLFIN. Curren

[Ffc] Forms with TrialFunctions (only)

2010-07-07 Thread Marie Rognes
Just checking: should this form L = u*dx be ok? -- Marie ___ Mailing list: https://launchpad.net/~ffc Post to : ffc@lists.launchpad.net Unsubscribe : https://launchpad.net/~ffc More help : https://help.launchpad.net/ListHelp