Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo


[e97587]: src / Plot_2d.ufl Maximize Restore History

Download this file

Plot_2d.ufl    21 lines (15 with data), 769 Bytes

# Copyright (C) 2013 Marco Vassallo

# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.

# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.

# You should have received a copy of the GNU General Public License along with
# this program; if not, see <http://www.gnu.org/licenses/>.
CG = FiniteElement("Lagrange", triangle, 1)

u = TrialFunction (CG)
v = TestFunction (CG)

a = u*v*dx