Does the Matlab 2023a allow to solve 3D partial differential equations?
Ältere Kommentare anzeigen
I need to get a stationary heat field in a 3D object with heat source and convection. Does current Matlab version allow it?
Thanks
5 Kommentare
Torsten
am 18 Okt. 2024
Did you check whether the PDE Toolbox solves the type of equations you want ?
Fyodor Tatarinov
am 19 Okt. 2024
Bearbeitet: Walter Roberson
am 19 Okt. 2024
You can see from the examples given that in the meantime, the PDE Toolbox also solves general 3d-problems.
And since the heat equation is one of the standard PDEs, I think it is suited to solve the problem you have in mind.
Fyodor Tatarinov
am 25 Okt. 2024
Torsten
am 25 Okt. 2024
I don't have experience in creating geometries and meshes using the PDE Toolbox, sorry.
Antworten (2)
Mr. Pavl M.
am 18 Okt. 2024
0 Stimmen
Of course OK.
Ravi Kumar
am 25 Okt. 2024
Bearbeitet: Ravi Kumar
am 26 Okt. 2024
Hi Fyodor,
You can create the geometry that you describe in PDE Toolbox. Here is an example. Adjust the dimensions as per your problem:
First create a 2-D geometry with two concentric circles. We will extrude this 2-D geometry to get the desired 3-D shape.
C1 = [1;0;0;0.5];
C2 = [1;0;0;1];
sf = 'C1+C2';
ns = char('C1', 'C2');
gd = [C1,C2];
gm2D = fegeometry(decsg(gd,sf,ns'));
pdegplot(gm2D)
Next, extrude the geometry for two heights to get a stack of concentric cylinders.
gm3D = extrude(gm2D,[0.5,0.5]);
pdegplot(gm3D,'FaceLabels','on')
Then you can extrude only the inner face at the top.
gm3D = extrude(gm3D,6,0.5);
pdegplot(gm3D,'CellLabels','on','FaceAlpha',0.5)
By now, you have the geometry you need. We can do some cleanup to remove unwanted cells using mergeCells() function.
gm3D = mergeCells(gm3D,[1,2]);
pdegplot(gm3D,'CellLabels','on','FaceAlpha',0.5)
gm3D = mergeCells(gm3D,[1,2]);
pdegplot(gm3D,'CellLabels','on','FaceAlpha',0.5)
gm3D = mergeCells(gm3D,[2,3]);
pdegplot(gm3D,'CellLabels','on','FaceAlpha',0.5)
I would also suggest you consider performing an axisymmetric analysis, that would reduce the problem size drastically. Please see this example.
3 Kommentare
Are there tutorials that teach the built-up of easy and more complicated geometries using the PDE Toolbox ? Or does it usually start with imported geometries from CAD tools ?
Ravi Kumar
am 26 Okt. 2024
Hi Torsten,
You can import STL and STEP files OR you can use geometry functions to build complicated geometry using primitives as building blocks. You can find some examples on creating complicated geometry starting from primitive shapes.
Few complicated examples:
- https://www.mathworks.com/help/pde/ug/battery-module-geometry.html
- https://www.mathworks.com/help/pde/ug/battery-module-cooling-analysis-and-reduced-order-thermal-model.html
- https://www.mathworks.com/help/pde/ug/electrostatic-analysis-of-transformer-bushing-insulator.html
-Ravi
Fyodor Tatarinov
am 26 Okt. 2024
Kategorien
Mehr zu Geometry and Mesh finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!





