Contact US

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!

*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

MathCAD Stress Grapher Error

MathCAD Stress Grapher Error

MathCAD Stress Grapher Error

Hello All,
I'm having a minor issue with Mathcad, and I was just using my resources to see if anyone could help me out.

Essentially, I'm generating shear and moment diagrams with the help of step functions, using a singularity function type approach. I can make those functions easy enough, and plot those shear and moment diagrams easily, as well as finding stresses at a point along the x axis.

However, when I attempt to the shear stress equation into a plot-able format, I get errors, and am unable to do so, using the proper tau sign. I would like to be able to do this, so in the future, when I have stresses along changing areas, I can see the greatest stresses with regards to area changes.

The funny thing is that I am able to plot these by just using V(x)/A(x). When I do this outside the plot, I receive the large matrix with all the function values at every point, and as I stated before I can plot those. The only thing is it's not very clean or concise, and I would rather be able to use the tau symbol. But when I set τ=V(x)/A(x) I get an error, and am unable to. Does anyone know how to fix this? In the same regard, I'd rather be able to put σ instead of "MC/I" for my formal reports.

Basically I set my constants such as total length, length to a point load, length to a distributed load, etc.

A(x)=2m^2 (for here I set this, so I can figure out if everything's working before I attempt it on variable areas)

x:=0m, 0.005*L, L <------ Sets my "x" lengths
S(x,z):=if(x≥z,1,0) <------ Sets my step functions
V(x):=R1*S(x,0 m)- w*S(x,a)(x-a)+R2*S(x-b)-F*S(x-a) <-------Essentially is my singularity function for the beam

If I do: V(x)/A(x)= I receive a matrix

If I do: τ:=V(x)/A(x) I receive the error "the variable [x for the shear] is undefined."

Thank you for your help!

RE: MathCAD Stress Grapher Error

you need to define it as tau(x):=V(x)/A(x). Since tau is based on both V(x) and A(x) it also varies with x so must be defined as such.

RE: MathCAD Stress Grapher Error

Agreed, the root of the problem is that "tau" is a scalar variable that can only hold one value, and "tau(x)" is the function you need for continuous graphed solutions.

I also noticed the way that function "S(x,z)" is used in the function "V(x)". Two things to note here:
- First (major issue) the third and fourth instances of function S used in evaluating V do not include both arguments of S.
- Second (minor issue) the function V(x) does not have a second argument, written such as "V(x,z)" corresponding to S, preventing subsequent use of the second argument in S after you've defined it. Depending on the rest of your sheet's calculations, you may not need to worry about changing values of "z", but if you do, you could have problems with the values delivered by function V(x) without giving it the second argument, too. If S needs two arguments, then I would also define "V(x,z)" and use both arguments even if I wasn't sure I would need the second one in V.

Something else to watch out for, when working with step functions, is the denominator term A(x) and preventing its range from crossing zero. Mathcad doesn't handle divide-by-zero errors well. The way the error is presented may lead you to believe there's a problem in the arguments entered in the graph, when actually it's a div-0 error in the function being evaluated in the range of the graph.


RE: MathCAD Stress Grapher Error

I guess I had forgot to mention that I am in fact using the tau(x)=V(x)/A(x) to receive the error specified. It says the "x" in V(x) is undefined. I must have just forgot to write tau(x) in this post, and just wrote tau instead. My bad.

The "a" and "b" correspond to lengths I had previously defined, I just didn't write them here for the sake of shortening the post (for the singularity functions of the beam).
and then all the reactions are defined as well.

Also, I appreciate your help!

RE: MathCAD Stress Grapher Error

What keystroke are you actually using to define x? In classic MathCAD, it was something other than the colon, I think.

Not sure about Prime...I'm still sorting out the new key commands in Prime.

RE: MathCAD Stress Grapher Error

The OP hasn't returned to check on the thread since posting in December. I assume they've solved their problem to their satisfaction by now.

WT: the basic keystrokes are the same, even in Prime, aren't they? I haven't used it in a while, though...


RE: MathCAD Stress Grapher Error

Nope, they're not; I just checked because of the other thread. For example, a literal subscript was "." and is now <CTRL>+"-", which is possibly a nit, but it is a more complicated keystroke combination that before.

TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm

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! Already a Member? Login


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:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close