mixedpoisson.form

来自「利用C」· FORM 代码 · 共 23 行

FORM
23
字号
# Copyright (C) 2006-2007 Anders Logg (logg@simula.no)# Licensed under the GNU LGPL Version 2.1## The bilinear form a(v, u) and linear form L(v) for# a mixed formulation of Poisson's equation with BDM# (Brezzi-Douglas-Marini) elements.# Compile this form with FFC: ffc -l dolfin MixedPoisson.formq = 1BDM = FiniteElement("Brezzi-Douglas-Marini", "triangle", q)DG  = FiniteElement("Discontinuous Lagrange", "triangle", q - 1)mixed_element = BDM + DG(v, w) = TestFunctions(mixed_element)(q, u) = TrialFunctions(mixed_element)f = Function(DG)a = (dot(v, q) - div(v)*u + w*div(q))*dxL = w*f*dx

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?