view example/Advection-Diffusion/Advection_Diffusion.ufl @ 98:46598cedb076

New example based on the one avilable with bim pkg. *
author gedeone-octave <marcovass89@hotmail.it>
date Mon, 12 Aug 2013 20:42:39 +0200
parents
children 68262f409ac4
line wrap: on
line source

# Copyright (C) 2005-2009 Anders Logg
element = FiniteElement("Lagrange", tetrahedron, 1)


u = TrialFunction(element)
v = TestFunction(element)

mu = Coefficient(element)
phi = Coefficient(element)

a = mu*inner(grad(u), grad(v))*dx - u * inner (grad(phi), grad (v))*dx
L = 0