SyFi
0.3
|
Classes | |
class | DirichletBoundary |
Variables | |
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 | ok = (u.vector().norm("l2") - 142.420764968) |
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
Definition at line 63 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 60 of file demo.py.
Referenced by SyFi.grad(), SyFi.legendre(), main(), SyFi.pol(), SyFi.polb(), and SWIG_Python_NonDynamicSetAttr().
tuple demo::mesh = UnitSquare(32, 32) |
Definition at line 59 of file demo.py.
Referenced by SyFi::Nedelec2Hdiv.compute_basis_functions(), SyFi::Robust.compute_basis_functions(), SyFi::RaviartThomas.compute_basis_functions(), SyFi::Robust.compute_basis_functions_old(), compute_poisson_element_matrix(), SWIG_PackData(), and SWIG_UnpackData().
Definition at line 46 of file demo.py.
Referenced by SyFi::Robust.compute_basis_functions(), and SyFi::Robust.compute_basis_functions_old().
Definition at line 58 of file demo.py.
Referenced by swig::traits_as< Type, value_category >.as(), swig::traits_as< Type, pointer_category >.as(), swig::traits_as< Type *, pointer_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().