×
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

A Command Line Two Dimensional Matrix Analyzer

A Command Line Two Dimensional Matrix Analyzer

A Command Line Two Dimensional Matrix Analyzer

(OP)
Does anyone know if such a thing exists? I'm looking for a free command line (simple executable file) that I can pass my information to on the command line and it will spit out the reactions, shear, moments, deflections etc... into a text file that I can parse with another program if need be. My intent is imbed this program or call it from other programs and excel spreadsheets. Basically I'm looking for the equivalent of STAAD (the program I am most familiar with for structural analysis) but can be run from the command line by passing it a input text file with all my parameters. I only need the ability to analyze beam and truss members (linear, one dimensional elements) and not plates or bricks. If such a thing does not exist I will have to create it.

RE: A Command Line Two Dimensional Matrix Analyzer

(OP)
On a slightly different note, who else has need for such a program?

RE: A Command Line Two Dimensional Matrix Analyzer

I tend to believe SAP IV (old mainframe SAP) is available somewhere. Not sure if you could ever get it to run on one of today's computers. My old company had a customized version that we used occasionally. Here's the kicker.... the input text file is arranged in "cards". Meaning the text file is just a simplified interface to replace the old "punch cards" that the program was developed around.


RE: A Command Line Two Dimensional Matrix Analyzer

I have probably missed something but you can run any solver I have come across from the command line

something like

feasolver -options thisrun.cf

Nastran dumps out text files of inordinate length which can be picked up by any program. parsing them is tiresome but fully documented

Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?

RE: A Command Line Two Dimensional Matrix Analyzer

Quote:

I have probably missed something but you can run any solver I have come across from the command line

Not quite any solver, a solver embedded in a spreadsheet can't be run from the command line.

But my question is, if you generate the input in a spreadsheet, and read the results back into a spreadsheet for post-processing, why would you want to run the solver from the command line?

My blog post here:
http://newtonexcelbach.wordpress.com/2012/09/21/da...
has links to Excel based 2D and 3D frame solvers, including open source code.

"Real soon now" there will be a Python based version, which it should be possible to adapt to run from the command line, if you want to.

Doug Jenkins
Interactive Design Services
http://newtonexcelbach.wordpress.com/

RE: A Command Line Two Dimensional Matrix Analyzer

(OP)
I need it first and foremost to be a simple command line program since my PERL scripts on my website will occasionally call it. Then later I will integrate it into spreadsheets.

RE: A Command Line Two Dimensional Matrix Analyzer

Quote:

I need it first and foremost to be a simple command line program since my PERL scripts on my website will occasionally call it. Then later I will integrate it into spreadsheets.

OK, you won't be able to do that with my spreadsheet, although it comes with some compiled solvers that might be of some use.

Another option if you are happy to do some coding and compiling is to look at "Programming the Finite Element Method" by Smith and Griffiths, which comes with complete Fortran code for frame and full 3D FEA solvers.

Doug Jenkins
Interactive Design Services
http://newtonexcelbach.wordpress.com/

RE: A Command Line Two Dimensional Matrix Analyzer

(OP)
So far my search has not turned up anything that fits the bill so I've decided to program an application myself. I'll program it in PERL and then compile it into and executable using ActiveState's PDK. A sample text file input for the program will look something like this:

<job>
<engr>Nathaniel P. Wilkerson</engr>
<num>001</num>
<date>2014-04-29</date>
</job>
<units>
<length>inches</length>
<weight>lbs</weight>
</units>
<nodes>
1,0,0; 2,0,96; 3,96,0; 4,96,96;
</nodes>
<members>
1,2,1; 2,1,3; 3,3,4; 4,4,2; 5,4,1;
</members>
<properties>
1,1700,5.36,B; 2,1700,5.36,B; 3,1700,5.36,B; 4,1700,5.36,B; 5,1700,5.36,T;
</properties>
<support>
2,FX,FY; 4,FY;
</support>
<memberloads>
</memberloads>
<nodeloads>
</nodeloads>
<releases>
1,1; 4,4;
</releases> 

RE: A Command Line Two Dimensional Matrix Analyzer

use python & numpy instead of perl.
if you want free FEA program, then use Calculix.

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