def printResultsELU(elems,crossSection): '''print(ULS results.)''' fmt= "{:6.1f}" fmt2= "{:5.2f}" e= ps.getItemWithMaxProp(elems,"getProp",'FCTNCP') N= fmt.format(e.getProp("NCP")/1e3) My= fmt.format(e.getProp("MyCP")/1e3) Mz= fmt.format(e.getProp("MzCP")/1e3) sgMax= fmt.format(e.getProp("SgMax")/1e6) sgMin= fmt.format(e.getProp("SgMin")/1e6) sgAdm= fmt.format(crossSection.fyd/1e6) fctnCP= fmt2.format(e.getProp("FCTNCP")) print("tag= ", e.tag, " N= ", N , "kN My= ", My , "kN.m Mz= ", Mz , "kN-m SgMax= ", sgMax , "MPa SgMin= ", sgMin, "MPa sgAdm= ", sgAdm , "MPa FCTNCP= ", fctnCP , "HIPCPTN= ",e.getProp("HIPCPTN")) e= ps.getItemWithMaxProp(elems,"getProp",'FCVCP') Vy= fmt.format(e.getProp("VyCP")/1e3) Vz= fmt.format(e.getProp("VzCP")/1e3) tauMax= fmt.format(e.getProp("TauMax")/1e6) tauAdm= fmt.format(crossSection.taud/1e6) fcvCP= fmt2.format(e.getProp("FCVCP")) print("tag= ", e.tag, " Vy= ", Vy , "kN Vz= ", Vz , "kN TauMax= ", tauMax , "MPa tauAdm= ", tauAdm, "MPa FCVCP= ", fcvCP , " HIPCPV= ", e.getProp("HIPCPV"))
def printResultsELU(elems,crossSection): '''print ULS results.''' fmt= "{:6.1f}" fmt2= "{:5.2f}" e= ps.getItemWithMaxProp(elems,"getProp",'FCTNCP') N= fmt.format(e.getProp("NCP")/1e3) My= fmt.format(e.getProp("MyCP")/1e3) Mz= fmt.format(e.getProp("MzCP")/1e3) sgMax= fmt.format(e.getProp("SgMax")/1e6) sgMin= fmt.format(e.getProp("SgMin")/1e6) sgAdm= fmt.format(crossSection.fyd/1e6) fctnCP= fmt2.format(e.getProp("FCTNCP")) print "tag= ", e.tag, " N= ", N , "kN My= ", My , "kN.m Mz= ", Mz , "kN-m SgMax= ", sgMax , "MPa SgMin= ", sgMin, "MPa sgAdm= ", sgAdm , "MPa FCTNCP= ", fctnCP , "HIPCPTN= ",e.getProp("HIPCPTN") e= ps.getItemWithMaxProp(elems,"getProp",'FCVCP') Vy= fmt.format(e.getProp("VyCP")/1e3) Vz= fmt.format(e.getProp("VzCP")/1e3) tauMax= fmt.format(e.getProp("TauMax")/1e6) tauAdm= fmt.format(crossSection.taud/1e6) fcvCP= fmt2.format(e.getProp("FCVCP")) print "tag= ", e.tag, " Vy= ", Vy , "kN Vz= ", Vz , "kN TauMax= ", tauMax , "MPa tauAdm= ", tauAdm, "MPa FCVCP= ", fcvCP , " HIPCPV= ", e.getProp("HIPCPV")
yEpsYMin= 0.0 zEpsYMin= 0.0 for key in lPatterns.getKeys(): lp= lPatterns[key] lPatterns.addToDomain(key) ok= solve() if(ok==0): ele1= elements.getElement(0) ele1.getResistingForce() scc= ele1.getSection() My= scc.getStressResultantComponent("My") MyTot+= My if(abs(My)>1): epsilonZPos= scc.getSection().getStrain(0.0,1.0) fibraEpsZMax= prop_statistics.getItemWithMaxProp(scc.getSection().getFibers(),"getMaterial.getStrain") epsZMax= fibraEpsZMax.getMaterial().getStrain() yEpsZMax= fibraEpsZMax.getPos().x zEpsZMax= fibraEpsZMax.getPos().y epsMy= scc.getSectionDeformationByName("defMy")#defMy Mz= scc.getStressResultantComponent("Mz") MzTot+= Mz if(abs(Mz)>1): epsilonYPos= scc.getSection().getStrain(1.0,0.0) fibraEpsYMax= prop_statistics.getItemWithMaxProp(scc.getSection().getFibers(),"getMaterial.getStrain") epsYMax= fibraEpsYMax.getMaterial().getStrain() yEpsYMax= fibraEpsYMax.getPos().x zEpsYMax= fibraEpsYMax.getPos().y fibraEpsYMin= prop_statistics.getItemWithMinProp(scc.getSection().getFibers(),"getMaterial.getStrain")#IMinProp("getMaterial.getStrain") epsYMin= fibraEpsYMin.getMaterial().getStrain() yEpsYMin= fibraEpsYMin.getPos().x