Esempio n. 1
0
def getReactions(prb, nmbAction):
    preprocessor = prb.getPreprocessor
    resultAction(prb, nmbAction)
    reactions = gr.Reactions(preprocessor, supportNodes)
    forces = reactions.getReactionForces()
    for key in forces:
        reac = forces[key]
        print "Appui ", key, nmbAction, reac * 1e-3, " (kN)"
        #print "M= ", tmp[2]/1e3
    return reactions
Esempio n. 2
0
def resultComb(prb, nmbComb):
    preprocessor = prb.getPreprocessor
    preprocessor.resetLoadCase()
    preprocessor.getLoadHandler.getLoadCombinations.addToDomain(nmbComb)
    #Solución
    solution = predefined_solutions.SolutionProcedure()
    analysis = solution.simpleStaticLinear(prb)
    result = analysis.analyze(1)
    spandrelReactions = gr.Reactions(preprocessor, spandrelFixedNodes)
    spandrelForces = spandrelReactions.getReactionForces()
    for key in spandrelForces:
        reac = spandrelForces[key]
        print "Support ", key, nmbComb, reac * 1e-3, " (kN)"
        #print "M= ", tmp[2]/1e3
    fillReactions = gr.Reactions(preprocessor, fillFixedNodes)
    fillForces = fillReactions.getReactionForces()
    for key in fillForces:
        reac = fillForces[key]
        print "Support ", key, nmbComb, reac * 1e-3, " (kN)"
        #print "M= ", tmp[2]/1e3
    preprocessor.getLoadHandler.getLoadCombinations.removeFromDomain(nmbComb)
    return spandrelReactions, fillReactions
Esempio n. 3
0
 def getReactions(self):
     '''Return the reactions on the foundation.'''
     return get_reactions.Reactions(self.modelSpace.preprocessor,
                                    self.fixedNodes)