Default Units
Default Units
(OP)
I have Mathcad 5.0+, which works very well for me, but I find I have to ADD units by typing them at the top of any analysis sheet before I can get down to business. I often deal with speeds expressed in "knots" (nautical miles per hour) so I always start my sheets with "knots:=1.1508*mph". I do the same thing for KSI:=1000*psi.
I also find that there's no good default set of units, so every time I state a calculated value I have to type "lbf" at the end of the "lb*ft*sec-2" that automatically comes up.
Is there a better way? Do more recent versions of Mathcad include a "unit definition" that can be configured?
I also find that there's no good default set of units, so every time I state a calculated value I have to type "lbf" at the end of the "lb*ft*sec-2" that automatically comes up.
Is there a better way? Do more recent versions of Mathcad include a "unit definition" that can be configured?
STF
RE: Default Units
RE: Default Units
RE: Default Units
2) As for lbf, you're pretty much stuck, at least you're not getting slugs
TTFN
RE: Default Units
latest version ....11.x has lbf in the units
Dimension: Force
Unit : lbf, kgf, dynes, Newtons
RE: Default Units
TTFN
RE: Default Units
could you state an example or two ..
I'd like to prove it to myself ...
thanks
RE: Default Units
type force:1lbf
type force=
Mathcad returns 32.174 lb*ft/sec^2
you can then tab to the units placeholder and type lbf and Mathcad will display force=1lbf, indicating that lbf is indeed defined as a unit, which is also evident from the Insert Unit selections.
BUT, just because a unit is defined, does not mean that Mathcad will use it as a default unit.
NOTE, that the Simplify units when possible in the Format Results selection will alter SI unit display from kg*m/s^2 to N, but does nothing different in US units, although CGS units returns dynes.
TTFN
RE: Default Units
One way that work for me is creating a unit file (units.mcd) with sets of units not covered in the program and operators.
Create a template linked with the new unit as follow: Isert/reference/units.mcd.
For convenience, this link could be hide-using Insert/Area and double click in the arrow to hide the link.
RE: Default Units
Are you subscribed to the Mathsoft Collabratory Mathcad Useres Forum at http://www.collab.mathsoft.com ?
If not, you can access as a guest login.
Much has been discussed about UNITS ..... and I believe you will find the answers therein ... in particular, please see the discussion...
Feature Suggestions
and the thread ... Units Again!
circa 8/1/2003 - 8/12/2003
I believe you'll find the answer in there...
One must not use a Unit Name as a Variable...
i.e., Force is a Unit Name.... and will create a problem as you have described when it is also used as a variable.
RE: Default Units
I've been a member of the Mathcad Collab for well near 4 yrs and have used Mathcad since version 3. The thread you refer to does not address the automatic insertion of non-standard units, particularly lbf. It's mostly a series of rambles about forcing users to select a "units" style to create units, because there are users that want to use "m" and "g" as variables, thereby re-defining buit-in variables.
Additionally, "force" is NEITHER a unit NOR a dimension in Mathcad, as a simple insertion of "force=", will demonstrate.
TTFN
RE: Default Units
I set up Mathcad with a "blank.mcd" file to start with. I open it first, then start my work from there. It has the extra units added in on the right side of the right margin where it won't get printed out, like all my other scratch work.
I have a large number of "templates" that I use for various analyses, organized in a system of directories by structure type, and it really isn't associated with the WINMCAD directory.
Do you suggest a "units.mct" file that I could put in the WINMCAD directory that is referenced in my "blank.mcd" file in which I could define additional units, like "ksi:=1000*psi"?
Would this allow me to define constants in terms of my new units? It currently does not permit commands like:
stress~=24.5*ksi because ksi isn't a standard unit.
STF
RE: Default Units
Anyways, the answer should be yes. You should be able to define ksi in terms of psi and then use ksi in the units placeholder.
In lieu of templates, the older versions of Mathcad allowed for inclusion files, so you could simply reference a particular definition file for a particular application. I forget the syntax, unfortunately, but I think there was either a "Reference" or "Include" function.
TTFN
RE: Default Units
Poked around looking for the function, to no avail. Perhaps my version (5) is too old. Will I upgrade? No. Not worth the extra 3.1 seconds of typing.
I almost upgraded to version 6 a few years ago, but the cursor cross-hairs kept leaving annoying little tracks on the screen, making it impossible to tell just where the cursor was after a while. (They's go away if I refreshed).
Thanks anyway, guys.
STF
RE: Default Units
Insert|Reference, which is the 2nd from the bottom on the Insert pulldown menu.
TTFN
RE: Default Units
Thanks!
STF
RE: Default Units
Now, let me get my soap box out. Why is it we are even having this discussion? Shouldn't user-defined units just be an option when you're choosing what system of units to use? It seems like with all the bells and whistles Mathcad has this simple thing shouldn't be a big deal. I've mentioned this to the folks at Mathsoft. Maybe if enough others do too, they will add this.
RE: Default Units
> There are those who wish to use reserved units for regular variables, but don't want to mess up the units, which requires some additional "thing" to distinguish "g" as a variable vs. "g" as 9.8 m/s^2
> There are those who feel that Mathcad should have a consistent set of powers of 10 prefixes for existing units, e.g., um, mm, cm, m, km should all be pre-defined.
TTFN
RE: Default Units
with the UNITS of your choice" then just insert
the file name into each new project you deem
requiring such "user-defined units"
Reference files in MathCAD v11 (which is the
only version I have tried this feature)works
wonderfully. One instance where I use it is
in the "transport properties of air". This means
each file requiring the calculation of Raynolds
number, heat transfer coefficients, etc. based
on the transport properties of air, I just include
the file and magic occurs !
Take care,
Mathemagician !