Ejemplo n.º 1
0
angle = 0
b_sup = 10000
b_inf = 8000
h = 5000
t = 20

#creation of cs horizontally
cs_y = stiffener.create_stiffener_global(pl_position, st_number, center_y,
                                         center_z, angle, b_sup, b_inf, h, t)
plate_between_code_y = plate_code.plate_code(0, 0, 1, 1, 1)
plate_between_y = line.line(plate_between_code_y,
                            copy.deepcopy(cs_y.get_line(st_pl_position=4).b),
                            copy.deepcopy(cs_y.get_line(st_pl_position=2).a),
                            t)
cs_y.addline(plate_between_y)
geometry_output.print_cs_red(cs_y)
print("angle of cs_y:", plate_between_y.get_angle_y_true() / math.pi)

cs_y_i_y = cs_y.get_i_y_tot()
print("i_y of cs_y", cs_y_i_y)

#creation of cs rotated
angle = math.pi * 5 / 3
cs_rot = cs_y.get_cs_rot(angle)
geometry_output.print_cs_red(cs_rot)
cs_rot_plate_between = cs_rot.get_line(pl_type=0)
print("angle of cs_rot", cs_rot_plate_between.get_angle_y_true() / math.pi)

cs_rot_i_along = cs_rot.get_i_along_tot(cs_rot_plate_between)

print("i_along of cs_rot", cs_rot_i_along)
Ejemplo n.º 2
0
from output import geometry_output as go
from classes import point as pt
from classes import line as ln
from classes import plate_code as plcd
from classes import crosssection as cs
from classes import merge
import deck

initial_cs = ics.create_initial_cs(4000, 4000, 2000, 20, 20, 20)

st_list_deck = deck.deck(4000)

s = len(st_list_deck)

stiffener_1 = st.create_stiffener_global(2, s+1, -2000, 1000, 3*math.pi/2, 200, 100, 100, 10)
stiffener_2 = st.create_stiffener_global(3, s+2, -1000, 2000, math.pi, 300, 200, 200, 15)
stiffener_3 = st.create_stiffener_global(3, s+3, 1000, 2000, math.pi, 300, 200, 200, 15)
stiffener_4 = st.create_stiffener_global(4, s+4, 2000, 1000, math.pi/2, 200, 100, 100, 10)


st_list_rest = [stiffener_1, stiffener_2, stiffener_3, stiffener_4]

st_list = st_list_deck + st_list_rest

print(len(st_list))

final_cs = merge.merge(initial_cs, st_list)
print(final_cs)
print(len(final_cs.lines))
go.print_cs_red(final_cs)
Ejemplo n.º 3
0
import data

b_sup = 3000
b_inf = 2000
h = 1500
M_Ed = -100000000
data.input_data["M_Ed"] = M_Ed
data.input_data["h"] = h
data.input_data["b_inf"] = b_inf
data.input_data["b_sup"] = b_sup

print(data.input_data)
print(data.constants)

cs = initial_cs.create_initial_cs(b_sup, b_inf, h, 20, 20, 20)
geometry_output.print_cs_red(cs)
#deck_stiffeners = deck.deck(b_sup)
#cs = merge.merge(cs, deck_stiffeners)

#prop_list = stiffeners_proposition.stiffeners_proposition()
#
#prop_1 = proposed_stiffener.proposed_stiffener(2, 1, 0.5, 10**7)
#prop_list.add(prop_1)
#prop_3 = proposed_stiffener.proposed_stiffener(3, 2, -0.7, 10**7)
#prop_list.add(prop_3)
#prop_4 = proposed_stiffener.proposed_stiffener(3, 3, 0.7, 10**7)
#prop_list.add(prop_4)
#prop_5 = proposed_stiffener.proposed_stiffener(4, 4, 0.5, 10**7)
#prop_list.add(prop_5)

line = cs.get_line(pl_position=1)