Edit- found the reason why. Turns out I needed to install MATLAB 2021b and delete my current MATLAB version (2021a) since the PDE toolbox on 2021a had bugs. Does anyone know if there's a way to merge the 2021b version to 2021a version? All the documentation I read so far has said that it's better to delete the older MATLAB version and just use the newest version.
Refined Mesh with generateMesh() using PDE toolbox
조회 수: 13 (최근 30일)
이전 댓글 표시
I'm trying to create a refined mesh on specific edges on my geometry with generateMesh(). My original program has the following for creating a mesh using the PDE tool box.
generateMesh(tModel,... % create mesh from geometry
'GeometricOrder','linear',... % elements are 3-noded
'Hmin',Hmin,... % miminum edge length
'Hmax',Hmax,... % maximum edge length
'Hgrad',Hgrad); % mesh element growth rate
To create a refined mesh on specispecific edges I tried inputting the following in this documentation:
generateMesh(tModel,'Hedge',{[42:101],0.001});%'Hvertex',{[6 7],0.002});
But when I run this command in MATLAB, I get an error saying that "Hedge" isn't a recognized parameter (see below). I also tried using "Hvertex" instead, and I get the same error. I'm a little bit confused because this input is supported in the PDE toolbox documentation.
'Hedge' is not a recognized parameter. For a list
of valid name-value pair arguments, see the
documentation for this function.
Error in createThermalModelArkChamber (line 40)
m3 =
generateMesh(tModel,'Hedge',{[42:101],0.001});%'Hvertex',{[6
7],0.002});
댓글 수: 0
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Geometry and Mesh에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!