本文整理汇总了Python中solution.predefined_solutions.simple_static_linear函数的典型用法代码示例。如果您正苦于以下问题:Python simple_static_linear函数的具体用法?Python simple_static_linear怎么用?Python simple_static_linear使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了simple_static_linear函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: solve
def solve(self,loadCaseName,loadCaseExpr=''):
self.loadCaseName=loadCaseName
self.loadCaseExpr=loadCaseExpr
preprocessor= self.feProblem.getPreprocessor
combs=preprocessor.getLoadHandler.getLoadCombinations
lCase=combs.newLoadCombination(self.loadCaseName,self.loadCaseExpr)
preprocessor.resetLoadCase()
combs.addToDomain(self.loadCaseName)
#Solution
analysis= predefined_solutions.simple_static_linear(self.feProblem)
result= analysis.analyze(1)
combs.removeFromDomain(self.loadCaseName)
开发者ID:lcpt,项目名称:xc,代码行数:12,代码来源:quick_graphics.py
示例2: resuelveCombEstatLin
def resuelveCombEstatLin(comb):
preprocessor.resetLoadCase()
previa= comb.getCombPrevia()
if(previa!=None):
nombrePrevia= previa.getName
tagPrevia= previa.tag
'''
print "nombrePrevia= ",nombrePrevia
print "tag= ",comb.tag
print "tagPrevia= ",tagPrevia
print "descomp previa= ",getDescompCombPrevia
print "resto sobre previa= ",getDescompRestoSobrePrevia
'''
tagSave= tagPrevia*100
if(tagPrevia>0):
db.restore(tagSave)
comb.addToDomain()
analisis= predefined_solutions.simple_static_linear(feProblem)
result= analisis.analyze(1)
comb.removeFromDomain()
开发者ID:lcpt,项目名称:xc,代码行数:21,代码来源:test_davit_02.py
示例3:
lPatterns= loadHandler.getLoadPatterns
#Load modulation.
ts= lPatterns.newTimeSeries("constant_ts","ts")
lPatterns.currentTimeSeries= "ts"
#Load case definition
lp0= lPatterns.newLoadPattern("default","0")
lp0.newNodalLoad(2,xc.Vector([0,0,F,0,0,0]))
lp0.newNodalLoad(3,xc.Vector([0,0,F,0,0,0]))
#We add the load case to domain.
lPatterns.addToDomain("0")
# Solution
analisis= predefined_solutions.simple_static_linear(feProblem)
result= analisis.analyze(1)
q13MedioElem= 0.0
q23MedioElem= 0.0
elem.getResistingForce()
mats= elem.getPhysicalProperties.getVectorMaterials #Materials at gauss points.
#Gauss points iterator
for m in mats:
q13MedioElem= q13MedioElem+m.getStressResultantComponent("q13")
q23MedioElem= q23MedioElem+m.getStressResultantComponent("q23")
q13MedioElem= q13MedioElem/4
q23MedioElem= q23MedioElem/4
开发者ID:lcpt,项目名称:xc,代码行数:30,代码来源:test_shell_mitc4_26.py
示例4:
elementos= prep.getElementHandler
\for_each
.vector3dEdgeLoadGlobal(xc.ID(3,2),xc.Vector(0,p,0))
.vector3dEdgeLoadGlobal(xc.ID(4,1),xc.Vector(0,p,0))
cargas= prep.getLoadHandler
casos= cargas.getLoadPatterns{#We add the load case to domain.
casos.addToDomain("0")
#Solución
analisis= predefined_solutions.simple_static_linear(prueba)
result= analisis.analyze(1)
nodos.calculateNodalReactions(True)
nodos= prep.getNodeHandler
RNX1= .getReaction[0] RNY1= nodos.getNode(1).getReaction[1] RNZ1= .getReaction[2] \expr{MX1= .getReaction[3]
RNX2= .getReaction[0] RNY2= nodos.getNode(2).getReaction[1] RNZ2= .getReaction[2] \expr{MX2= .getReaction[3]
RTeor= -p*L
ratio1= (abs((RNX1+RNX2)/RTeor))
开发者ID:lcpt,项目名称:xc,代码行数:30,代码来源:shell_edge_load_04.py
示例5:
'''
# Loads definition
cargas= prep.getLoadHandler
casos= cargas.getLoadPatterns
#Load modulation.
ts= casos.newTimeSeries("constant_ts","ts")
casos.currentTimeSeries= "ts"
#Load case definition
lp0= casos.newLoadPattern("default","0")
casos.currentLoadPattern='0'
#We add the load case to domain.
casos.addToDomain('0')
# Phase 1: prestressing of tendon
# Solution procedure
analisis= predefined_solutions.simple_static_linear(FEcase)
analOk= analisis.analyze(1)
uz_ph1=msNod.getDisp[2]
# Phase 2: self weight
loadVector=xc.Vector([0,0,-Wsw])
for e in beamSet.getElements:
e.vector3dUniformLoadGlobal(loadVector)
analOk= analisis.analyze(1)
uz_ph2=msNod.getDisp[2]
# Phase 3: prestress loss in service
for e in tendonSet.getElements:
tendonMat= e.getMaterial()
tendonMat.prestress= fps
e.update() #Update element state according with the new prestress
开发者ID:lcpt,项目名称:xc,代码行数:31,代码来源:test_deflection_prestressed_beam_01.py
示例6: defaultAnalysis
def defaultAnalysis(feProb,steps= 1):
'''Default analysis procedure for saveAll method.'''
analysis= predefined_solutions.simple_static_linear(feProb)
result= analysis.analyze(steps) #Same with the number of steps.
return result
开发者ID:lcpt,项目名称:xc,代码行数:5,代码来源:limit_state_data.py
注:本文中的solution.predefined_solutions.simple_static_linear函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论