def _configure(self): """ Setup members using inventory. """ ElasticMaterial._configure(self) if self.inventory.fitMohrCoulomb == "inscribed": fitEnum = ModuleDruckerPragerPlaneStrain.MOHR_COULOMB_INSCRIBED elif self.inventory.fitMohrCoulomb == "middle": fitEnum = ModuleDruckerPragerPlaneStrain.MOHR_COULOMB_MIDDLE elif self.inventory.fitMohrCoulomb == "circumscribed": fitEnum = ModuleDruckerPragerPlaneStrain.MOHR_COULOMB_CIRCUMSCRIBED else: raise ValueError("Unknown fit to Mohr-Coulomb yield surface.") ModuleDruckerPragerPlaneStrain.fitMohrCoulomb(self, fitEnum) ModuleDruckerPragerPlaneStrain.allowTensileYield(self, self.inventory.allowTensileYield) return
def _configure(self): """ Setup members using inventory. """ ElasticMaterial._configure(self) if self.inventory.fitMohrCoulomb == "inscribed": fitEnum = ModuleDruckerPragerPlaneStrain.MOHR_COULOMB_INSCRIBED elif self.inventory.fitMohrCoulomb == "middle": fitEnum = ModuleDruckerPragerPlaneStrain.MOHR_COULOMB_MIDDLE elif self.inventory.fitMohrCoulomb == "circumscribed": fitEnum = ModuleDruckerPragerPlaneStrain.MOHR_COULOMB_CIRCUMSCRIBED else: raise ValueError("Unknown fit to Mohr-Coulomb yield surface.") ModuleDruckerPragerPlaneStrain.fitMohrCoulomb(self, fitEnum) ModuleDruckerPragerPlaneStrain.allowTensileYield( self, self.inventory.allowTensileYield) return
def _createModuleObj(self): """ Call constructor for module object for access to C++ object. """ ModuleDruckerPragerPlaneStrain.__init__(self) return