def __init__(self, obj, system): Material.__init__(self, obj, system) obj.addProperty("App::PropertyFloat", "Young", "Solid", "Young's modulus").Young = 0.0 obj.addProperty("App::PropertyFloat", "Shear", "Solid", "Shear modulus").Shear = 0.0 obj.addProperty("App::PropertyFloat", "Poisson", "Solid", "Poisson's ratio").Poisson = 0.0
def __init__(self, name="elasticmaterial"): """ Constructor. """ Material.__init__(self, name) return
def __init__(self, obj, system): Material.__init__(self, obj, system)
def __init__(self, obj, system): Material.__init__(self, obj, system) obj.addProperty("App::PropertyFloat", "Young", "Solid", "Young's modulus").Young=0.0 obj.addProperty("App::PropertyFloat", "Shear", "Solid", "Shear modulus").Shear=0.0 obj.addProperty("App::PropertyFloat", "Poisson", "Solid", "Poisson's ratio").Poisson=0.0