def __init__(self, obj, material, part): ComponentStructural.__init__(self, obj, material, part) obj.addProperty("App::PropertyLength", "Length", "Beam", "Length of the beam") obj.setEditorMode("MaxLength", 1) obj.addProperty("App::PropertyFloat", "CrossSection", "Beam", "Cross section of the beam") obj.setEditorMode("CrossSection", 1) obj.addProperty("App::PropertyFloat", "MassPerArea", "Beam", "Mass per unit area") obj.setEditorMode("MassPerArea", 1) obj.addProperty("App::PropertyFloat", "AreaMoment", "Beam", "Area moment of inertia") obj.setEditorMode("AreaMoment", 1) self.SubsystemLong = obj.makeSubsystem(SubsystemLong()) self.SubsystemBend = obj.makeSubsystem(SubsystemBend()) self.SubsystemShear = obj.makeSubsystem(SubsystemShear())
def __init__(self, obj, system, material, part): obj.addProperty("App::PropertyFloat", "Length", self.name, "Length of the plate.") obj.setEditorMode("Length", 1) obj.addProperty("App::PropertyFloat", "Width", self.name, "Width of the plate.") obj.setEditorMode("Width", 1) ComponentStructural.__init__(self, obj, system, material, part) obj.addProperty("App::PropertyFloat", "Area", self.name, "Area of the plate.") obj.setEditorMode("Area", 1) obj.addProperty("App::PropertyFloat", "Thickness", self.name, "Thickness of the plate.") obj.setEditorMode("Thickness", 1) obj.addProperty("App::PropertyFloat", "MassPerArea", self.name, "Mass per unit area.") obj.setEditorMode("MassPerArea", 1) self.calc_area_and_thickness(obj) self.SubsystemLong = obj.makeSubsystem(SubsystemLong) self.SubsystemBend = obj.makeSubsystem(SubsystemBend) self.SubsystemShear = obj.makeSubsystem(SubsystemShear)
def __init__(self, obj, material, part): ComponentStructural.__init__(self, obj, material, part) obj.addProperty("App::PropertyLength", "Length", "Beam", "Length of the beam") obj.setEditorMode("MaxLength", 1) obj.addProperty("App::PropertyFloat", "CrossSection", "Beam", "Cross section of the beam") obj.setEditorMode("CrossSection", 1) obj.addProperty("App::PropertyFloat", "MassPerArea", "Beam", "Mass per unit area") obj.setEditorMode("MassPerArea", 1) obj.addProperty("App::PropertyFloat", "AreaMoment", "Beam", "Area moment of inertia") obj.setEditorMode("AreaMoment", 1) self.SubsystemLong = obj.makeSubsystem(SubsystemLong()) self.SubsystemBend = obj.makeSubsystem(SubsystemBend()) self.SubsystemShear = obj.makeSubsystem(SubsystemShear())
def __init__(self, obj, system, material, part): obj.addProperty("App::PropertyFloat", "Length", self.name, "Length of the plate.") obj.setEditorMode("Length", 1) obj.addProperty("App::PropertyFloat", "Width", self.name, "Width of the plate.") obj.setEditorMode("Width", 1) ComponentStructural.__init__(self, obj, system, material, part) obj.addProperty("App::PropertyFloat", "Area", self.name, "Area of the plate.") obj.setEditorMode("Area", 1) obj.addProperty("App::PropertyFloat", "Thickness", self.name, "Thickness of the plate.") obj.setEditorMode("Thickness", 1) obj.addProperty("App::PropertyFloat", "MassPerArea", self.name, "Mass per unit area.") obj.setEditorMode("MassPerArea", 1) self.calc_area_and_thickness(obj) self.SubsystemLong = obj.makeSubsystem(SubsystemLong) self.SubsystemBend = obj.makeSubsystem(SubsystemBend) self.SubsystemShear = obj.makeSubsystem(SubsystemShear)