mixedpoissonbc.form
来自「finite element library for mathematic ma」· FORM 代码 · 共 29 行
FORM
29 行
# Copyright (C) 2007 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 non-homogenous boundary# conditions, namely:# - div grad u = f# u(x) = g(x) for x on (parts of) boundary# Compile this form with FFC: ffc MixedPoissonBC.formq = 1shape = "triangle"BDM = FiniteElement("Brezzi-Douglas-Marini", shape, q)DG = FiniteElement("Discontinuous Lagrange", shape, q - 1)mixed_element = BDM + DG(tau, w) = TestFunctions(mixed_element)(sigma, u) = TrialFunctions(mixed_element)f = Function(DG) g = Function(DG) n = FacetNormal(shape)a = (dot(tau, sigma) - div(tau)*u + w*div(sigma))*dxL = w*f*dx - dot(tau, n)*g*ds
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?