dlubal-software / RFEM_Python_Client

Python client (or high-level functions) for RFEM 6 using Web Services, SOAP and WSDL
https://dlubal-software.github.io/.github/
MIT License
71 stars 27 forks source link

BUG: UserDefinedMaterial not added correctly #397

Open peter-v-w opened 2 months ago

peter-v-w commented 2 months ago

Describe the bug When I add a material to my RFEM model using Material.UserDefinedMaterial, elasticity_modulus and shear_modulus are not added to the model. Also when I try to add it as material_type=MaterialType.TYPE_CONCRETE I get the following error: suds.WebFault: b"Server raised fault: 'Object: Material No. 2\nAttribute: Material type\nError: Invalid value.'"

To Reproduce Steps to reproduce the behavior:

  1. Defined the follwoing function to add materials:
    def add_materials(self) -> None:
        """Add materials to the model."""
        Material(no=1, name="C30/37 | EN 1992-1-1:2004/A1:2014")
        Material.UserDefinedMaterial(
            no=2,
            material_type=MaterialType.TYPE_BASIC,
            name="C30/37 cracked",
            elasticity_modulus=11000,
            shear_modulus=13750,
            thermal_expansion_coefficient=0.00001,
            poisson_ratio=0.2,
            mass_density=2500,
            definition_type=MaterialDefinitionType.E_G_NU,
        )
        Material(no=3, name="S355")
  2. Adding it to my model:
        self.model = Model(new_model=True, model_name="concrete_through_girder_bridge.rf6", delete=True, delete_all=True)
        self.model.clientModel.service.begin_modification()
  3. Looking at material section RFEM: image

Expected behavior I expect the E and G moduli to be added correctly to the RFEM model, but they are skipped. The rest of the props are added correctly.

Desktop: