mirror of
https://gitlab.com/MisterBiggs/astro-helper.git
synced 2025-06-15 14:46:40 +00:00
Update aeStructures.jl
This commit is contained in:
parent
34487e09bf
commit
8c395b3041
@ -29,13 +29,13 @@ end
|
||||
|
||||
|
||||
function bending_moment(s::Section, Mx, My)
|
||||
s.data.σz = (My / s.Iyy) .* s.data.x + (Mx / s.Ixx) .* s.data.y
|
||||
s.data.σz = (My / s.Iyy) .* (s.data.x .- s.xc) + (Mx / s.Ixx) .* (s.data.y .- s.yc)
|
||||
|
||||
s.data.σz
|
||||
end
|
||||
|
||||
function shear_stress(s::Section, Vx, Vy)
|
||||
s.data.Δq = -(Vx / s.Iyy) * s.data.A .* s.data.x - (Vy / s.Ixx) * s.data.A .* s.data.y
|
||||
s.data.Δq = -(Vx / s.Iyy) * s.data.A .* (s.data.x .- s.xc) - (Vy / s.Ixx) * s.data.A .* (s.data.y .- s.yc)
|
||||
|
||||
s.data.Δq
|
||||
end
|
||||
@ -48,7 +48,10 @@ function shear_flow(s::Section)
|
||||
|
||||
q = s.data.Δq
|
||||
|
||||
s.data.q = [q[1], q[1] + q[2], q[1] + q[2] + q[3], sum(q)]
|
||||
s.data.q = zeros(length(a))
|
||||
for (i, v) in enumerate(a)
|
||||
s.data.q[i] = sum(s.data.q) + v
|
||||
end
|
||||
s.data.q
|
||||
|
||||
end
|
||||
@ -58,4 +61,4 @@ function total_shear(s::Section, qo, thickness)
|
||||
s.data.τ
|
||||
end
|
||||
|
||||
export Section
|
||||
export Section
|
||||
|
Loading…
x
Reference in New Issue
Block a user