×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

FEA Programming

FEA Programming

FEA Programming

(OP)
I am looking for any books with a focus or chapters on FEA programming (or any reference).  That is, any with examples or methods shown in theory and code.  I am writing a simple program to solve truss models to further my understanding of the methods. Any language is fine, but VB is what I am using.

The basics such as matrix methods and solving F=kD aren’t necessary, I have these covered.  But I would like to see how banded solutions are used and other issues that aren’t readily apparent.  

RE: FEA Programming

You should look for the book Numerical Recipes in Fortran or C for banded solution. visit www.nr.com. Or search in Amazon. For other fem coding, you should follow your own algorithm, there is no "The" algorithm for fem, all depends upon your requirement. Read the theory first and start coding in your own language. Following a book's own code will severely affect your understanding in coding.

RE: FEA Programming

(OP)
Bhat165,

Thanks for your help.  I actually saw your suggestion for Numerical Recipes in another post.  This is a very helpful reference and contains lots of theory and practical methods for coding your own program.

I agree that there is no single algorithm and that copying code is the wrong approach.  From what I have learned, it is more difficult to try to "cut-and-paste" code than it is to just write your own.  However, it is often helpful to at least get a feel for what various algorithms and codes are used.

For small models, say less than 2,000 elements, do you feel that banded matrix storage is necessary?  With current computer speed and memory, it seems like some of the optimiztion methods might not be requried for simplified programs or small models.

RE: FEA Programming

It all depends upon your ram and other configuration. If you run in x386 system, probably it will take a lot of time depending on your problem. For linear system, with P4 processor or above, it should take few seconds. But I believe as a good programer who is learning new methods, he should try which is "standard" in practice. Commercial softwares use either banded or sparse solver or coupled banded with sparse. Banded includes Cholesky method with banded matrix. They also use frontal solver. Even Skyline solution is also used. These are standard method and no matter what is the system size one should use standard method. This is what I feel. But you are right, for small size matrix and with fast processor, you can even try direct inversion of matrix !!

RE: FEA Programming

Try a book by Hinton and Owen: Programming the Finite Element Method (which is Fortran based). It has very detailed explanations and example subroutines for linear FE analysis. It also contains explanations and  source code of a frontal solver. It might be a good idea to add a routine to optimize either element or node numbering scheme (depending on the type of solver you decide to implement).

RE: FEA Programming

bkal,

You are right, I forgot to mention that book. It has a chapter on basic programing techniques. Also in every chapter it gives coding side by side with theory. You also know how to code nonlinear problem efficiently with this book, since this is basically a nonlinear fem book. Great book. Also you can see Belegundu and Chandrupatla (I may be wrong in spelling), this is a good book for intial programmers, but written in basic.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources