def create_wizard(mod): """Create the modal analysis wizard""" # wiz = WC.Wizard(u"Modal analysis", mod) # wiz = WC.Wizard(u"固有値解析", mod) wiz = WC.Wizard( qt.QApplication.translate("WizardModalAnalysis", "Modal analysis", None, qt.QApplication.UnicodeUTF8), mod) WC.add_model_page(wiz, [ WC.Mode3D, WC.PlaneStress, WC.PlaneStrain, WC.AxisSymmetric, ]) exp_store = WC.ExpStore() exp_store.register(WC.ExpStore.smesh, SMeshExp()) exp_store.register(WC.ExpStore.geom, GeomExp()) WC.add_mesh_page(wiz, mod, exp_store) # title = u"Young's modulus, density and Poisson ratio definitions" # title = u"ヤング係数、密度とポアソン比の設定" #qt.QApplication.translate("WizardModalAnalysis", "", None, qt.QApplication.UnicodeUTF8) title = qt.QApplication.translate( "WizardModalAnalysis", "Young's modulus, density and Poisson ratio definitions", None, qt.QApplication.UnicodeUTF8) WC.add_material_page(wiz, title, [ WC.YoungModulus(), WC.Density(), WC.PoissonRatio(), ]) WC.add_boundaries_page(wiz) add_modes_page(wiz) WC.add_command_file_page(wiz, FinalPage(mod)) return wiz
def create_wizard(mod): """Create the linear static wizard""" # wiz = WC.Wizard(u"Isotropic linear elastic study", mod) # wiz = WC.Wizard(u"等方性線形弾性材料の応力解析", mod) wiz = WC.Wizard(qt.QApplication.translate("WizardLinearStatic", "Isotropic linear elastic study", None, qt.QApplication.UnicodeUTF8), mod) WC.add_model_page(wiz, [ WC.Mode3D, WC.PlaneStress, WC.PlaneStrain, WC.AxisSymmetric, ]) exp_store = WC.ExpStore() exp_store.register(WC.ExpStore.smesh, SMeshExp()) exp_store.register(WC.ExpStore.geom, GeomExp()) WC.add_mesh_page(wiz, mod, exp_store) # title = u"Young's modulus and Poisson ratio definitions" # title = u"ヤング係数とポアソン比の設定" title = qt.QApplication.translate("WizardLinearStatic", "Young's modulus and Poisson ratio definitions", None, qt.QApplication.UnicodeUTF8) WC.add_material_page(wiz, title, [ WC.YoungModulus(), WC.PoissonRatio(), ]) WC.add_boundaries_page(wiz) add_pressure_page(wiz) WC.add_command_file_page(wiz, FinalPage(mod)) return wiz
def create_wizard(mod): """Create the modal analysis wizard""" # wiz = WC.Wizard(u"Modal analysis", mod) # wiz = WC.Wizard(u"固有値解析", mod) wiz = WC.Wizard(qt.QApplication.translate("WizardModalAnalysis", "Modal analysis", None, qt.QApplication.UnicodeUTF8), mod) WC.add_model_page(wiz, [ WC.Mode3D, WC.PlaneStress, WC.PlaneStrain, WC.AxisSymmetric, ]) exp_store = WC.ExpStore() exp_store.register(WC.ExpStore.smesh, SMeshExp()) exp_store.register(WC.ExpStore.geom, GeomExp()) WC.add_mesh_page(wiz, mod, exp_store) # title = u"Young's modulus, density and Poisson ratio definitions" # title = u"ヤング係数、密度とポアソン比の設定" #qt.QApplication.translate("WizardModalAnalysis", "", None, qt.QApplication.UnicodeUTF8) title = qt.QApplication.translate("WizardModalAnalysis", "Young's modulus, density and Poisson ratio definitions", None, qt.QApplication.UnicodeUTF8) WC.add_material_page(wiz, title, [ WC.YoungModulus(), WC.Density(), WC.PoissonRatio(), ]) WC.add_boundaries_page(wiz) add_modes_page(wiz) WC.add_command_file_page(wiz, FinalPage(mod)) return wiz
def create_wizard(mod): """Create the linear static wizard""" # wiz = WC.Wizard(u"Isotropic linear elastic study", mod) #print "Check3" #wiz = WC.Wizard(u"等方性線形弾性材料の応力解析", mod) wiz = WC.Wizard( qt.QApplication.translate("WizardLinearStaticPlus", "Isotropic linear elastic study", None, qt.QApplication.UnicodeUTF8), mod) WC.add_model_page(wiz, [ WC.Mode3D, WC.PlaneStress, WC.PlaneStrain, WC.AxisSymmetric, ]) #print "Check4" exp_store = WC.ExpStore() #print "Check4-1" #print WC.ExpStore.smesh #print SMeshExp() exp_store.register(WC.ExpStore.smesh, SMeshExp()) #print "Check4-2" exp_store.register(WC.ExpStore.geom, GeomExp()) #print "Check5" WC.add_mesh_page(wiz, mod, exp_store) # title = u"Young's modulus and Poisson ratio definitions" # title = u"ヤング係数とポアソン比の設定" title = qt.QApplication.translate( "WizardLinearStaticPlus", "Young's modulus and Poisson ratio definitions", None, qt.QApplication.UnicodeUTF8) WC.add_material_page(wiz, title, [ WC.YoungModulus(), WC.PoissonRatio(), ]) WC.add_boundaries_page(wiz) print "Check Boundaries" add_loadvertex_page(wiz) print "Check LoadVertex" add_loadedge_page(wiz) print "Check LoadEdge" add_loadface_page(wiz) print "Check LoadFace" add_pressure_page(wiz) print "Check Pressure" WC.add_command_file_page(wiz, FinalPage(mod)) print "Check CommandFile" #print "Check6" return wiz
def create_wizard(mod): """Create the linear static wizard""" # wiz = WC.Wizard(u"Isotropic linear elastic study", mod) #print "Check3" #wiz = WC.Wizard(u"等方性線形弾性材料の応力解析", mod) wiz = WC.Wizard(qt.QApplication.translate("WizardLinearStaticPlus", "Isotropic linear elastic study", None, qt.QApplication.UnicodeUTF8), mod) WC.add_model_page(wiz, [ WC.Mode3D, WC.PlaneStress, WC.PlaneStrain, WC.AxisSymmetric, ]) #print "Check4" exp_store = WC.ExpStore() #print "Check4-1" #print WC.ExpStore.smesh #print SMeshExp() exp_store.register(WC.ExpStore.smesh, SMeshExp()) #print "Check4-2" exp_store.register(WC.ExpStore.geom, GeomExp()) #print "Check5" WC.add_mesh_page(wiz, mod, exp_store) # title = u"Young's modulus and Poisson ratio definitions" # title = u"ヤング係数とポアソン比の設定" title = qt.QApplication.translate("WizardLinearStaticPlus", "Young's modulus and Poisson ratio definitions", None, qt.QApplication.UnicodeUTF8) WC.add_material_page(wiz, title, [ WC.YoungModulus(), WC.PoissonRatio(), ]) WC.add_boundaries_page(wiz) print "Check Boundaries" add_loadvertex_page(wiz) print "Check LoadVertex" add_loadedge_page(wiz) print "Check LoadEdge" add_loadface_page(wiz) print "Check LoadFace" add_pressure_page(wiz) print "Check Pressure" WC.add_command_file_page(wiz, FinalPage(mod)) print "Check CommandFile" #print "Check6" return wiz
def create_wizard(mod): """Create the linear static wizard""" wiz = WC.Wizard(u"Isotropic linear elastic study", mod) WC.add_model_page(wiz, [ WC.Mode3D, WC.PlaneStress, WC.PlaneStrain, WC.AxisSymmetric, ]) exp_store = WC.ExpStore() exp_store.register(WC.ExpStore.smesh, SMeshExp()) exp_store.register(WC.ExpStore.geom, GeomExp()) WC.add_mesh_page(wiz, mod, exp_store) title = u"Young's modulus and Poisson ratio definitions" WC.add_material_page(wiz, title, [ WC.YoungModulus(), WC.PoissonRatio(), ]) WC.add_boundaries_page(wiz) add_pressure_page(wiz) WC.add_command_file_page(wiz, FinalPage(mod)) return wiz