# -*- coding: utf-8 -*- import xc_base import loadCombinations from loadCombinationUtils import sia260 from loadCombinationUtils import utils from miscUtils import LogMessages as lmsg lcg = sia260.controlCombGenerator combination_factors = lcg.actionWeighting['SIA260'] G1 = lcg.insert('SIA260', 'permanentes', loadCombinations.Action('selfWeight', 'Poids propre'), 'permanent', 'permanentes') G2 = lcg.insert( 'SIA260', 'permanentes', loadCombinations.Action('deadLoad', 'Poids propre non porteur'), 'permanent', 'permanentes') G3 = lcg.insert('SIA260', 'permanentes_nc', loadCombinations.Action('earthPressure', 'Poussée des terres'), 'poussee_terres', 'terres') Q1 = lcg.insert( 'SIA260', 'variables', loadCombinations.Action('pedestrianLoad', 'Trafic non motorisé.'), 'categorie_G', 'variables') Q2 = lcg.insert( 'SIA260', 'variables', loadCombinations.Action('singleAxeLoad', 'Véhicules entretien.'), 'categorie_G', 'variables') Q2.getRelaciones.agregaIncompatible('Q1') Q3 = lcg.insert(
# -*- coding: utf-8 -*- from __future__ import print_function import xc_base import loadCombinations from load_combination_utils import ehe lcg = ehe.intenseControlCombGenerator PP1 = lcg.insert("EHEIntenso", "permanentes", loadCombinations.Action("PP1", "Peso propio"), "permanents", "permanentes_ctr_intenso") SC1 = lcg.insert("EHEIntenso", "variables", loadCombinations.Action("SC1", "Puente grúa"), "azotea_solo_conserv", "variables_ctr_intenso") SC1.getRelaciones.agregaIncompatible("SC.*") SC2 = lcg.insert("EHEIntenso", "variables", loadCombinations.Action("SC2", "Sobrecarga de uso cubierta"), "azotea_solo_conserv", "variables_ctr_intenso") SC2.getRelaciones.agregaIncompatible("SC.*") F1 = lcg.insert("EHEIntenso", "variables", loadCombinations.Action("F1", "Frenado puente grúa"), "azotea_solo_conserv", "variables_ctr_intenso") F1.getRelaciones.agregaMaestra("SC1.*") #lcg.setVerbosityLevel(3) lcg.genera() coeficientesRef_elu_persistentes = [[1, 0, 0, 0], [1.35, 0, 0, 0],
# -*- coding: utf-8 -*- from __future__ import print_function import xc_base import loadCombinations from load_combination_utils import ehe dbName= "/tmp/test_accidentales.db" tbName= "combinations" lcg= loadCombinations.LoadCombGenerator() actionsAndFactors= lcg.actionWeighting.create("EHEIntenso",ehe.factors) #G= lcg.insert("EHEIntenso","permanentes",loadCombinations.Action("G","Self weight"),"permanents","permanentes_ctr_intenso") lcg.insert("EHEIntenso","accidentales",loadCombinations.Action("A1","Hipot. 1"),"accidental","accidentales_ctr_intenso") lcg.insert("EHEIntenso","accidentales",loadCombinations.Action("A2","Hipot. 2"),"accidental","accidentales_ctr_intenso") lcg.insert("EHEIntenso","accidentales",loadCombinations.Action("A3","Hipot. 3"),"accidental","accidentales_ctr_intenso") lcg.insert("EHEIntenso","accidentales",loadCombinations.Action("A4","Hipot. 4"),"accidental","accidentales_ctr_intenso") lcg.insert("EHEIntenso","accidentales",loadCombinations.Action("A5","Hipot. 5"),"accidental","accidentales_ctr_intenso") lcg.insert("EHEIntenso","accidentales",loadCombinations.Action("A6","Hipot. 6"),"accidental","accidentales_ctr_intenso") import os os.system("rm -f "+dbName) import sqlite3 as sqlite from sqlite_utils import sqlite_macros sqlite_macros.SQLTcreaDBase(dbName) nmbTablaComb= "comb_elu_accidentales" lcg.genera()
# -*- coding: utf-8 -*- import xc_base import loadCombinations from loadCombinationUtils import ehe dbName = "/tmp/test_accidentales.db" tbName = "combinations" lcg = loadCombinations.LoadCombGenerator() actionsAndFactors = lcg.actionWeighting.create("EHEIntenso", ehe.factors) #G= lcg.insert("EHEIntenso","permanentes",loadCombinations.Action("G","Self weight"),"permanents","permanentes_ctr_intenso") lcg.insert("EHEIntenso", "accidentales", loadCombinations.Action("A1", "Hipot. 1"), "accidental", "accidentales_ctr_intenso") lcg.insert("EHEIntenso", "accidentales", loadCombinations.Action("A2", "Hipot. 2"), "accidental", "accidentales_ctr_intenso") lcg.insert("EHEIntenso", "accidentales", loadCombinations.Action("A3", "Hipot. 3"), "accidental", "accidentales_ctr_intenso") lcg.insert("EHEIntenso", "accidentales", loadCombinations.Action("A4", "Hipot. 4"), "accidental", "accidentales_ctr_intenso") lcg.insert("EHEIntenso", "accidentales", loadCombinations.Action("A5", "Hipot. 5"), "accidental", "accidentales_ctr_intenso") lcg.insert("EHEIntenso", "accidentales", loadCombinations.Action("A6", "Hipot. 6"), "accidental", "accidentales_ctr_intenso")
# -*- coding: utf-8 -*- import xc_base import loadCombinations from loadCombinationUtils import iap11 from loadCombinationUtils import utils from miscUtils import LogMessages as lmsg lcg= iap11.controlCombGenerator #print '*******', pond.permanentActions.gammaF.getGammaFELU.desfavorable G1= lcg.insert("IAP11","permanentes",loadCombinations.Action("G1", "Peso propio"),"permanentes","permanentes") G2= lcg.insert("IAP11","permanentes",loadCombinations.Action("G2", "Carga muerta"),"permanentes","permanentes") G3= lcg.insert("IAP11","permanentes",loadCombinations.Action("G3", "Retracc."),"permanentes","permanentes") Q1a_1= lcg.insert("IAP11","variables",loadCombinations.Action("Q1a_1", "Tren cargas pos. 1a_1"),"vehículos_pesados","variables_SCuso") Q1a_2= lcg.insert("IAP11","variables",loadCombinations.Action("Q1a_2", "Tren cargas pos. 1a_2"),"vehículos_pesados","variables_SCuso") #lcg.setVerbosityLevel(3) lcg.genera() coeficientesRef_elu_persistentes= [[1.0, 1.0, 1.0, 0.0, 0.0], [1.0, 1.0, 1.35, 0.0, 0.0], [1.0, 1.35, 1.0, 0.0, 0.0], [1.0, 1.35, 1.35, 0.0, 0.0], [1.35, 1.0, 1.0, 0.0, 0.0], [1.35, 1.0, 1.35, 0.0, 0.0], [1.35, 1.35, 1.0, 0.0, 0.0], [1.35, 1.35, 1.35, 0.0, 0.0], [1.0, 1.0, 1.0, 1.35, 0.0], [1.0, 1.0, 1.0, 1.35, 1.01], [1.0, 1.0, 1.0, 0.0, 1.35], [1.0, 1.0, 1.0, 1.01, 1.35], [1.0, 1.0, 1.35, 1.35, 0.0], [1.0, 1.0, 1.35, 1.35, 1.01], [1.0, 1.0, 1.35, 0.0, 1.35], [1.0, 1.0, 1.35, 1.01, 1.35], [1.0, 1.35, 1.0, 1.35, 0.0], [1.0, 1.35, 1.0, 1.35, 1.01], [1.0, 1.35, 1.0, 0.0, 1.35], [1.0, 1.35, 1.0, 1.01, 1.35], [1.0, 1.35, 1.35, 1.35, 0.0], [1.0, 1.35, 1.35, 1.35, 1.01], [1.0, 1.35, 1.35, 0.0, 1.35], [1.0, 1.35, 1.35, 1.01, 1.35], [1.35, 1.0, 1.0, 1.35, 0.0], [1.35, 1.0, 1.0, 1.35, 1.01], [1.35, 1.0, 1.0, 0.0, 1.35], [1.35, 1.0, 1.0, 1.01, 1.35], [1.35, 1.0, 1.35, 1.35, 0.0], [1.35, 1.0, 1.35, 1.35, 1.01], [1.35, 1.0, 1.35, 0.0, 1.35], [1.35, 1.0, 1.35, 1.01, 1.35], [1.35, 1.35, 1.0, 1.35, 0.0], [1.35, 1.35, 1.0, 1.35, 1.01], [1.35, 1.35, 1.0, 0.0, 1.35], [1.35, 1.35, 1.0, 1.01, 1.35], [1.35, 1.35, 1.35, 1.35, 0.0], [1.35, 1.35, 1.35, 1.35, 1.01], [1.35, 1.35, 1.35, 0.0, 1.35], [1.35, 1.35, 1.35, 1.01, 1.35]] coeficientes_elu_persistentes= [] combAcc= lcg.getLoadCombinations.getULSTransientCombinations base= xc_base.vector_string_from_py_list(["G1","G2","G3","Q1a_1","Q1a_2"]) for comb in combAcc: coeficientes_elu_persistentes.append(xc_base.vector_double_to_py_list(comb.getCoeficientes(base))) error= 0 import numpy szRef= len(coeficientesRef_elu_persistentes)
# -*- coding: utf-8 -*- from __future__ import print_function import xc_base import loadCombinations from load_combination_utils import iap11 from load_combination_utils import utils from misc_utils import log_messages as lmsg lcg = iap11.controlCombGenerator #print('*******', pond.permanentActions.gammaF.getGammaFELU.desfavorable) G1 = lcg.insert("IAP11", "permanentes", loadCombinations.Action("G1", "Peso propio"), "permanentes", "permanentes") G2 = lcg.insert("IAP11", "permanentes", loadCombinations.Action("G2", "Carga muerta"), "permanentes", "permanentes") G3 = lcg.insert("IAP11", "permanentes", loadCombinations.Action("G3", "Retracc."), "permanentes", "permanentes") Q1a_1 = lcg.insert("IAP11", "variables", loadCombinations.Action("Q1a_1", "Tren cargas pos. 1a_1"), "vehículos_pesados", "variables_SCuso") Q1a_2 = lcg.insert("IAP11", "variables", loadCombinations.Action("Q1a_2", "Tren cargas pos. 1a_2"), "vehículos_pesados", "variables_SCuso") #lcg.setVerbosityLevel(3) lcg.genera() coeficientesRef_elu_persistentes = [[1.0, 1.0, 1.0, 0.0, 0.0],
# -*- coding: utf-8 -*- import xc_base import loadCombinations from loadCombinationUtils import iap11 lcg = iap11.controlCombGenerator #print '*******', pond.permanentActions.gammaF.getGammaFELU.desfavorable G1 = lcg.insert("IAP11", "permanentes", loadCombinations.Action("G1", "Peso propio"), "permanente", "default") G2 = lcg.insert("IAP11", "permanentes", loadCombinations.Action("G2", "Carga muerta"), "permanente", "default") G3 = lcg.insert("IAP11", "permanentes_nc", loadCombinations.Action("G3", "Reológicas"), "permanente", "nc_Reologic") G4 = lcg.insert("IAP11", "permanentes_nc", loadCombinations.Action("G4", "Empuje del terreno"), "permanente", "nc_Terr") Q1a_1 = lcg.insert("IAP11", "variables", loadCombinations.Action("Q1a_1", "Tren cargas pos. A1"), "vehículos_pesados", "SCuso") Q1a_1.getRelaciones.agregaIncompatible("Q1.*") Q1a_1.getRelaciones.agregaIncompatible("Q2_1.*") Q1a_2 = lcg.insert("IAP11", "variables", loadCombinations.Action("Q1a_2", "Tren cargas pos. A2"), "vehículos_pesados", "SCuso")
# -*- coding: utf-8 -*- import xc_base import loadCombinations from loadCombinationUtils import iap11 ''' ##Nota: El coeficiente de simultaneidad fi0 de las cargas verticales debidas a vehículo pesado es fi0=0.75 mientras que el de sobrecarga uniforme es fi0=0.4. Ambas cargas están consideradas en el mismo load case y el programa aplica elcoeficiente 0.75. Para no penalizar las hipótesis en las que la sobrecarga de tráfico actúa como concomitante, en las hipotesis generadas se ha sustituido el coeficiente 1.35*0.75=1.01 por un coeficiente conjunto igual a 0.6 (ponderando las cargas de los carriles ficticios 1 y 2 actuando en el vano central) ''' lcg = iap11.controlCombGenerator #print '*******', pond.permanentActions.gammaF.getGammaFELU.desfavorable G12 = lcg.insert("IAP11", "permanentes", loadCombinations.Action("G12", "Peso propio + carga muerta"), "permanentes", "permanentes") G3 = lcg.insert("IAP11", "permanentes_nc", loadCombinations.Action("G3", "Reológicas"), "permanentes", "permanentes_nc_Reol") Q1a1 = lcg.insert("IAP11", "variables", loadCombinations.Action("Q1a1", "Tren cargas pos. A1"), "vehículos_pesados", "variables_SCuso") Q1a1.getRelaciones.agregaIncompatible("Q1.*") Q1a1.getRelaciones.agregaIncompatible("Q21.*") Q1a2 = lcg.insert("IAP11", "variables", loadCombinations.Action("Q1a2", "Tren cargas pos. A2"), "vehículos_pesados", "variables_SCuso")
# -*- coding: utf-8 -*- import xc_base import loadCombinations from loadCombinationUtils import ehe lcg= ehe.intenseControlCombGenerator PP1= lcg.insert("EHEIntenso","permanentes",loadCombinations.Action("PP1","Peso propio"),"permanents","permanentes_ctr_intenso") SC1= lcg.insert("EHEIntenso","variables",loadCombinations.Action("SC1","Puente grúa"),"azotea_solo_conserv","variables_ctr_intenso") SC1.getRelaciones.agregaIncompatible("SC.*") SC2= lcg.insert("EHEIntenso","variables",loadCombinations.Action("SC2","Sobrecarga de uso cubierta"),"azotea_solo_conserv","variables_ctr_intenso") SC2.getRelaciones.agregaIncompatible("SC.*") F1= lcg.insert("EHEIntenso","variables",loadCombinations.Action("F1","Frenado puente grúa"),"azotea_solo_conserv","variables_ctr_intenso") F1.getRelaciones.agregaMaestra("SC1.*") #lcg.setVerbosityLevel(3) lcg.genera() coeficientesRef_elu_persistentes= [[1,0,0,0],[1.35,0,0,0],[1,1.5,0,0],[1,1.5,0,1.05],[1,0,1.5,0],[1,1.05,0,1.5],[1.35,1.5,0,0],[1.35,1.5,0,1.05],[1.35,0,1.5,0],[1.35,1.05,0,1.5]] coeficientes_elu_persistentes= [] combAcc= lcg.getLoadCombinations.getULSTransientCombinations base= xc_base.vector_string_from_py_list(["PP1","SC1","SC2","F1"]) for comb in combAcc: coeficientes_elu_persistentes.append(xc_base.vector_double_to_py_list(comb.getCoeficientes(base))) error= 0 import numpy