当前位置: 首页>>代码示例>>Python>>正文


Python LogMessages.log方法代码示例

本文整理汇总了Python中miscUtils.LogMessages.log方法的典型用法代码示例。如果您正苦于以下问题:Python LogMessages.log方法的具体用法?Python LogMessages.log怎么用?Python LogMessages.log使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在miscUtils.LogMessages的用法示例。


在下文中一共展示了LogMessages.log方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: check

# 需要导入模块: from miscUtils import LogMessages [as 别名]
# 或者: from miscUtils.LogMessages import log [as 别名]
    def check(self,elements,nmbComb):
        ''' For each element in the set 'elememts' passed as first parameter and 
        the resulting internal forces for the load combination 'nmbComb'  
        passed as second parameter, this method calculates all the variables 
        involved in the crack-SLS checking and obtains the crack width.
        In the case that the calculated crack width is greater than the 
        biggest obtained for the element in previous load combinations, this value
        is saved in the element results record. 

        Elements processed are those belonging to the phantom model, that is to 
        say, of type xc.ZeroLengthSection. As we have defined the variable 
        fakeSection as False, a reinfoced concrete fiber section is generated
        for each of these elements. 
        '''
        lmsg.log("Postprocessing combination: "+nmbComb)
        for e in elements:
            Aceff=0  #init. value
            R=e.getResistingForce()
            sct=e.getSection()
            sctCrkProp=lscb.fibSectLSProperties(sct)
            sctCrkProp.setupStrghCrackDist()
            hceff=self.EC2_hceff(sctCrkProp.h,sctCrkProp.d,sctCrkProp.x)
            Acgross=sct.getGrossEffectiveConcreteArea(hceff)
            Aceff=sct.getNetEffectiveConcreteArea(hceff,"tensSetFb",15.0)
            concrete=EC2_materials.concrOfName[sctCrkProp.concrName]
            rfSteel=EC2_materials.steelOfName[sctCrkProp.rsteelName]
            k2=self.EC2_k2(sctCrkProp.eps1,sctCrkProp.eps2)
#            print 'elem= ',e.tag, ' Aceff= ',Aceff
            if Aceff<=0:
                
                s_rmax=0
            else:
                ro_s_eff=sctCrkProp.As/Aceff      #effective ratio of reinforcement
                s_rmax=self.k3*sctCrkProp.cover+self.k1*k2*self.k4*sctCrkProp.fiEqu/ro_s_eff
                #Parameters for tension stiffening of concrete
                paramTS= concrete_base.paramTensStiffness(concrMat=concrete,reinfMat=rfSteel,reinfRatio=ro_s_eff,diagType='K')
                concrete.tensionStiffparam=paramTS #parameters for tension
                #stiffening are assigned to concrete
                ftdiag=concrete.tensionStiffparam.pointOnsetCracking()['ft']                    #stress at the adopted point for concrete onset cracking
                Etsdiag=abs(concrete.tensionStiffparam.regresLine()['slope'])
                fiber_sets.redefTensStiffConcr(setOfTenStffConcrFibSect=sctCrkProp.setsRC.concrFibers,ft=ftdiag,Ets=Etsdiag)
            e.setProp('ResF',R)   #vector resisting force
            e.setProp('s_rmax',s_rmax)  #maximum crack distance
        self.preprocessor.getDomain.revertToStart()
        predefined_solutions.resuelveComb(self.preprocessor,nmbComb,self.analysis,1)
        for e in elements:
            sct=e.getSection()
            rfset=sct.getFiberSets()["reinfSetFb"]
            eps_sm=rfset.getStrainMax()
            srmax=e.getProp("s_rmax")
#            eps_cm=concrete.fctm()/2.0/concrete.E0()
#            wk=srmax*(eps_sm-eps_cm)
            wk=srmax*eps_sm
#            print ' eps_sm= ',eps_sm, ' srmax= ', srmax, ' wk= ',wk
#            print 'e.getProp(self.limitStateLabel).wk', e.getProp(self.limitStateLabel).wk
            if (wk>e.getProp(self.limitStateLabel).wk):
                R=e.getProp('ResF')
                e.setProp(self.limitStateLabel,cv.RCCrackStraightControlVars(idSection=e.getProp("idSection"),combName=nmbComb,N=-R[0],My=-R[4],Mz=-R[5],s_rmax=srmax,eps_sm=eps_sm,wk=wk))
开发者ID:lcpt,项目名称:xc,代码行数:60,代码来源:EC2_limit_state_checking.py

示例2: generateLoadPattern

