Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defining beam element stiffness matrices #100

Open
axla-io opened this issue Feb 24, 2023 · 2 comments
Open

Defining beam element stiffness matrices #100

axla-io opened this issue Feb 24, 2023 · 2 comments

Comments

@axla-io
Copy link

axla-io commented Feb 24, 2023

Hi!

Maybe I'm bad at searching or misunderstood something, but I can't seem to find a function to generate the element stiffness matrix for a beam. Is this functionality in the package? If not, do you have a reference for which Timoshenko element formulation you are using?

@taylormcd
Copy link
Collaborator

Does this answer your question: https://flow.byu.edu/GXBeam.jl/stable/examples/section/

@axla-io
Copy link
Author

axla-io commented Feb 27, 2023

IIUC, the approach in the docs only works for meshes? I couldn't figure out how to do this for beams.
What I want to achieve is:

using GXBeam

# create points
nelem = 2
L = 10
x = range(0, L, length=nelem + 1)
y = zero(x)
z = zero(x)

iso = Material(100.0, 100.0, 100.0, 41.667, 41.667, 41.667, 0.2, 0.2, 0.2, 1000.0)
nodes = [Node(x[i], y[i], z[i]) for i = 1:length(x)]

elements = [Element(nodes[i], nodes[i+1]) for i = 1:length(x)-1]

S, sc, tc = compliance_matrix(nodes, elements)

M, mc = mass_matrix(nodes, elements)

And then somehow assemble this into a system...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants