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

How do i use find in a solve block

$
0
0

I don;t know how to use the find statement in a solve block. I have tried everything but did not succeed.

How do you type it in to see a result of your variables.


Extracting definitions from formulas in mathcad 15.

$
0
0

Hi
I'm using Mathcad 15 for solving  the tasks given to me on my education as a marine engineer. Unfortunately, some of my teachers are rather "old-school" and does not accept the typical calculations with defined values in mathcad like: a = b + c = 5.
Does anyone know if its possible to make Mathcad 15 show the defined values in a calculation like: a = b + c = 2 + 3 = 5   ??? Also when using units like kW, Volts, Amps, ect.?

 

Please excuse my bad english

 

Simon

Returning Multiple Values from a Function

$
0
0

Good morning,

 

I have been working in a problem that requires several steps in one function. Is like creating several tables and each one with specific information. At the end, my interest is the final value of one of those "tables", but it would be nice if I can show the result of the others tables (the entire table). Please see attached example, to understand a little bit more my issue: There are two functions ("Func" and "Func2" they are the same but they have a different return) with a loop. In each iteration I am creating a new row of each "table", and using that information I estimate the next. The tables should handle units, so that's why I use arbitrary units in this example.

 

My question is: as you can appreciate I use two functions to get the required value and the "other tables", but they are actually the same. do you know if there is any way I can get all (value and "tables") from the first function? something like multiple return?

 

Thanks a lot,

OJ.

3D Plots of a summation of infinite series - Heat Transfer

$
0
0

Hello,

 

I recently purchased the eduacation edition to assist me through graduate school.  As such, I have had an interest in re-solving my heat transfer problems from last semester.  However, I am having difficulties in solving Theta and plotting Theta for a given boundary conditions. 

 

Attached is my MathCAD sheet along with an execl file which calculates the correct distribution.  I have also attached a finite elements excel sheet which correctly predicts the temperature distribution as well.  Additionally, I have also attached a MatLab sheet (including jpegs) of the plots I am required to make. 

 

I am mainly focused on the Theta plots right now, and will follow up with the heat flux plots.

 

I would appreciate any imput in what is wrong with the MathCAD sheet and what I am over looking.  The main problem appears to be the theat calculation when given a set of number and that the plot will not occur until this is fixed.

 

Jake

Changing the Dimensions of a Matrix

$
0
0

I am using mathcad 15 and have a 24x12 matrix, but I do not want the last 9 rows. Is there any way to delete those last 9 rows to create a 15x12 matrix without creating a whole new matrix?

Solve display and units?

$
0
0

I've used a solve block to find the 3 roots of an equation. The 3 answers should just be in newtons (N) but it gives me an answer as Nmm2 / m2 and equations. Can I change this so it gives 3 just values?

 

Capture.JPG

I can use the root function as below as I'm after the lowest value, but would prefer to see the 3 roots?

Capture2.JPG

Change units in the calculations

$
0
0

Hello,

 

i would like to ask if is any chance to change units in calculations. Details at the picture.

 

Thank you

Advice on upgrading?

$
0
0

I have been a long time MC user and have been happily going along using MC14. From the comments I have read, there is no incentive to move up to the Primes (can one even upgrade - I could not find any info on PTC site about upgrading from MC 14). I have read good comments about MC15 but ones about running with Windows 7. Advice? Suggestions?


MathCAD 15 Client can't grab license from server.

$
0
0

We have a floating license set up on our server and in the LMTools program the status says 1 license availible.

 

There has been a rule added to the firewall on the server to open port 7788.

 

When configuring the client, I've tried using both the server name and the server IP address to no avail.

 

Whe also have an Autodesk Simulation license issued on another instance of LMTools on the same server. Would this be causing an issue?

 

What else might I try?

Runtime error running Print Preview

$
0
0

I recently re-installed MC14 on a new computer running Windows 7. Now when I try to run Print Preview, I get an unknown runtime error. MC was running fine on my previous computer running Windows XP. Any suggestions?

handling of exp(-i*theta)

$
0
0

Hello,

 

I've gone between prime and 15 and settled on trying to implement some radial orthoganal moments in 15 due to better plotting and familiarity with keystrokes when editing equations. Here is the problem I am running into. Apologies up front...I'm at home and don't have Mathcad, or access to the files that are causing problems.

 

I'm working on a calculation that involves r * exp(-i*n*theta). Not having good results, and digging into the smaller parts, it appears that 15 has some issue with evaluation of exp(-i*theta).

 

If i set a range of theta like such:

 

nTheta = 300, theta = -pi, 2*pi/300 .. pi

 

R.out:= exp(-1i*theta)

 

R.out = returns values of the order 10^272. Has anyone seen anything similar to this. I believe exp(i*theta) should have magnitude 1 with a varying angle, so this makes no sense to me.

 

Thanks

Finding the Shear Force and Bending Moment Along a Beam

$
0
0

I downloaded this worksheet, but I  can't get it to run.  What version of mathcad is it?  I am using prime 1.0.

