||
FEnics的算例介绍在这里:
http://fenicsproject.org/documentation/tutorial/fundamentals.html#the-poisson-equation
方程:
$\frac{\partial^2 u}{\partial x^2}+\frac{\partial^2 u}{\partial y^2}=6$
区域
$\Omega =[0,1]\times [0,1]$
边界条件:四边满足第一边界条件
$u0=1+x^{_{2}}+2y^{_{2}}$
问题的精确解为:
$u=1+x^{_{2}}+2y^{_{2}}$
FEnicS解:
FEPG 解
FEPG 程序代码
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-10-19 22:09
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社