Esempio n. 1
0
    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
Esempio n. 2
0
 def __init__(self, name="elasticmaterial"):
   """
   Constructor.
   """
   Material.__init__(self, name)
   return
Esempio n. 3
0
 def __init__(self, name="elasticmaterial"):
     """
 Constructor.
 """
     Material.__init__(self, name)
     return
Esempio n. 4
0
 def __init__(self, obj, system):
     Material.__init__(self, obj, system)
Esempio n. 5
0
    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