Example #1
0
####!!!!To erase
e0 = preprocessor.getElementHandler.getElement(0)
e1 = preprocessor.getElementHandler.getElement(1)

sect1E0 = reinfConcreteSectionDistribution.getSectionDefinitionsForElement(
    0)[0]
sect2E0 = reinfConcreteSectionDistribution.getSectionDefinitionsForElement(
    0)[1]
sect1E1 = reinfConcreteSectionDistribution.getSectionDefinitionsForElement(
    1)[0]
sect2E1 = reinfConcreteSectionDistribution.getSectionDefinitionsForElement(
    1)[1]

####
#Crack checking.
lsd.freqLoadsCrackControl.controller = EHE_limit_state_checking.CrackStraightController(
    limitStateLabel=lsd.freqLoadsCrackControl.label)
lsd.freqLoadsCrackControl.controller.analysisToPerform = predefined_solutions.plain_newton_raphson
lsd.LimitStateData.check_results_directory = '/tmp/'
lsd.normalStressesResistance.outputDataBaseFileName = 'resVerif'

###!!! Step by step
sectContainer.createRCsections(preprocessor=preprocessor, matDiagType='k')
sectContainer.calcInteractionDiagrams(preprocessor=preprocessor,
                                      matDiagType='k')
from postprocess import phantom_model as phm
phantomModel = phm.PhantomModel(preprocessor, reinfConcreteSectionDistribution)
limitStateData = lsd.freqLoadsCrackControl
intForcCombFileName = limitStateData.getInternalForcesFileName()
controller = limitStateData.controller
meanCFs = -1.0
phantomElements = phantomModel.build(
Example #2
0
# -*- coding: utf-8 -*-
from solution import predefined_solutions
from postprocess import limit_state_data as lsd
from postprocess import RC_material_distribution
from materials.ehe import EHE_limit_state_checking as lschck
#from materials.ec2 import EC2_limit_state_checking

execfile("../model_gen.py")  #FE model generation

setCalc = decks  #set of elements for which to perform the checking

#Reinforced concrete sections on each element.
#reinfConcreteSections=RC_material_distribution.RCMaterialDistribution()
reinfConcreteSections = RC_material_distribution.loadRCMaterialDistribution()
reinfConcreteSections.mapSectionsFileName = './mapSectionsReinforcementTenStiff.pkl'
#Checking material for limit state.
limitStateLabel = lsd.freqLoadsCrackControl.label
lsd.freqLoadsCrackControl.controller = lschck.CrackStraightController(
    limitStateLabel=lsd.quasiPermanentLoadsCrackControl.label)
lsd.freqLoadsCrackControl.controller.analysisToPerform = predefined_solutions.simple_static_modified_newton
meanFCs = lsd.quasiPermanentLoadsCrackControl.check(reinfConcreteSections,
                                                    setCalc=setCalc)