- It is part of Partial Differential Equations Toolbox, so you will need to have that product installed and licensed to use this function. You can check the ver function to determine if you have it installed.
- This function requires its first input to be a PDEModel created with createpde. You cannot simply call it with a matrix or array as the first input.
GenerateMesh not working in matlab 2016
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Diogo Ferreira
il 26 Apr 2018
Commentato: Diogo Ferreira
il 28 Apr 2018
I can't use generatemesh in my 2016 matlab. Is there a problem with it or is the version too old for this funciton? Is there any way to do the genereatemesh with a function created by me? We need to make a study where we use finite element method ans Gauss. For that we need to use nodes in a specific form and calculate the heat flux for each one. So in this generatemesh eah node has to have information for itself.
0 Commenti
Risposta accettata
Steven Lord
il 26 Apr 2018
The item at the end of the documentation page for generateMesh indicates it was introduced in release R2015a. There are a couple different potential reasons why you would not be able to successfully use this function.
If neither of those issues apply to your attempted use of this function, please show us what happens (with a SMALL section of code, ideally) when you try to use it. If you receive a warning or error message when you try to run that code, show the full text (everything in orange or red) of the warning or error message.
7 Commenti
Steven Lord
il 27 Apr 2018
The documentation for generateMesh starts off with the description "Create triangular or tetrahedral mesh". I wouldn't expect it to try to mesh with rectangles. In the "More About" section on that page it describes that triangles representing quadratic elements have nodes at the triangle corners and edge centers, and that matches what I see when I update the graphics to include markers for the nodes. [I'm using release R2018a to run this code, but I think I'm not using anything newer than your release.]
>> model = createpde;
>> r1 = [3 4 -0.5 0.5 0.5 -0.5 -0.8 -0.8 0.8 0.8];
>> r2 = [3 4 -0.05 0.05 0.05 -0.05 -0.4 -0.4 0.4 0.4];
>> gdm = [r1; r2]';
>> g = decsg(gdm, 'R1-R2', ['R1'; 'R2']');
>> geometryFromEdges(model, g);
>> generateMesh(model, 'GeometricOrder', 'quadratic');
>> h = pdemesh(model);
>> h(1).Marker = 'o';
>> h(2).Marker = '^';
So I don't think you can "fix" this; I don't think anything's wrong, unless I'm misunderstanding your concern.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Geometry and Mesh in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!