__init__メソッド

パラメトリックモデルの__init__メソッドは、パラメトリックモデルをインスタンス化して、そのモデルの設計データをこのインスタンスと共に保存します。

FourBarクラスの__init__メソッド。

def __init__ (self,
    label       = "4bar", {The default lable for the model}
    ax          = -45, {ax-cx: The default values for design variables}
    ay          = +45,
    bx          = +65,
    by          = +260,
    cx          = +300,
    cy          = +500,
    dx          = +515,
    dy          = -85,
    ax_lim      = (-50 ,50 ), {ax_lim-cy_lim: The default values for design limits}
    ay_lim      = (-50 ,50 ), 
    bx_lim      = (+20 ,80 ),  
    by_lim      = (+180,280),
    cx_lim      = (+240,380),
    cy_lim      = (+400,620),
    dx_lim      = (+180,520),
    dy_lim      = (-100,20 ),
    
  ):

    self.label  = label {self.label-self.dy-lim: Store the design data with the object}
    self.ax     = ax     
    self.ay     = ay     
    self.bx     = bx     
    self.by     = by     
    self.cx     = cx    
    self.cy     = cy    
    self.dx     = dx    
    self.dy     = dy    
    self.ax_lim = ax_lim
    self.ay_lim = ay_lim
    self.bx_lim = bx_lim
    self.by_lim = by_lim
    self.cx_lim = cx_lim
    self.cy_lim = cy_lim
    self.dx_lim = dx_lim
    self.dy_lim = dy_lim
    self.bx_lim = bx_lim
    self.by_lim = by_lim
    self.cx_lim = cx_lim
    self.cy_lim = cy_lim
    self.dx_lim = dx_lim
    self.dy_lim = dy_lim