refinePDEMmesh

版本 1.0.1 (5.7 KB) 作者: Ian Jentz
A port of the legacy function refinemesh() into the R2020b pde toolbox.
184.0 次下载
更新时间 2020/10/2

查看许可证

Mesh refinement for PDE models produced using the PDE toolbox. This only works for 2D models with linear triangular elements. This implementation ports the legacy refinemesh() function, which operated in the p e t mesh variable space, into the Matlab's current pde toolbox (R2020b).

Note the pde model must be meshed before calling refinePDEMmesh(), i.e. use generateMesh().

Examples:
pdem = refinePDEMmesh(pdem); % this will refine all elements within pdem.Mesh
pdem = refinePDEMmesh(pdem,[1,2,3]); % this will refine elements within faces 1, 2 and 3 of the model pdem
pdem = refinePDEMmesh(pdem,[10;20;30]); % this will refine elements 10, 20, and 30
[pdem,u1] = refinePDEMmesh(pdem,u); % this will refine all elements and interpolate nodal values u to the new mesh and output the expanded nodal values as u1.

Tip: use pdem.Mesh.findNodes() and pdem.Mesh.findElements() to find the mesh elements you want to refine.

This function is based on the original refinemesh() function written by A. Nordmark, Copyright 1994-2017 The MathWorks, Inc.

引用格式

Ian Jentz (2024). refinePDEMmesh (https://www.mathworks.com/matlabcentral/fileexchange/80653-refinepdemmesh), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2020b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.1

Added a thumbnail image.

1.0.0