Пример #1
0
                                   areaRebar=areaFi20,
                                   rebarsSpacing=sepL,
                                   nominalCover=basicCover + 12e-3)
])
sections.append(deckSections)

import os

pth = os.path.dirname(__file__)
#print("pth= ", pth)
if (not pth):
    pth = "."
fname = os.path.basename(__file__)

#Checking normal stresses.
lsd.normalStressesResistance.controller = SIA262_limit_state_checking.BiaxialBendingNormalStressController(
    'ULS_normalStress')
cfg = default_config.EnvConfig(language='en',
                               intForcPath='results/internalForces/',
                               verifPath='results/verifications/',
                               reportPath='./',
                               resultsPath='annex/',
                               grWidth='120mm')
cfg.projectDirTree.workingDirectory = '/tmp/' + os.path.splitext(fname)[0]
cfg.projectDirTree.createTree(
)  # To allow copying existing internal force data into.
lsd.LimitStateData.envConfig = cfg
shutil.copy(pth + '/intForce_ULS_normalStressesResistance.csv',
            lsd.normalStressesResistance.getInternalForcesFileName())
#lsd.LimitStateData.internal_forces_results_directory= pth+'/'
#lsd.LimitStateData.check_results_directory= '/tmp/'
#lsd.normalStressesResistance.outputDataBaseFileName= 'ppTN'
Пример #2
0
lsd.LimitStateData.envConfig = cfg

#choose env_config file:
execfile("../env_config_deck.py")
#execfile("../env_config_abutment.py")
#
#Reinforced concrete sections on each element.
#reinfConcreteSections=RC_material_distribution.RCMaterialDistribution()
#reinfConcreteSections.mapSectionsFileName='./mapSectionsReinforcement.pkl'
reinfConcreteSections = RC_material_distribution.loadRCMaterialDistribution()
#stcalc=setArmadosEstr
#stcalc=setArmVol
#stcalc=setArmCart
#stcalc=setArmLosa
#stcalc=setArmPil
stcalc = setArmados
#stcalc=setArmadosEstr
#stcalc=setArmZapEstr
#stcalc=setArmMurEstr
# variables that control the output of the checking (setCalc,
# appendToResFile .py [defaults to 'N'], listFile .tex [defaults to 'N']
outCfg = lsd.VerifOutVars(setCalc=stcalc,
                          appendToResFile='N',
                          listFile='N',
                          calcMeanCF='N')

limitState = lsd.normalStressesResistance
limitState.controller = lscheck.BiaxialBendingNormalStressController(
    limitState.label)
lsd.normalStressesResistance.check(reinfConcreteSections, outCfg)
Пример #3
0
# -*- coding: utf-8 -*-
from postprocess import limit_state_data as lsd
from postprocess import RC_material_distribution
from materials.sia262 import SIA262_limit_state_checking as lscheck

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

#Reinforced concrete sections on each element.
#reinfConcreteSections=RC_material_distribution.RCMaterialDistribution()
#reinfConcreteSections.mapSectionsFileName='./mapSectionsReinforcement.pkl'
reinfConcreteSections = RC_material_distribution.loadRCMaterialDistribution()

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

limitStateLabel = lsd.normalStressesResistance.label
lsd.normalStressesResistance.controller = lscheck.BiaxialBendingNormalStressController(
    limitStateLabel)
meanFCs = lsd.normalStressesResistance.check(reinfConcreteSections,
                                             setCalc=setCalc)