×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*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.

# Code checking software

## Code checking software

(OP)
I was just reading the discussion in thread507-7222 and found it interesting that some of the respondents say they are using their own code checking programs apparently in conjunction with commercial analysis software.  I have done this myself but always thought it an unusual thing for most people to want to do.  My question is this:

Has anyone else really done this?

How do these programs compare with commercial code checkers?

Should we be concerned about the commercial programs?

What did you use? Excel, VB, Mathcad, Mathematica, etc.?

Regards,
-Mike

### RE: Code checking software

A lot of my colleagues use Mathcad sheets with commercial software. We use STAAD in house and people have written macros that connect Mathcad with STAAD results for code check. They use something called open STAAD. I am not a programmer, but I would check out their website on how to do it. The good part of having your own template is you are in control of the design sequence. STAAD has nice output so you can follow the sequence, but not every step.

### RE: Code checking software

Question 1 (is there a concern with using commercial programs?):

There's no problem with using a commercial program as long as you know precisely what the program is doing. Most reputable commercial programs perform the majority of calcs correctly but will either have some strange or completely wrong calculations buried in there somewhere. Should most people use commercial programs? Absolutely. Do most people dig in deep enough to be responsible in their use? Who knows.

Examples are:

RISA's version from last fall did Cb calcs completely wrong in some cases.

ETABS' composite beam design had lots of problems the last time I checked, which was a couple of years ago. It spat out lots of cool-looking output, but some of it was either wrong or just silly.

RISA's idea of column effective length calcs for rigid frames is not even in the ballpark of technically correct.

ETABS' automatically generated wind load combination factors were wrong the last time I checked and had to be manually fixed every time.

The RAM system used obscolete floor vibrations criteria until just recently, 10 years after AISC DG11 was published. I've seen this one actually cause a large problem on one structure.

The last time I checked (about 8 years ago) CFS did not determine the correct flat widths for the case of intermediate stiffeners along a large flat panel width.

With the use of a rigid diaphragm, braced frame beams get absolutely zero axial load in every single commercial program I've used. With both beam nodes attached to the diaphragm, there's no elongation, therefore no strain, therefore no stress, and therefore no force.

SAFE completely excludes the one-way shear check for slabs and footings.

I have about 18 more of these but think that's enough.

The bottom line is that you have to know in nauseating detail what your program is doing.

As far as in-house software:

I've seen Excel used extensively over the years and think that it is great for simple calculations or calculations that are simple and fit well into tabular format. For more complex calcs, forget it. Excel programming turns into unintelligible spaghetti code after it gets past some level of complexity.

I like Mathematica for academic-type stuff but find it to be cumbersome for design-type stuff. It also has the huge downside that practically no structural people outside academia use it, making it impossible to trade files with clients. I really like its stability and speed. It is an extremely robust program.

Mathcad is a fantastic program on which to base a structural engineering company's in-house software. It is not super-stable or fast like Mathematica, but the output is truly excellent. It is easy to read, flows from top-to-bottom (unlike spaghetti-coded Excel junk), and can be formatted to be very compact and attractive. This last one is why it's better than Mathematica for design-office usage. Mathematica flows line-to-line so very inefficiently uses the paper. At this point, I've tried out everything that I could find and think that Mathcad is the best by a long shot for typical structural engineers.

VB? C++? Mathcad has a monstrously-large advantage over actual programming languages in speed of development and ease of modification. I can write an entire design program by the time I set up the variables in a C++ program. These are suitable for rare occasions that are outside the scope of Mathcad.

I kinda wandered off your subject -- sorry.

DBD

### RE: Code checking software

(OP)
14159,

Thanks for you extended response; I really appreciate your comments.  To me this is a very interesting subject.  Years ago I wrote a code checking program in VB for use with a general purpose FEA program.  It worked ok but was a lot of work to do.  I am currently working with Multiframe with its code checking option, and while it seems to be pretty neat, it’s hard for me to get used to the black box approach.  I suppose with enough hand checking I will get there.

One thing I really don’t like to do is calculating stresses for single angle struts.  The last time I looked into RISA it only checked axial loads for kl/rz, I think.  Multiframe checks bending about x and y axes, but in my opinion bending should be checked about z and w axes unless there is some kind of restraint.  Still working on this.

For calculation software I use CalculationCenter (think of it as Mathematica Lite) and my son uses Mathcad.  Your comments about these are pretty much on target.  Mathcad produces nice looking output and Mathematica doesn’t.  Mathcad is widely used by design engineers and Mathematica for some reason isn’t.  Well the reason I guess was the price; it was way too expensive compared to Mathcad about 5 or more years ago.  I still like VB for many things but find that I am using CalculationCenter more and VB less.

If anyone else wants to weigh in (or vent) on this subject please post your comments.  It should be interesting to hear what works well and what doesn’t, places to be careful, and so on.

Regards,
-Mike

### RE: Code checking software

