数力计分享 http://blog.sciencenet.cn/u/baibing

博文

FEPG实现FEniCS中带解析解的算例

已有 3671 次阅读 2014-11-8 13:29 |个人分类:学习随笔|系统分类:科研笔记

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 程序代码

heat.rar




https://blog.sciencenet.cn/blog-58025-842050.html

上一篇:八卦一次--好声音 汪峰组
下一篇:Internet Finite Element Resources
收藏 IP: 122.204.185.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-25 13:40

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部