×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

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

General formula for an entire MathCad document

General formula for an entire MathCad document

General formula for an entire MathCad document

(OP)
Hi all,

I work in pressure vessel design and therefore do alot of von mises stress equations.  However, when using MathCad, I am needing to put the equations in for each new part I do and sometimes my calculations worksheets incorporate multiple parts.  This makes the whole document look somewhat messy as I'm having to repeat the formulae over and over.

Is there someway that I can input the formulae at the begining of the document and then simply change the variables throughout each time I start calcs on a new part?

I have been looking through "introduction to MathCad 13" by Ronald Larsen and the closest thing I have come to is to create some kind of program (page 229).  But this still doesn't seem to be working - having said that, I'm not too hot on computer programming (mech engineer) so I might be missing something.

I have attached an example of the eqations to which I refer.  Any help would be gretly appreciated, thanks!

RE: General formula for an entire MathCad document

create functions at the head of the document


Then just call each function for each new section of the design

 

Cheers

Greg Locock

SIG:Please see FAQ731-376: Eng-Tips.com Forum Policies for tips on how to make the best use of Eng-Tips.

RE: General formula for an entire MathCad document

(OP)
Hi,

thanks for that.  I started doing it this way and it seems to work, however I can't get the output from one function to be one of the variables for another function.  Is this possible?

e.g. Trying to find the force created by a pressure acting on a cylinder.  I realise you can do this all in one function but I am simplifying for the sake of argument.

first create a function to determine the area of the piston.  A_piston(OD,ID):=(PI*(OD^2-ID^2))/4.

As force is pressure*Area, is it possible to create a function along the lines of
F_piston(Pressure,A_piston):=????????


i.e. using the results from the previous calculation without having to re-enter the Outer and inner diameters of the piston and thus allowing to show results for both piston area and the resultant force.

RE: General formula for an entire MathCad document

F_piston(Pressure,OD,ID):=Pressure*A_piston(OD,ID)
 

RE: General formula for an entire MathCad document

(OP)
Hmmm, still can't seem to get that to work.  I've uplaoded another file with what I'm doing now.

Taking away the bit I've highlighted in red, it works fine, it just means that I have to put in all the variables for each function.  I thought I might be able to someway link them but if not, it isn't a huge concern.

Thanks for your help though.

RE: General formula for an entire MathCad document

I don't seem to be able to see your file, but one option if all else fails is to group the common (repetitive) statements together into an Area and collapse it.  You can then copy the Area and paste it as many times as is convenient.  This will improve the appearance somewhat, and you can even make them invisible.


 

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



News


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