I wouldn't bet anything on any of the commercial programs' abilities to correctly determine the strength of a single angle strut! In my experience, those guys think KL/r and that's it. Flexural-torsional buckling? Torsional buckling? What's that? Some of the higher-end packages might do a little better -- I'll check the SAP documentation later for my morbid curiosity.

About CalcCenter, I have to admit that I really like Mathematica because of its speed and stability, but shy away from it because of the stuff that I typed earlier. I downloaded the CalcCenter free trial and found it to be similar to Mathematica for relevant features. I will consider it in the future because it's $575 price tag is a bit more favorable than the$1200 Mathcad and $1900 (!?)Mathematica. I've been in contact (some slightly heated debates!) with some of the Mathematica people about their crummy output format. Perhaps if more people express disappointment they will improve for future versions. There's no doubt that, at the very core, it's far better than Mathcad. There's really no good excuse to be slaughtered in the marketplace for cosmetics, which is exactly what they're doing, at least in our discipline. I don't know what ME, EE, etc use, but I can't help to think their needs are not that much different. 14159 ### RE: Code checking software (OP) I currently am using CalcCenter to do some basic code checking when necessary. As I mentioned in my previous post I am trying to get used to a commercial package but sometimes I just need to do it myself. The nice thing about calculation software is that you can calculate P/A if P is equal to a single value, or an array of hundreds. This makes writing of the program very much easier in that the coding to do matrix manipulation is unnecessary. The next thing that I am going to add to my program is the ability to check single angle struts, or to at least do it the way I think it should be done. With this approach I expect to be able to include eccentricities wherever needed and calculate bending about any axis I want, with the number of loading conditions not really important due to the power of CalcCenter, or I suppose any other CAS software. I guess writing your own software is a hard thing to give up. -Mike ### RE: Code checking software (OP) 14159 Re: your comments about Mathematica output I just spent two days working on some calculations in CalcCenter that I need to send to a customer, and it is driving me nuts. I personally don't like full width justification and I don't like how CalcCenter does page breaks. You are right, the cosmetics of this is terrible. Sometimes it is just plain ugly. Regards, -Mike ### RE: Code checking software I have almost a pen-pal relationship going with one very nice fellow with Wolfram right now. I'm trying really hard to convince them that they need to make the output in the form (using Newton's second law as an example): F = m a = 10 kips Where the user types "=" after the "a" and the 10 kips pops in there to the right. Not below. Not some other unnatural place. To the right! He's trying, but I don't think it's gonna happen. That would solve a large percentage of my issues with the program. I've been after Mathsoft for this also, with even less luck. I wish many people using these programs would bombard these folks with this suggestion. I'm just one complaining guy, I guess. 14159 ### RE: Code checking software (OP) 14159 That looks like a good idea to me. In fact I would even settle for this: ma = 10 kips which is better than ma 10 kips Actually CalcCenter doesn't even have the units kips. It's not that I mind a plain or spartan look, but sometimes it really is unattactive. Anyways, I didn't start this thread to complain about Mathematica, but you know, I am feeling better. -Mike ### RE: Code checking software Mike: The following is the latest from my discussion with a fellow from Wolfram. It might be helpful to you. I have not tried his suggestion yet, but it seems promising. "I talked to the front end group and here is their reply to me. The closest I can think of to something like this would be to use AuthorTools' Bilateral Cells, where the$FirstBilateralStyle is set to {"Input"}, although that would remove the ability to re-evaluate the inputs.

Also they told me that they might be looking at this type of format in a future release."

Their product is so much more stable and robust than Mathcad that I would personally really like to see them work on the cosmetics and compete successfully with Mathcad in the structural engineering world. The situation reminds me of how Windows beat out OS/2 and Mac back in the mid-90s even though it was technologically inferior. In that case, another non-technical issue, marketing, made the difference. The computing world would've been a better place if this did not happen, but I digress.

14159

### RE: Code checking software

(OP)
14159,

About 18 months back before I bought CalcCenter I looked at several others in this category.  I recently posted links to these in thread404-131182.  I think most of them did use the first line input and second line output scheme, at least as far as I can remember.  Except for Mathcad of course.  The reason I mention this is because it seems unlikely to me that a change of this magnitude will happen soon.  After all they do sell Publicon too.

That's not to say however that some small changes could be made to improve the appearance of CalcCenter (and Mathematica) some of which I have mentioned in this thread.

On the positive side however, I should say that the functional capabilities of CalcCenter and similar programs is very impressive.  Even for structural engineers who mostly add, substact, multiply, and divide, but we do a lot of it.

Regards,
-Mike

#### 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.

#### Resources

The Low-Code Digital Transformation Guide
Change the way you develop apps and, in turn, change the way your business operates and engages with customers, leading to new channels of revenue. This ebook is the culmination of 14 years of experience with 4,000 customers that have all transformed their business through low-code development. Download Now

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!