How can I refine a portion of my mesh?
古いコメントを表示
I have a 2-D grid that needs to be very fine to capture the physics. The problem with using meshgrid or ndgrid is that it plots points outside of my boundary. In order to have a grid that is fine enough, the code either takes several hours to run or the computer runs out of memory. I have identified what points are outside of my geometry in the form of a mxn logical (1's for any point in the boundary, 0's for any point outside of the boundary). I am trying to refine my mesh with the geometry after finding the boundaries. The final mesh will be a non-uniform mesh with 'NaN' at points outside of the geometry and a small grid spacing in x and y-directions. Ideally, the grid would be very fine near the upper and lower walls (y-direction) and widen in the middle, and decrease in grid spacing in the x-direction as the x increases.
Any thoughts on how I can refine an existing grid at specified locations?
5 件のコメント
darova
2019 年 9 月 30 日
Can you post some code, image or data?
Alexandra McClernon Ownbey
2019 年 9 月 30 日
編集済み: Alexandra McClernon Ownbey
2019 年 9 月 30 日
darova
2019 年 9 月 30 日
Is it possible for me to use this data or it's for SpaceX projects?
load flow.mat
load surface_flow.mat
Alexandra McClernon Ownbey
2019 年 9 月 30 日
darova
2019 年 9 月 30 日
Where is the image?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!