×
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

How to delete unit

How to delete unit

How to delete unit

(OP)
How can i delete a unit in mathcad ?
Mathcad is giving me a unit but it's wrong, i don't need a unit, just numeric.

Thanks in advance

RE: How to delete unit

Sounds like operator error.  If you use a MathaCAD variable, it has units.  So if you define "Len:10", "Width:15" and then in your equation you mistakenly say "A:L*W" it will think that your "A" is redefining Angstrom to volume ("L" is "liter") times power ("W" is "Watt".  I used to do that all the time.  I try to stop myself from doing it by never using a simple variable that could be a unit.  For example, my "Area" terms are always "A.something" since none of the built-in functions use the "dot" subscript operator.

So if you say "L.yard:10", and "W.yard:15", then "A.yard:L.yard*W.yard=150" with no units.  

Of course, not using units is cutting out a huge proportion of the power of MathCAD.  For empirical equations where the units won't work out I strip the units inside the equation.  For example (made up equation that doesn't mean anything):

MU.gas:π/4*(ID.pipe/in)^2.5*ln((ID.pipe/in)/L.pipe/mi)

This lets me input pipe ID in mm (or whatever length unit I choose that day), pipe length in ft, and MathCAD just uses the right magnitude in the empirical equation.  I have some flow equations that I looked up 15 years ago, probably can't even find the reference today and before I started using this technique I had to remember the units of all the inputs.  If someone asked me today to tell them the friction drop of 3 km of 200 mm pipe with 800,000 m^3 of gas flowing at 18 bar at the head, I can just input the given data without worrying about the units that my empirical equation needs--saves a ton of work.  I've rewritten all of these old equations in this unit-neutral method and get far more consistent results.

David

RE: How to delete unit

Post the file.  Words and pictures pale in comparison to an actual file.  If you aren't using units, then there shouldn't be any.  You must have used a built-in unit as one of your variables.  Look for a variable that resembles the symbol for a standard unit like m used as a variable to mean mass, but it means "meter" in Mathcad.

You can go to Tools | Worksheet Options | Unit System and disable units and see if that clears the problem.

However, as a general rule I advise against not using units.  Mathcad is pretty much the only tool you can find that will help you do dimensional analysis.  This will generally get you out of more trouble than you can possible imagine, and is more than worth the bother it takes to avoid messing up the units.

TTFN

FAQ731-376: Eng-Tips.com Forum Policies

RE: How to delete unit

The problem is that your hie calculation does not have any units at all, yet you are trying to add it to something that has units of ohms.  That's not a Mathcad problem.

TTFN

FAQ731-376: Eng-Tips.com Forum Policies

RE: How to delete unit

What IRSTUFF said.  

Also, you'll generally get more help if you backsave the file you are uploading to V11 (.mcd) instead of V12 or later (.xmcd), an awful lot of people refused to go to V12, V13, or V14 (and many of us don't see any reason to go to V15 either).

David

RE: How to delete unit

what zdas said winky smile

I suggest that you ask your TA or instructor to help you with this.  You are now trying to add inverse amps to ohms, which is even worst than your previous attempt, since inverse amps has no physically plausible raison d'etre.  It's now patently clear that you have no idea how to set up whatever problem you're trying to solve.

TTFN

FAQ731-376: Eng-Tips.com Forum Policies

RE: How to delete unit

hie is the input resistance so perhaps ensuring that this result is in ohms would enable correct calculation.

I definitely agree with IRstuff, Mathcad's ability to do dimensional analysis has got me out of the poo on numerous occasions.  

RE: How to delete unit

I'm a structural engineer, so I don't even begin to understand the nature of the problem you are trying to solve. However, I note that you start off by setting hfe to be equal to 259; 259 whats? (Or should that be 259 watts? smile ) Is hfe truly dimensionless, or should it carry units, like your other input data items?

If you are going to use Mathcad to keep track of units (and I think you should!), make sure you apply appropriate units to ALL of your input data; then, Mathcad should keep track of all units for all of your subsequent calculations.

Hope this helps!

RE: How to delete unit

hfe is the standard EE symbol for transistor gain, and is unitless, being the ratio of the instantaneous collector current to the instantaneous base current.
 

TTFN

FAQ731-376: Eng-Tips.com Forum Policies

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