def getSetForDisplay(self,setName,parts,setGenDescr,setSectDescr): '''Returns an instance of the object setToDisplay that defines the descriptions of a set of elements to be used in the graphics and reports associated with the calculation :ivar elSet: set of elements :ivar genDescr: general description :ivar sectDescr:ordered list with the descriptions that apply to each of the sections that configures the element. ''' st=self.getSetFromParts(setName,parts) retval=utils_display.setToDisplay(elSet=st,genDescr=setGenDescr,sectDescr=setSectDescr) return retval
# perm: combination for a persistent or transient design situation # acc: combination for a accidental design situation # fatigue: combination for a fatigue design situation # earthquake: combination for a seismic design situation #Persistent and transitory situations. combContainer.ULS.perm.add('ELU01', '1*C') #combContainer.ULS.perm.add('ELU02', '0.8*GselfWeight') #Fatigue. # combContainer.ULS.fatigue.add('ELUF0','1.00*GselfWeight+1.0*Qwind') # combContainer.ULS.fatigue.add('ELUF1','1.00*GselfWeight') #Accidental #combContainer.ULS.acc.add('ELUA0','1.00*GselfWeight+1.0*AvehicCrash') #Here we define sets of elements that we are to use in the displays and reports #Instances of the object postprocess.utils_display.setToDisplay are created, which attributes are: # elSet: the set of elements, # genDescr: a general description for the set and # sectDescr: a list with the descriptions that apply to each of the sections that configures the element #For a grid model it's also possible to use the function getSetForDisplay that also generates the the set from a list of parts beamSet = model.getSetForDisplay(setName='beamSet', parts=['beam'], setGenDescr='beam', setSectDescr=['noeud i', 'noeud j']) xcTotalSet = utils_display.setToDisplay( elSet=model.getPreprocessor().getSets.getSet('total'), genDescr='', sectDescr=[])
q_sadd = t_sadd / l_sadd print "Prism & $t_{strut}$ & $l_{strut}$ & $q_{strut}$ & $t_{diag}$ & $l_{diag}$ & $q_{diag}$ & $t_{sadd}$ & $l_{sadd}$ & $q_{sadd}$ & $q_{strut} + q_{diag}$ &$q_{strut} + 2 sin(\Pi/n) q_{sadd}$ \\\\" print '4-plex &', round(t_strut, 4), ' & ', round(l_strut, 4), ' & ', round( q_strut, 4), ' & ', round(t_diag, 4), ' & ', round( l_diag, 4), ' & ', round(q_diag), ' & ', round(t_sadd, 4), ' & ', round( l_sadd, 4), ' & ', round(q_sadd, 4), ' & ', round( q_strut + q_diag, 6), ' & ', round( q_strut + 2 * math.sin(math.pi / (1.0 * nSidPol)) * q_sadd, 6), '\\\\' from postprocess import utils_display from postprocess.xcVtk.FE_model import quick_graphics as qg xcTotalSet = utils_display.setToDisplay(elSet=prep.getSets.getSet('total'), genDescr='', sectDescr=[]) lcs = qg.QuickGraphics(FEcase) # lcs.displayDispRot(itemToDisp='uZ',defFScale=1e2) # lcs.displayDispRot(itemToDisp='uY') lcs.loadCaseName = 'Prestressing stress= 420 Mpa ' xcTotalSet.elSet.name = '' lcs.displayIntForcDiag(itemToDisp='N', setToDisplay=xcTotalSet.elSet, fConvUnits=1.0e-3, scaleFactor=1.5e-3, unitDescription=': Axial internal forces [kN] ', viewName="XYZPos", hCamFct=1, fileName='plex_4.jpg', defFScale=40.0)