Ejemplo n.º 1
0
caracMecSeccion= xc.CrossSectionProperties2d()
caracMecSeccion.A= A; caracMecSeccion.E= E; caracMecSeccion.G= G;
caracMecSeccion.I= Iz; 
seccion= typical_materials.defElasticSectionFromMechProp2d(preprocessor, "seccion",caracMecSeccion)

# Elements definition
elementos= preprocessor.getElementLoader
elementos.defaultTransformation= "lin"
elementos.defaultMaterial= "seccion"
elementos.defaultTag= 1 #Tag for the next element.
beam2d= elementos.newElement("elastic_beam_2d",xc.ID([1,2]));



coacciones= preprocessor.getConstraintLoader
fix_node_3dof.fixNode000(coacciones,1)

cargas= preprocessor.getLoadLoader
casos= cargas.getLoadPatterns
#Load modulation.
ts= casos.newTimeSeries("constant_ts","ts")
casos.currentTimeSeries= "ts"
lp0= casos.newLoadPattern("default","0")
eleLoad= lp0.newElementalLoad("beam2d_point_load")
eleLoad.elementTags= xc.ID([1])
eleLoad.axialComponent= F
eleLoad.x= xRelPtoAplic
#We add the load case to domain.
casos.addToDomain("0")

# Solution 0 N
Ejemplo n.º 2
0
caracMecSeccion.A = A
caracMecSeccion.E = E
caracMecSeccion.G = G
caracMecSeccion.I = Iz
seccion = typical_materials.defElasticSectionFromMechProp2d(
    preprocessor, "seccion", caracMecSeccion)

# Elements definition
elementos = preprocessor.getElementLoader
elementos.defaultTransformation = "lin"
elementos.defaultMaterial = "seccion"
elementos.defaultTag = 1  #Tag for the next element.
beam2d = elementos.newElement("elastic_beam_2d", xc.ID([1, 2]))

coacciones = preprocessor.getConstraintLoader
fix_node_3dof.fixNode000(coacciones=coacciones, idNodo=2)

cargas = preprocessor.getLoadLoader
casos = cargas.getLoadPatterns
#Load modulation.
ts = casos.newTimeSeries("constant_ts", "ts")
casos.currentTimeSeries = "ts"
lp0 = casos.newLoadPattern("default", "0")
eleLoad = lp0.newElementalLoad("beam2d_point_load")
eleLoad.elementTags = xc.ID([1])
eleLoad.axialComponent = F
eleLoad.x = xRelPtoAplic
#We add the load case to domain.
casos.addToDomain("0")

# Solution 0 N