Colors on contour plots showing wrong.

$
0
0

Hello all,

I am totally buffled by what I get on my contour plots.

I have attached the file. In the file I have also included a picture from the Excel contour plot which proves that the Mathcad plots are wrong.

Basically I have the 3 vectors defined as matrices, x, y ans z and I create the 3d matrix based on the procedure I came across on a similar plot related discussion thread of this forum.

The contour lines on the plot I create appear correct but the colours are plotted wrong. I think that the problem is that two different bands have the same colour(!) but should have different ones based on the legend underneath. This doesn't make any sense. Before I totally give up on this and continue my work in Excel I wanted to submit this question in the forum.

Also, a separate -less critical- question: is there any chance that I can have axis titles on my plots, instead of having to put text blocks all over...

Any help is appreciated,

Thanks,

Panos

While loop doesn't work

$
0
0

Hi!

 

Does anybody have any suggestions why the iteration in the while loop doesn't work.

The return value of "iter" shouldn't be 1. It seems like the iteration doesnt work. I have basically translated this from a matlab script with the exception changing the equations to functions to put in the loop.

 

Could anyone see a deviation in the script?

 

Thanks in advance!

Equal scales on Plot

$
0
0

Do you know does work and how work this tool:

es.png


Prime 3.0 Custom Functions (string arguments)

$
0
0

I have a user function for Mathcad 15 that works great (in Mathcad 15).  I'm attempting to build that .dll for Mathcad Prime 3.0.  After compiling the code (linking the mcaduser.lib that is distributed with Mathcad Prime 3.0), all the custom functions defined in my .dll work fine in Mathcad Prime 3.0, except those which return a string type value.  Any function which returns a string will crash Mathcad Prime 3.0 when the function is called.   Even the most simple test cases, such as the following function:

 

LRESULT testFunction(LPMCSTRING ParamValue, LPCMCSTRING ParamName)

{

ParamValue->str = "foo";

return 0;

}

 

will crash Prime 3.0 when invoked in a worksheet.

 

Anyone else experience this issue?  Thanks for the feedback!

Scott

Plotting a crystal in Mathcad

$
0
0

Hello guys,

 

I have a question about ploting a crystal in Mathcad. In general crystal is made by translation of unit cell in a periodical way along x,y,z for some increment a, b, c. The a, b and c determine the size of unit cell, while x, y and z can be at some angle: alpha, beta, gamma (see attached figure).

 

Lets say that crystal is rock salt (NaCl). Then Na and Cl atoms are positioned within unit cell in some regular manner. The plotting of one unit cell in a form of 3D plot in Mathcad is simple, but I am curious how to create a crystal of desired size? I guess it has to do something with vectors.

 

Thanks,

Goran

NaCl_unit cell.bmpNaCl_3x3 unit cell.bmp

NaCl unit cell                                        NaCl crystal - 3x3 unit cells

polynomial with multiple solutions

$
0
0

Hi, I am quite new to mathcad and need help with the following problem:

 

a*u+b*v-c*w+d*uv = y

 

a=1.4

b=0.3

c=0.5

d=0.2

 

u, v, w are variables that fulfill some constraints:

 

0.2<u<0.8

0.1<v<0.5

0<w<0.7

 

and

 

u+v+w=1

 

and

 

u, v, w can only have values like u = 0.2, 0.3, 0.4, ... but not 0.25 or 0.21. (I am sure there is a mathematical term for numbers as such, sorry)

 

Now, I want mathcad to give me all possible solutions (all different compositions of u, v, w) that fulfill y > 2.

 

Thanks for any help.

Max

Symbolically solving in mathcad, bound the solution output

$
0
0

Hello,

 

I'm wanting to plot some stream functions of which I have the functions for.  I know what my stream function is in terms of u & v, but now I want to express the solution in terms of x & y, of which I have.  Since I know that the stream function is a constant, any choice for u or v has a solution.

 

Currently psi = -2*C*sinh(u)*cos(v) = constant, and C is an arbitrary constant.

 

To plot out the points on a continuous line, I let v for instance = 0, phi/4...2*phi.  I can then get the values for u, which are unique, and can then through a programming function, get the converted values of these two vectors for x(u,v) and y(u,v), therby giving me a line.  I can add other lines by changing the value of psi = constant.

 

However, when I want to get the stream lines for say, letting u=0,0.5,3 , there are multiple solutions to the value of v.  As I am symbolically solving the equations, I'm wanting to know if there is a way to 'bound' the symbolic solution to v between say 0 & phi, which would allow a vector output, of which I can then use to plot.

 

I have attached (the second version) of the spreadsheet.  The first one crashed when I tried solve, v, 0, 2phi.

 

I would also like to know if I can make the stream functions solve, some variable output be equal to a vector iteself.

 

Thank you for any help in advance =).

Animation in Mathcad Prime 1.0, 2.0 or 3.0

Viewing all 2936 articles
Browse latest View live


Latest Images

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