Maple & MapleSim分享 http://blog.sciencenet.cn/u/maplesim

博文

求偏微分方程的数值解(有限差分法、配置法、Galerkin方法)

已有 4089 次阅读 2021-6-22 12:09 |个人分类:Maple基础学习|系统分类:科研笔记

偏微分方程PDE通常用于描述各种各样的现象,例如声、热、电、电动力学、弹性力学、流体力学等。

计算环境:Maple 2015 - Maple 2021

计算文件下载:

pde_approximation.zip

image.png


Finite difference method

  • approximate differential equations using finite difference equations to approximate derivatives


Collocation method

  • uses a finite-dimensional space of basis functions and collocation points to approximate PDEs


Galerkin's technique

  • uses orthogonality of a set of basis function to turn PDEs into coupled sets of ODEs


Finite difference method

  • The derivatives of the PDE are approximated by linear combinations of function values at the structured grid points, using a Taylor series expansion

image.png

Collocation method

  • Define the basis function (usually polynomials) and approximate solution:

image.png

  • Calculate residual function by substituting the candidate function into the original PDE

  • Choose the collocation points at which the candidate function must exactly match


image.png

Galerkin's method

  • Define the basis function (usually orthogonal polynomials) and approximate solution as

image.png

  • Calculate residual function by substituting the candidate function into the original PDE

  • Minimize the residual using Least Squares Error 

image.png


Maple中的计算文件:

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png


基于PDE的应用示例:

image.png

image.png


Whitepaper-Developing_Mathematical_Models_of_Batteries.pdf




https://blog.sciencenet.cn/blog-516836-1292219.html

上一篇:Maple 2021中的常微分方程Student[ODEs]学习包,自动显示微分方程的分步求解过程细节
收藏 IP: 210.13.118.*| 热度|

0

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

数据加载中...

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

GMT+8, 2024-11-22 23:56

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部