Filter löschen
Filter löschen

Refined Mesh with generateMesh() using PDE toolbox

19 Ansichten (letzte 30 Tage)
zoelle wong
zoelle wong am 31 Okt. 2021
Beantwortet: zoelle wong am 31 Okt. 2021
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});

Antworten (1)

zoelle wong
zoelle wong am 31 Okt. 2021
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.

Community Treasure Hunt

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

Start Hunting!

Translated by