SyFi 0.3
|
Classes | |
class | DirichletBoundary |
Variables | |
string | __author__ = "Anders Logg (logg@simula.no)" |
string | __date__ = "2007-08-16 -- 2008-12-13" |
string | __copyright__ = "Copyright (C) 2007-2008 Anders Logg" |
string | __license__ = "GNU LGPL Version 2.1" |
tuple | mesh = UnitSquare(32, 32) |
tuple | V = FunctionSpace(mesh, "CG", 1) |
tuple | u0 = Constant(0.0) |
tuple | bc = DirichletBC(V, u0, DirichletBoundary()) |
tuple | v = TestFunction(V) |
tuple | u = TrialFunction(V) |
tuple | f = Expression("500.0 * exp(-(pow(x[0] - 0.5, 2) + pow(x[1] - 0.5, 2)) / 0.02)") |
tuple | ff = Function(V) |
tuple | a = dot(grad(v), grad(u)) |
L = v*ff*dx | |
tuple | problem = VariationalProblem(a, L, bc) |
This demo program solves Poisson's equation - div grad u(x, y) = f(x, y) on the unit square with source f given by f(x, y) = 500*exp(-((x - 0.5)^2 + (y - 0.5)^2) / 0.02) and boundary conditions given by u(x, y) = 0 for x = 0 or x = 1
string demo::__author__ = "Anders Logg (logg@simula.no)" |
string demo::__copyright__ = "Copyright (C) 2007-2008 Anders Logg" |
string demo::__date__ = "2007-08-16 -- 2008-12-13" |
string demo::__license__ = "GNU LGPL Version 2.1" |
Definition at line 44 of file demo.py.
Referenced by SyFi::homogenous_pol(), SyFi::inner(), SyFi::lagrange(), SyFi::lagrangev(), SyFi::lst_equals(), main(), and setDigits().
tuple demo::f = Expression("500.0 * exp(-(pow(x[0] - 0.5, 2) + pow(x[1] - 0.5, 2)) / 0.02)") |
Definition at line 41 of file demo.py.
Referenced by SyFi::grad(), SyFi::legendre(), main(), SyFi::pol(), and SyFi::polb().
tuple demo::mesh = UnitSquare(32, 32) |
Definition at line 40 of file demo.py.
Referenced by SyFi::Robust::compute_basis_functions(), SyFi::RaviartThomas::compute_basis_functions(), SyFi::Nedelec2Hdiv::compute_basis_functions(), SyFi::Robust::compute_basis_functions_old(), compute_poisson_element_matrix(), SWIG_PackData(), and SWIG_UnpackData().
Definition at line 39 of file demo.py.
Referenced by swig::traits_as< Type *, pointer_category >::as(), swig::traits_as< Type, pointer_category >::as(), swig::traits_as< Type, value_category >::as(), SyFi::collect_symbols(), SyFi::Hermite::compute_basis_functions(), SyFi::count_ops(), SyFi::count_symbols(), SyFi::div(), SyFi::extract_symbols(), DofT< D, C >::insert_dof(), SyFi::Simplex::sub_simplex(), SWIG_AsVal_double(), SWIG_AsVal_int(), SWIG_AsVal_long(), SWIG_AsVal_ptrdiff_t(), SWIG_AsVal_size_t(), SWIG_AsVal_unsigned_SS_int(), SWIG_AsVal_unsigned_SS_long(), and SwigPyObject_dealloc().
Definition at line 27 of file demo.py.
Referenced by SyFi::Robust::compute_basis_functions(), and SyFi::Robust::compute_basis_functions_old().