メインコンテンツ

antenna.Circle

xy 平面上の原点を中心とする円の作成

説明

antenna.Circle オブジェクトを使用して、xy 平面上に原点を中心とする円を作成します。antenna.Circle を使用すると、pcbStack を使用して単層または多層のアンテナを作成できます。

作成

説明

cir = antenna.Circle は、xy 平面上に原点を中心とする円を作成します。

cir = antenna.Circle(PropertyName=Value) は、名前と値の引数を 1 つ以上使用してプロパティを設定します。PropertyName はプロパティ名、Value は対応する値です。PropertyName1=Value1,...,PropertyNameN=ValueN のように、複数の名前と値の引数を任意の順番で指定できます。指定されなければ、プロパティは既定値を保持します。

たとえば、cir = antenna.Circle(Radius=2) は半径 2 m の円を作成します。

プロパティ

すべて展開する

円の名前。string として指定します。

例: "Circle1"

データ型: string

円の中心の直交座標。メートル単位の 2 要素ベクトルとして指定します。

例: [0.006 0.006]

データ型: double

円の半径。メートル単位のスカラーとして指定します。

例: 2

データ型: double

円周上の離散化点の数。スカラーとして指定します。

例: 16

データ型: double

オブジェクト関数

addPerform Boolean unite operation on two shapes
subtractPerform Boolean subtraction operation on two shapes
intersectGenerate and plot intersection of two shapes
plusJoin two shapes
minusCarve a shape from other shape
andPerform Boolean intersection operation on two shapes
areaCalculate area of 2-D shapes in square meters
showアンテナ、アレイ、AI ベースのアンテナ、プラットフォーム、または形状の表示
plotPlot boundary of 2-D shape
meshGenerate and view mesh for antennas, arrays, and custom shapes
rotateRotate shape about axis by angle
rotateXRotate shape about x-axis by angle
rotateYRotate shape about y-axis by angle
rotateZRotate shape about z-axis by angle
translate形状を新しい位置に移動する
scaleChange size of shape by fixed factor
mirrorXMirror shape along x-axis
mirrorYMirror shape along y-axis
removeHolesRemove holes from shape
removeSliversRemove sliver outliers from shape boundary

すべて折りたたむ

antenna.Circle を使用して円を作成し、表示します。

c1 = antenna.Circle
c1 = 
  Circle with properties:

         Name: 'mycircle'
       Center: [0 0]
       Radius: 1
    NumPoints: 30

show(c1)

Figure contains an axes object. The axes object with xlabel x (m), ylabel y (m) contains 2 objects of type patch. These objects represent PEC, mycircle.

原点を中心とする半径 4 m の円を作成します。

c2 = antenna.Circle(Radius=4)
c2 = 
  Circle with properties:

         Name: 'mycircle'
       Center: [0 0]
       Radius: 4
    NumPoints: 30

半径 1 m の円を作成します。円の中心は [1 0] にあります。

circle1 = antenna.Circle(Center=[1 0],Radius=1);

原点を中心とする、長さ 2 m、幅 4 m の長方形を作成します。

rect1 = antenna.Rectangle(Length=2,Width=2);

+ 関数を使用して、2 つの形状を結合します。

polygon1 = circle1+rect1
polygon1 = 
  Polygon with properties:

        Name: 'mypolygon'
    Vertices: [21×3 double]

show(polygon1)

Figure contains an axes object. The axes object with xlabel x (m), ylabel y (m) contains 2 objects of type patch. These objects represent PEC, mypolygon.

バージョン履歴

R2017a で導入