mixedpoisson.form
来自「finite element library for mathematic ma」· FORM 代码 · 共 24 行
FORM
24 行
# Copyright (C) 2006-2007 Anders Logg (logg@simula.no) and Marie Rognes (meg@math.uio.no)"# Licensed under the GNU GPL version 3 or any later version## 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 MixedPoisson.formq = 1BDM = FiniteElement("Brezzi-Douglas-Marini", "triangle", q)DG = FiniteElement("Discontinuous Lagrange", "triangle", q - 1)mixed_element = BDM + DG(tau, w) = TestFunctions(mixed_element)(sigma, u) = TrialFunctions(mixed_element)f = Function(DG)a = (dot(tau, sigma) - div(tau)*u + w*div(sigma))*dxL = w*f*dx
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?