Using a curve to contrutct a geometry for a model in pde toolbox

조회 수: 3 (최근 30일)
Geovane Gomes
Geovane Gomes 2024년 1월 12일
답변: Aastha 2024년 11월 26일
Dear all,
How could I consctruct a geometry using a curve (x-y coordinates) for a model in the pde toolbox?
For example if I have a wing section, is it possible to 'extrude' it and transform the solid in a geometry for a model?
  댓글 수: 2
John D'Errico
John D'Errico 2024년 1월 12일
If all you will do is extrude it, thus extend it in the perpendicular direction, then you should not do so. Instead, reduce the problem, since all derivatives in that cross direction should be zero. (Look for the terms plane stress and plane strain. You should have learned about them in your studies.) This is a common practice in engineering, thus converting a 3-dimensional problem to a problem in only 2 dimensions.
Is that correct here? Probably not, since you don't really want to simply extrude it in that direction, but make a profile that will change with Z, thus the third dimension.
Geovane Gomes
Geovane Gomes 2024년 1월 13일
John, thanks for your answer.
And how could I create a 2d geometry from the x-y coordinates?

댓글을 달려면 로그인하십시오.

답변 (1개)

Aastha
Aastha 2024년 11월 26일
I understand that you want to perform an extrusion operation using the x-y coordinates for a wing section model with the MATLAB PDE toolbox. To do this, you first need to create a 2D geometry from your x-y coordinates and then use the "extrude" function in MATLAB from the PDE toolbox to carry out the extrusion.
To create a 2D geometry from the x-y coordinates, you can use the “polyshape” function in MATLAB. An example on how to use to the “polyshape” function is mentioned below:
geometry = polyshape(xcoordinates, ycoordinates(:, 2));
plot(geometry);
tr_geometry = triangulation(geometry);
Create a PDE model, visualize the geometry and then plot it. The MATLAB code snippet below provides an example on how to do so:
pdem = createpde; % Create a PDE Model
pdem.GeometryFromMesh(tr_geometry.Points', tr_geometry.ConnectivityList');
pdegplot(pdem, 'VertexLabels', 'on');
For any further information on “extrude”, “pdeplot”, “triangulation” and “polyshape” function, you may refer to the links of MathWorks documentation mentioned below:
You can use the "extrude" function to extrude the model along the z-axis as illustrated in the MATLAB code below:
extrusionHeight = 4; % specify the extrusion height here
extrude(pdem.Geometry, extrusionHeight);
I hope this helps!

카테고리

Help CenterFile Exchange에서 Geometry and Mesh에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by