Quantcast
Channel: PTC Community : Discussion List - PTC Mathcad
Viewing all 2936 articles
Browse latest View live

Problem with function

$
0
0

I found the function ShahST(G) in an old book about energy transfer systems. However when I want to use it I get an error. For the moment I seem to be unable to detect the cause. Would anyone be willing to have a look at it? Thanks


MATHCAD + EXCEL VBA Subscripts

$
0
0

Hello,

 

My question is similar to that asked here but not quite:

http://communities.ptc.com/message/187420#187420

 

I am writing VBA macro to get a value from a MATHCAD worksheet using the OLE object interface with the getValue method.

 

My question is, is it possible to get variables with literal subscript names. That is, if I had a statement like:

 

x.1 := 1

 

how would I use the getValue method to retrieve the value of x.1?

 

getValue("x.1") does not work however if I ditch the subscript the method works fine. I am hoping there is a simple trick or work around so I dont have to redefine my variables.

 

 

 

Appreciate your help.

Regards Jacob

DAE in Prime - work with units

$
0
0

You can see in attach a solution one DAE (Simple Pendulum Motion) problem.

Without units - OK

With units - not OK

 

What is the problem?

 

 

 

What licence key to use for Mathcad Express? (30 day test period)

$
0
0

Hello,

 

I just have downloaded Mathcad Express installer "pim_installmgr_mathcad.exe".

 

My understanding of the licencing is that I can evaluate Mathcad for 30 days with this download. After the test period I can continue using Mathcad as "Mathcad Express" for free.

 

But when installing this the installer asks for a licence key in iorder to complete the installation. What licence key has to be entered for the free 30 day test period?

 

 

Regards,

Norbert N.

Help with Linear Interpolation with multiple tables.

$
0
0

Hi all.

 

I have an extremely tricky problem that I have no idea how to program into Mathcad as my experiance is limited to say the least.

 

I have two tables as shown below I have a number of scenarios I need to run to get the correct data.

 

1.      Gc = 0.111 - Therefor can use Table A-2 only.

          N = 0.002 - Can use the N0.003 side of the table.

          M = 0.65 - Have to interpolate between 0.6 and 0.8.

          Results required for - C1, C2, C3 and Kb. I have worked these out as C1 = 0.25, C2=7.75, C3=0.6, Kb=8.75

 

2.      Gc = 0.111 - Therefor can use Table A-2 only.

          N = 0.004 - Interpolate between the N0.003 side and 0.006 N 0.024 side of the table.

          M = 0.65 - Have to interpolate between 0.6 and 0.8.

          Results required for - C1, C2, C3 and Kb. I have worked these out as C1 = 0.242, C2=7.167, C3=0.6, Kb=9.17

 

3.      Gc = 0.111 - Therefor can use Table A-2 only.

          N = 0.01 - Can use the 0.006 N 0.024 side of the table.

          M = 0.65 - Have to interpolate between 0.6 and 0.8.

          Results required for - C1, C2, C3 and Kb. I have worked these out as C1 = 0.225, C2=6, C3=0.6, Kb=10

 

4.      Gc = 0.155 - Therefor have to interpolate between Table A-2 and A-3.

          N = 0.004 - Interpolate between the N0.003 side and 0.006 N 0.024 side of table A-2 and A-3.

          M = 0.65 - Have to interpolate between 0.6 and 0.8 on table A-2 and A-3

          Results required for - C1, C2, C3 and Kb.

           I have worked these out as C1 = 0.176, C2=7.07, C3=0.56, Kb=9.00

 

I have included the excel spread sheet I used to get the results.

 

Hope someone can help.

 

Kind Regards

 

Chris.

 

 

Table A-2 Parameters for calculating minimum weight, L10/(2 + M)2, for pipe on clay, Gc = 0.111
Gc = 0.111
N 0.0030.006 N 0.024
MC1C2C3KbC1C2C3Kb
0.20.190.6100.170.610
0.40.180.6100.170.610
0.50.180.6100.170.610
0.60.280.6100.260.610
0.80.470.650.360.610
10.470.650.460.610
1.50.450.650.840.610
20.730.651.500.610
4.01.410.651.500.610
Table A-3 Parameters for calculating minimum weight, L10/(2 + M)2, for pipe on clay, Gc = 0.222
Gc = 0.222
N 0.0030.006 N 0.024
MC1C2C3KbC1C2C3Kb
0.20.180.5150.180.510
0.40.170.510-0.380.510
0.50.170.510-0.170.510
0.60.170.510070.510
0.80.170.550.160.55
10.170.550.160.55
1.50.170.550.530.55
20.170.550.920.55
40.170.551.700.55
100.170.551.700.55

