当前位置:网站首页>Comsol热传导方法求解迷宫问题(路径规划)
Comsol热传导方法求解迷宫问题(路径规划)
2022-07-21 05:07:00 【jedi-knight】
生成迷宫
使用https://mazegenerator.net/生成各种各样的迷宫,可以直接下载SVG矢量图文件。
由于Comsol只能读取DXF格式的二维线图,所以需要将迷宫的SVG文件转换为DXF文件。
将DXF文件导入Comsol,并用一个更大的正方形或圆形覆盖迷宫,可得下图
之所以需要用一个大正方形覆盖迷宫,是因为导入的迷宫是曲线而非实体,只有这样才可以使迷宫内部变为实体。还需要注意的是,必须设置合适的相对修复容差以防止生成几何时失败
绘制网格与求解
绘制均匀的三角形网格,入下图
使用https://blog.csdn.net/weixin_43325228/article/details/124935560中的方法求解迷宫问题
(参考自Numerical Solving a Boundary Value Problem for the Eikonal Equation)
设置正方形上方为出口,温度为单位1,其余所有壁面为绝热的
仅需求解一个对称线性方程组即可,速度较快
结果
由温度场反演得到的近似最小距离场如下
将近似最小距离场沿高度绘制可得
从迷宫中心出发,沿着最小距离场的负梯度行走即可走出迷宫
边栏推荐
- 使用tailwind在谷歌浏览器上,button会出现蓝色背景的问题
- Realization of serpentine digital lattice Write a cube function with the input parameter of num. the requirements are as follows through JS: when num=3, the output table effect is: [[1,2,3] [6,5,4] [7
- Detailed derivation of Differential Flatness of UAV
- MySQL导入导出&视图&索引&执行计划
- 格式化时间
- Cannot read property mode of undefined
- nodemon +NodeJs + express 文件修改自动重启服务器
- Handwriting promise
- Nodejs等待一段时间
- XML parsing
猜你喜欢
16. [assignment of string ends with semicolon]
为什么用快慢指针找链表的环,快指针和慢指针一定会相遇?
MySQL之账号管理.建库以及四大引擎
xml解析
MySQL account management Database building and four engines
Recommander un éditeur de markdown facile à utiliser Mark Text
MySQL import and export & View & Index & execution plan
JS数据类型在内存上的储存原理
Dynamically listen for the height of DOM elements
uni-app 新建报错 Cannot read property mode of undefined
随机推荐
XML parsing
推薦一個好用的 所見即所得的 markdown 編輯器 Mark Text
[c language] light rises in the dull days, the initial stage and the final battle
[C language] 0.5 times the speed to explain the interesting C language playing methods of the century war
如何取到第一个子元素下的第二个子元素
【好文记录】嵌入式框架Zorb Framework搭建过程
Format time
Vs, MATLAB, leetcode annotation shortcut key
[HTTP cache]
How to play FLV format videos locally for free
In the fourth game, where is the restaurant? Shepherd boy points to Xinghua village
Relationship between prototype, prototype chain, constructor and instance
Differences and usage scenarios between usememo and usecallback
a标签下载和window.location.herf下载
C language to achieve three chess games - pattern open version(
Cannot read property mode of undefined
Crud of MySQL
之前公司的转正题目之一:合并单元格
点击返回按钮,返回到之前的页面
flutter 报错记录:navigator.dart‘: Failed assertion: line 4041 pos 12: ‘!_debugLocked‘: is not true.