주요 콘텐츠

DiscreteGeometry

이산 2차원 또는 3차원 지오메트리 설명

    설명

    DiscreteGeometry는 이산 지오메트리 객체 형식으로 2차원 또는 3차원 지오메트리를 설명합니다. PDEModel 객체, StructuralModel 객체, ThermalModel 객체는 Geometry 속성을 가지며, 이 속성은 AnalyticGeometry 또는 DiscreteGeometry 객체일 수 있습니다.

    생성

    다음 접근 방식 중 하나를 사용하여 모델에 대한 이산 지오메트리를 만듭니다.

    • importGeometry를 사용하여 STL 파일에서 2차원 또는 3차원 지오메트리를 가져오거나 STEP 파일에서 3차원 지오메트리를 가져와 이를 모델에 연결합니다.

    • geometryFromMesh를 사용하여 메시로부터 2차원 또는 3차원 지오메트리를 재구성하고 이를 모델에 연결합니다.

    • multicuboid, multicylinder 또는 multisphere를 사용하여 3차원 지오메트리를 만듭니다. 그런 다음, 결과 지오메트리를 모델의 Geometry 속성에 할당합니다. 예를 들어, PDE 모델을 만들고 3개의 구로 구성된 다음 지오메트리를 모델에 추가합니다.

      model = createpde;
      gm = multisphere([1,2,3]);
      model.Geometry = gm;
    • extrude를 사용해 2차원 지오메트리를 세로로 압출하여 3차원 지오메트리를 만듭니다.

    속성

    모두 확장

    지오메트리 셀 개수로, 음이 아닌 정수로 지정됩니다.

    데이터형: double

    지오메트리 면 개수로, 양의 정수로 지정됩니다.

    데이터형: double

    지오메트리 모서리 개수로, 음이 아닌 정수로 지정됩니다.

    데이터형: double

    지오메트리 꼭짓점 개수로, 음이 아닌 정수로 지정됩니다.

    데이터형: double

    지오메트리 꼭짓점의 좌표로, 2차원 또는 3차원 지오메트리에 대해 각각 N×2 또는 N×3 숫자형 행렬로 지정됩니다. 여기서 N은 꼭짓점 개수입니다.

    데이터형: double

    객체 함수

    addCell한 지오메트리를 다른 지오메트리의 셀 안에 추가하는 방식으로 두 지오메트리 결합
    addFaceFill void regions in 2-D and split cells in 3-D geometry
    addVertexAdd vertex on geometry boundary
    addVoidCreate void regions inside 3-D geometry
    cellEdgesFind edges belonging to boundaries of specified cells
    cellFacesFind faces belonging to specified cells
    extrudeVertically extrude 2-D geometry or specified faces of 3-D geometry
    faceEdgesFind edges belonging to specified faces
    facesAttachedToEdgesFind faces attached to specified edges
    mergeCellsMerge geometry cells
    nearestEdgeFind edges nearest to specified point
    nearestFaceFind faces nearest to specified point
    rotateRotate geometry
    scaleScale geometry
    translateTranslate geometry

    예제

    모두 축소

    multicylinder 함수를 사용하여 높이가 동일한 3개의 원통으로 구성된 지오메트리를 만듭니다.

    gm = multicylinder([5 10 15],20)
    gm = 
      DiscreteGeometry with properties:
    
           NumCells: 3
           NumFaces: 9
           NumEdges: 6
        NumVertices: 6
           Vertices: [6×3 double]
    
    

    지오메트리를 플로팅합니다.

    pdegplot(gm,FaceAlpha=0.5)

    Figure contains an axes object. The axes object contains 6 objects of type quiver, text, patch, line.

    STL 지오메트리 파일에서 지오메트리를 가져옵니다.

    gm = importGeometry("ForearmLink.stl")
    gm = 
      DiscreteGeometry with properties:
    
           NumCells: 1
           NumFaces: 147
           NumEdges: 329
        NumVertices: 213
           Vertices: [213×3 double]
    
    

    지오메트리를 플로팅합니다.

    pdegplot(gm)

    Figure contains an axes object. The axes object contains 6 objects of type quiver, text, patch, line.

    버전 내역

    R2015a에 개발됨