Experimental data best fit

$
0
0

Hi,

 

I have some data that have been obtained experimentally. I used the built-in function "genfit" for the selection of the approximating function. I took to be a form of this function like: f(x)=a*x^b. And in this case, I know that the function at the point x = 0 must be zero (f(x_0)=0). Are there any suggestions what other functions can describe the experimental data best way? Thanks.

 

Pic_1.png

What is Mathcad Express?

$
0
0

Mathcad Express is here! So what is it?

 

 

Mathcad Express is a free version of Mathcad that allows any user to utilize some selected features of Mathcad Prime 2.0, for an unlimited time. Mathcad Express gives you the ability to spend more time solving engineering problems, and less time programming, documenting, reporting and verifying their solutions. Mathcad Express was designed to be a powerful analysis tool – it is easy to learn and easy to use.

 

How does it work?

 

Mathcad Express does include the full capabilities of Mathcad Prime 2.0 for 30 days, for free. After the 30 day period has ended, you may continue to use the limited functionality of Mathcad Express as long as you like -- the Mathcad Express license will never expire. But there are some differences beyond functionality. You can expect to see in-product messages with information on selected features, training, tips and tricks, and easy ways to purchase the full commercial product. You will also see specific “Mathcad Express” headers and watermarks on worksheets. Should you decide to upgrade to the full product, you will receive the full breadth of Mathcad capabilities and you can eliminate in-product advertising and watermarks.

 

What’s next?

 

PTC is committed to delivering the best products to its customers, and it continues to invest in Mathcad. Mathcad Express is a licensing option, requiring minimal R&D resources, but allowing the Mathcad team to include a number of bug fixes and streamline the licensing process – both of which will benefit Maintenance Customers of Mathcad who are planning on upgrading to the latest release. Mathcad Prime 3.0 is scheduled for release in 2013 and will include the following features:

  • Templates
  • Math formatting
  • Embedded math in text
  • New numeric functionality

 

As always, we welcome your questions and comments. Check out the Mathcad product page at PTC.com to download Mathcad Express!

Prime 3.0 release timing?

$
0
0

Does anyone know when Prime 3.0 will be released?  Is it this year, or 2014?


Downgrade to Mathcad 15

$
0
0

I'm currently using Prime and I really need to downgrade to 15. Does anyone know how to do this because for the life of me I can figure out how to downgrade from Prime to 15.

Something is wrong with contour plots

$
0
0

Something is wrong with displaying contour plots in Mathcad 15. Everything works fine only if I create a new plot. A source file ("Contour plot_MC 2000") was created in Mathcad 2000 version. Any ideas?

DLL in C with Visual studio

$
0
0

hallo leute!

ich möchte gern eine dll (um auf die Gärete am port eines Computer zuzugreifen )

die Funktionen sollen in C geschrieben werden. Als Beispiel sollen Audiodaten über den Mikrophone ausgelesen und über den Lautsprecher des PCs abgespielt werden.

Ich habe die "Portaudio" benutzt, das Programm funktioniert in Visual Studio, aber wird von Mathcad als .dll nicht erkannt. Mir ist nicht klar was ich da falsch mache, kann mir bitte Jemand ein Tipp geben?

Der C-Code habe ich angehängt.

 

MfG

Robert

 

hello people!

I would like
to writte a user defined function(.dll function)in C, to access at theportof a computer. For example,audio datais to be readedover themicrophone(sound recording) andplayed backover thespeakersof the PC.

I have used the"audio port", it's working as program worksin VisualStudio but isn't recognizedas .dllMathcad. Dll. I'm not surewhat I'm doing wrong, pleasecansomebodygive meahint?

I've attached the C code.

Trajectory plotting in 3D

$
0
0

Hi,

 

I have a well trajectory and ellipses every x distance along the trajectory. The ellipses need to be azimuthally oriented (I have the corresponding azimuth data).

 

I can simplify the model and make the trajectory as vertical, then plot the elipses onto the trajectory.

 

What I'm really after is to plot the ellipses as a continous wellbore then assign a colour range to the OD of the wellbore (semi-major for example).

 

Can someone pls help ? 

 

 

thank you

 

Mike

NaN bug: Has anyone seen this before?

$
0
0

I'm trying to debug a function that is returning NaN's somewhat sporatically and for no obvious (to me) reason. I didn't write this function, but have gone through it pretty carefully and can't find anything that looks wrong -- though I'm a fairly new mathcad user. Basically, the function pulls in some part numbers, queries a database for some values that go with those part numbers (ESR, Capacitance and ESL for those interested), does a few simple matrix operations and returns the result. It works fine when the number of parts is low (below 11 seems to work every time) but when my part number matrix is too long I get random NaN's as a result of the matrix operations. Hopefully the attached screenshots will explain better in detail -- they show the function and various outputs with 6, 14 and 44 parts. Does anyone have any ideas about this?

 