# 需要导入模块: from miscUtils import LogMessages [as 别名]
# 或者: from miscUtils.LogMessages import log [as 别名]
 def generateLoadPattern(self,preprocessor,dictGeomEnt,lPatterns):
   lmsg.log('   ***   '+self.name+'   ***   ')
   if(not self.lPattern):
     self.lPattern= lPatterns.newLoadPattern("default",self.name)
     lPatterns.currentLoadPattern= self.name
     self.appendLoadsToLoadPattern(dictGeomEnt,preprocessor.getNodeHandler)
   else:
     lmsg.error('Error load pattern: '+ self.name+ ' already generated.')
   return self.lPattern
开发者ID:lcpt,项目名称:xc,代码行数:11,代码来源:GridModel.py

示例3: appendUniformLoadsToCurrentLoadPattern

# 需要导入模块: from miscUtils import LogMessages [as 别名]
# 或者: from miscUtils.LogMessages import log [as 别名]
  def appendUniformLoadsToCurrentLoadPattern(self,dicQuadSurf):
#    print 'antes: self.unifPressLoad=', len(self.unifPressLoad)
    for load in self.unifPressLoad:
      lmsg.log('unifPressLoad: '+ load.name)
      load.appendLoadToCurrentLoadPattern(dicQuadSurf)
#    print 'despues: self.unifPressLoad=', len(self.unifPressLoad)
    for load in self.unifVectLoad:
      lmsg.log('unifVectLoad: '+ load.name)
      load.appendLoadToCurrentLoadPattern(dicQuadSurf)
开发者ID:lcpt,项目名称:xc,代码行数:11,代码来源:GridModel.py

示例4: appendTemperatureGradientToLoadPattern

# 需要导入模块: from miscUtils import LogMessages [as 别名]
# 或者: from miscUtils.LogMessages import log [as 别名]
 def appendTemperatureGradientToLoadPattern(self):
   for gt in self.tempGrad:
     lmsg.log('tempGrad: '+ gt.name)
     gt.appendLoadToLoadPattern(self.lPattern)
开发者ID:lcpt,项目名称:xc,代码行数:6,代码来源:GridModel.py

示例5: appendEarthPressureLoadsToCurrentLoadPattern

# 需要导入模块: from miscUtils import LogMessages [as 别名]
# 或者: from miscUtils.LogMessages import log [as 别名]
 def appendEarthPressureLoadsToCurrentLoadPattern(self):
   for ep in self.earthPressLoad:
     lmsg.log('earthPressLoad: '+ ep.name)
     ep.appendEarthPressureToCurrentLoadPattern()
开发者ID:lcpt,项目名称:xc,代码行数:6,代码来源:GridModel.py

示例6: appendUniformLoadOnLinesInRangeToLoadPattern

# 需要导入模块: from miscUtils import LogMessages [as 别名]
# 或者: from miscUtils.LogMessages import log [as 别名]
 def appendUniformLoadOnLinesInRangeToLoadPattern(self):
   '''uniform loads on the lines in a list of grid ranges to the load pattern.'''
   for unifLin in self.unifLoadLinRng:
     lmsg.log('unifLoadLinRng: '+ unifLin.name)
     unifLin.appendLoadToLoadPattern(self.lPattern)
开发者ID:lcpt,项目名称:xc,代码行数:7,代码来源:GridModel.py

示例7: appendPunctualLoadsToLoadPattern

# 需要导入模块: from miscUtils import LogMessages [as 别名]
# 或者: from miscUtils.LogMessages import log [as 别名]
 def appendPunctualLoadsToLoadPattern(self,nodes):
   '''Append punctual loads to the load pattern.'''
   for cpunt in self.pointLoad:
     lmsg.log('pointLoad: '+ cpunt.name)
     cpunt.appendLoadToLoadPattern(nodes,self.lPattern)
开发者ID:lcpt,项目名称:xc,代码行数:7,代码来源:GridModel.py

示例8: appendUniformLoadsBeamsToCurrentLoadPattern

# 需要导入模块: from miscUtils import LogMessages [as 别名]
# 或者: from miscUtils.LogMessages import log [as 别名]
 def appendUniformLoadsBeamsToCurrentLoadPattern(self):
   for load in self.unifVectLoadBeam:
     lmsg.log('unifVectLoadBeam: '+ load.name)
     load.appendLoadToCurrentLoadPattern(self.lPattern)
开发者ID:lcpt,项目名称:xc,代码行数:6,代码来源:GridModel.py

示例9: appendInertialLoadsToCurrentLoadPattern

# 需要导入模块: from miscUtils import LogMessages [as 别名]
# 或者: from miscUtils.LogMessages import log [as 别名]
 def appendInertialLoadsToCurrentLoadPattern(self):
   for pp in self.inercLoad:
     lmsg.log('inercLoad: '+ pp.name)
     pp.appendLoadToCurrentLoadPattern()
开发者ID:lcpt,项目名称:xc,代码行数:6,代码来源:GridModel.py


注:本文中的miscUtils.LogMessages.log方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。