# Gmsh
Gmsh wrapper for MATLAB v.0.5
## MshRead
Read .msh files.
mesh = MshRead(filePath)
mesh = MshRead(filePath,'typesToExtract',typesArray)
`filePath` is the .msh file
`mesh` is a struct containing the mesh data.
typesArray contains a list of element types to extract.
See [http://gmsh.info/doc/texinfo/gmsh.html#MSH-ASCII-file-format](http://gmsh.info/doc/texinfo/gmsh.html#MSH-ASCII-file-format) for a list over available elements.
## Installation
Include the `Gmsh` folder to your path. Copy the executable `gmesh.exe` (only implemented for windows as of now) to the `Gmsh` folder.
### Example
Run `main.m` or the following code to get up and running.
addpath(fullfile('Gmsh'))
[status,cmdout] = RunGmshScript('beamMeshGenerator.geo','verbose','on');
msh = MshRead(fullfile(pwd,'mesh.msh'),'typesToExtract',[3,5])
没有合适的资源?快使用搜索试试~ 我知道了~
matlab提取文件要素代码-Gmsh:GMSHMATLAB包装器和读取器
共7个文件
m:3个
md:1个
geo:1个
需积分: 50 14 下载量 192 浏览量
2021-05-21
16:17:52
上传
评论
收藏 8KB ZIP 举报
温馨提示
matlab提取文件要素代码Gmsh 适用于MATLAB v.0.5的Gmsh包装器 MshRead 读取.msh文件。 mesh = MshRead(filePath) mesh = MshRead(filePath,'typesToExtract',typesArray) filePath是.msh文件mesh是包含网格数据的结构体。 typesArray包含要提取的元素类型的列表。 请参阅以获取可用元素的列表。 安装 将Gmsh文件夹包括在您的路径中。 将可执行文件gmesh.exe (目前仅适用于Windows)复制到Gmsh文件夹中。 例子 运行main.m或以下代码以启动并运行。 addpath(fullfile('Gmsh')) [status,cmdout] = RunGmshScript('beamMeshGenerator.geo','verbose','on'); msh = MshRead(fullfile(pwd,'mesh.msh'),'typesToExtract',[3,5])
资源详情
资源评论
资源推荐
收起资源包目录
Gmsh-master.zip (7个子文件)
Gmsh-master
beamMeshGenerator.geo 3KB
main.m 186B
mesh.msh 8KB
README.md 858B
Gmsh
RunGmshScript.m 1KB
mesh.inp 104B
MshRead.m 6KB
共 7 条
- 1
weixin_38641366
- 粉丝: 4
- 资源: 893
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1