Mercurial > fem-fenics-eugenio
view example/Biharmonic/Biharmonic.ufl @ 158:17358a4eb648
Move the example to their own folder.
author | gedeone-octave <marcovass89@hotmail.it> |
---|---|
date | Thu, 12 Sep 2013 15:19:31 +0200 |
parents | example/Biharmonic.ufl@5a1f8f5e2617 |
children |
line wrap: on
line source
# Copyright (C) 2005-2009 Anders Logg # Elements element = FiniteElement("Lagrange", triangle, 2) # Trial and test functions u = TrialFunction(element) v = TestFunction(element) f = Coefficient(element) # Normal component, mesh size and right-hand side n = element.cell().n h = 2.0*triangle.circumradius h_avg = (h('+') + h('-'))/2 # Parameters alpha = Constant(triangle) # Bilinear form a = inner(div(grad(u)), div(grad(v)))*dx \ - inner(avg(div(grad(u))), jump(grad(v), n))*dS \ - inner(jump(grad(u), n), avg(div(grad(v))))*dS \ + alpha('+')/h_avg*inner(jump(grad(u), n), jump(grad(v),n))*dS # Linear form L = f*v*dx