📄 poisson.form
字号:
# Copyright (C) 2006-2007 Kristiand Oelgaard and Anders Logg.# Licensed under the GNU LGPL Version 2.1.## First added: 2006-12-05# Last changed: 2007-05-09## The bilinear form a(v, u) and linear form L(v) for# Poisson's equation in a discontinuous Galerkin (DG)# formulation.## Compile this form with FFC: ffc -l dolfin Poisson.form# Elements#DG1 = FiniteElement("Discontinuous Lagrange", "triangle", 1)#DGn = VectorElement("Discontinuous Lagrange", "triangle", 0)#DGh = FiniteElement("Discontinuous Lagrange", "triangle", 0)DG1 = FiniteElement("Discontinuous Lagrange", "tetrahedron", 1)DGn = VectorElement("Discontinuous Lagrange", "tetrahedron", 0)DGh = FiniteElement("Discontinuous Lagrange", "tetrahedron", 0)# Test and trial functionsv = TestFunction(DG1)u = TrialFunction(DG1)#n = Function(DGn)h = MeshSize("tetrahedron")#def inv(h):# return 2/(h('+') + h('-'))#a = dot(jump(v,n), avg(grad(u)))*dS#a = inv(h)*v('+')*u('-')*dS#a = avg(h)*v('+')*u('-')*dS#a = h('+')*v('+')*u('-')*dS#a = v*u*h*dsa = 1.0/h('+')*v('+')*u('-')*dS#a = avg(1.0/h)*v('+')*u('-')*dS#a = h*v*u*ds
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -