File Exchange Pick of the Week

July 24th, 2006

Finite element analysis of elastic bodies

Ofek wrote me the other day saying I should check out his SpringLab for modeling elastic bodies in “real time” in MATLAB. It has a great visualization component that got me interested. Mostly I just fixed a few points on the bodies and shook it around to watch how it would react. I wonder if you could bring a model of the L shaped membrane and watch it flex in this program.

SpringLab('y')

2 Responses to “Finite element analysis of elastic bodies”

  1. Sia replied on :

    I bet if people keep on coming up with these awesome ideas and codes our job as a programmer will be just copy and pasting. ;)

    By the way where is your pal?

  2. Ofek replied on :

    Doug - thanks for highlighting this, and Sia - thanks for the kind word. You cannot import the membrane model as is, since it is strictly a point-set, and SpringLab takes only volumes (it uses mainly springs, but also tetrahedral elements). One could easily adapt SpringLab to take only springs, tesselate an L membrane in some way (say by surf2patch(…,’triangles’) ), connect springs along the edges, and molest the model in whichever way one pleases.

    If i’ll have the time, i’ll tidy up and post a similar prototype i have that facilitates identical interaction with a model whose vibrational eigenfunctions are known (such as membrane). Should be nice to watch good old L squirm about.

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


Bob, Brett & Jiro share their favorite user-contributed submissions from the File Exchange.

  • Zach: Hi Doug and Les, I didn’t have a lot of time to mess with this, but I did find a work-around. I plotted...
  • hamed: k
  • Les: @Zach This isn’t exactly what you are looking for but at least it puts all three parameters on the same...
  • Zach: Thanks for your suggestions Doug. I’ll give that a shot and see what happens. I’ve seen many of...
  • Doug: @Zach, I would say to use plotYYY, because that is close to what you want, but using depth as Y makes sense....
  • Doug: @Teja, I think this will work: http://www.mathworks .com/access/helpdesk /help/techdoc/ref...
  • Gify: merry christmas :) nice christmas tree! Regards, Janet Gify
  • Teja: Dear Doug Is there anyway to plot a surface from nonuniform data without meshgrid and griddata? Basically i...
  • Zach: I’m working with geophysical data, so I’d like to produce a depth profile. The y-axis would be...
  • Doug: @Ashok First, please do not use variable names that are MATLAB commands (std and mean). Second, p(j) should be...

These postings are the author's and don't necessarily represent the opinions of The MathWorks.