Message was edited by: Jay Kobor Note: The parts are the same and in the same order throughout the screenshots. So the first 6 caps in the 14caps image are the same caps as in the 6caps image, and so on. I just mention this to highlight the eccentricity of the problem, since the parts are consistent but the NaN's are not.

Cannot evaluate this accurately at one or more of the specified values

$
0
0

Goodness this is the worksheet that keeps on giving....errors, that is.

 

I've worked through most of the bugs after converting this worksheet to the new Mathcad format and thought FINALLY, I've got it up and running as well as it worked in 15. Unfortunately, no.

 

The problem is that it will only work when ncutoff:=0. As soon as ncutoff:= 1 or 2 the program crashes and I get a "Cannot evaluate this accurately at one or more of the specified values, because the values are outside of the range of accuracy of the function" error in the Morphological Time Loop routine (pg.37).  Now, the functions that depend on ncutoff directly (as far as I can tell) include:

 

1. (H.o a.o L H.ero) on pg. 7 of the doc

2. Morphological Time Loop

     -Q_p (pg. 44)

     -Q.t (pg. 45)

 

The purpose of the Q.t loop is to identify which Q value to use for the further calculations, based on which fissure model is used, ncutoff, and a few other variables. I'm thinking the problem is that when ncutoff:=1 or 2 it uses a different Q value (namely Q.a). As I am not all that familiar with Mathcad I am having a hard time identifying a solution to the problem. It baffles me that this program runs in the old version but not Prime. Any help would be appreciated!

 

Note: fissure_model must be set to 5 in order for the program to use the ncutoff variable.

Mixing equations and guess values in Given-Find block

$
0
0

Mixingequations andguess values inGiven-Find block.

We can not do so in Mathcad Prime

triangle.png

 


Extract row of data based on 2 criteria

$
0
0

 

I have a table which I want to extract a row which meets 2 criteria. The first is "Threshold" which references the first column and the second is "Threshold2" which references the third column. I have done it in a long winded way, but have managed to highlight the rows that I want to extract individually that partially meet the criteria, but as you can see from the "RowMatch" part, Row 8 is the one that meets both criteria.

 

How do I compare the matches and pull the row that meets both criteria? As obviously there is more than one row that meets both. Or is there an easier way to do this?

 

File attached as example.

 

nH unit not always there in Prime 2.0

$
0
0

Last week I had mentioned in another discussion that nH was strangely missing from the list of Units in Prime 2.0. I was told it was in Prime 2,.0 and indeed it was when I looked for it at that time.  However, today it is gone again. I've attached a screen shot with the Units menu showing, and nH is not on the list. Why is nH there sometimes and not others?  My system is Windows 7 Pro x64.

When are additional Dimensions going to be included?

$
0
0

This afternoon myself, a colleague and a new graduate spent 4 hours trying to debug a Mathcad sheet we were transcribing of an optical performance model that was failing because of unit scaling problems on angles. We were simply including dimensions checks as we went, but...

 

While there were other problems with the original documentation (e.g. using a function parameter as a variable of integration and it's own integral limit, but we were copying the functional form exactly) the crux of the problem was that Mathcad (this was V14 M030) still doesn't have spare dimensions to allow users to track key independent parameters. In this case it was the lack of the Angle dimension.

 

For those that don't know Angle, as a dimension, is

  1. The division of two independent orthogonal length measure (radius and arc are tangential!)
  2. a count of the number of times that Length  has been canceled out of equations, while
  3. Length, which is 3d, has 3 orthogonal dimensions for dimensional analysis.

 

12 man hours to find a dimensional analysis scaling problem is not a great result for a tool that prides itself on its dimensional analysis capability.

 

Come on Mathcad, provide extra dimensions for such analysis checking (You've done currency, so it can be done!)

 

Philip.

When is MathCAD Prime 3.0 due for release?

Multiple "If" statements for equation variables

$
0
0

Hey guys,

 

I'm currently working through some engineering problems which have slightly different equations based on two input variables (see below).FIV.jpg

My previous experience with mathcad "if" statements led me to try and produce a multiple lined "if" statement like the one below for "alpha" but this does not seem to be working correctly as it is only picking up the lower "if" statement. The equation is based on the two variables "external pipe diameter" and a range of frequencies.

 

FIVMc.jpg

 

Any help with this would be greatly appreciated.

 

Regards,

 

Nick

Viewing all 2936 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>