MATLAB 도움말 센터
Area of 2-D mesh elements
A = area(mesh)
[A,AE] = area(mesh)
A = area(mesh,elements)
A = area(mesh) returns the area A of the entire mesh.
A
mesh
example
[A,AE] = area(mesh) also returns a row vector AE containing areas of each individual element of the mesh.
AE
A = area(mesh,elements) returns the combined area of the specified elements of the mesh.
elements
collapse all
Generate a 2-D mesh and find its area.
Create a PDE model.
model = createpde;
Include the geometry of the built-in function lshapeg. Plot the geometry.
lshapeg
geometryFromEdges(model,@lshapeg); pdegplot(model,"FaceLabels","on")
Generate a mesh and plot it.
mesh = generateMesh(model); figure pdemesh(model)
Compute the area of the entire mesh.
ma = area(mesh)
ma = 3.0000
Generate a 2-D mesh and find the area of each element.
Compute the area of the entire mesh and the area of each individual element of the mesh. Display the areas of the first 5 elements.
[ma,mi] = area(mesh); mi(1:5)
ans = 1×5 0.0054 0.0054 0.0050 0.0055 0.0055
Find the combined area of the elements associated with a particular face of a 2-D mesh.
Find the elements associated with face 1 and compute the total area of these elements.
Ef1 = findElements(mesh,"region","Face",1); maf1 = area(mesh,Ef1)
maf1 = 1
Find how much of the total mesh area belongs to these elements. Return the result as a percentage.
maf1_percent = maf1/area(mesh)*100
maf1_percent = 33.3333
Mesh
PDEModel
generateMesh
Mesh object, specified as the Mesh property of a PDEModel object or as the output of generateMesh.
Example: model.Mesh
model.Mesh
Element IDs, specified as a positive integer or a matrix of positive integers.
Example: [10 68 81 97 113 130 136 164]
[10 68 81 97 113 130 136 164]
Area of the entire mesh or the combined area of the specified elements of the mesh, returned as a positive number.
Areas of individual elements, returned as a row vector of positive numbers.
Introduced in R2018a
volume | findElements | findNodes | meshQuality | FEMesh
volume
findElements
findNodes
meshQuality
FEMesh
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의