def makeMaterialMechanicalNonlinear(doc, base_material, name="MechanicalMaterialNonlinear"):
    '''makeMaterialMechanicalNonlinear(document, base_material, [name]): creates a nonlinear material object'''
    obj = doc.addObject("Fem::FeaturePython", name)
    from femobjects import _FemMaterialMechanicalNonlinear
    _FemMaterialMechanicalNonlinear._FemMaterialMechanicalNonlinear(obj)
    obj.LinearBaseMaterial = base_material
    if FreeCAD.GuiUp:
        from femguiobjects import _ViewProviderFemMaterialMechanicalNonlinear
        _ViewProviderFemMaterialMechanicalNonlinear._ViewProviderFemMaterialMechanicalNonlinear(obj.ViewObject)
    return obj
Beispiel #2
0
def makeMaterialMechanicalNonlinear(doc,
                                    base_material,
                                    name="MechanicalMaterialNonlinear"):
    '''makeMaterialMechanicalNonlinear(document, base_material, [name]): creates a nonlinear material object'''
    obj = doc.addObject("Fem::FeaturePython", name)
    from femobjects import _FemMaterialMechanicalNonlinear
    _FemMaterialMechanicalNonlinear._FemMaterialMechanicalNonlinear(obj)
    obj.LinearBaseMaterial = base_material
    if FreeCAD.GuiUp:
        from femguiobjects import _ViewProviderFemMaterialMechanicalNonlinear
        _ViewProviderFemMaterialMechanicalNonlinear._ViewProviderFemMaterialMechanicalNonlinear(
            obj.ViewObject)
    return obj