Create a 3D plot
Create a 3D plot
(OP)
I want to analyze the stress on a part. I want to vary two part dimensions through ranges:
l_k = 2, 3 ... 200 mm
D_A = 18, 19 ... 200 mm
I want to use a Finite Element Method software program to calculate the stress σ in the part using these two variables. Then, I would like to import the stress values into MathCAD and create a plot with l_k as the x axis, D_A as the y axis, and σ as the z axis. I am only a novice MathCad user, so I don't really know how to start. I have reviewed MathCad help and the MathSoft Collaboratory, but I can't understand them very well. All help is appreciated.
l_k = 2, 3 ... 200 mm
D_A = 18, 19 ... 200 mm
I want to use a Finite Element Method software program to calculate the stress σ in the part using these two variables. Then, I would like to import the stress values into MathCAD and create a plot with l_k as the x axis, D_A as the y axis, and σ as the z axis. I am only a novice MathCad user, so I don't really know how to start. I have reviewed MathCad help and the MathSoft Collaboratory, but I can't understand them very well. All help is appreciated.
Regards,
Cory
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips Fora.





RE: Create a 3D plot
Read the structured data file (which in the simple case will have to be in the mathcad directory) into a matrix M, using
M:READPRN(filename)
in this case it would look for filename.prn in the current directory. space comma or tab delimited.
Then display M in a 3D plot
Go the graphics menu , click on the sort of plot you want, type M in the placeholder
Cheers
Greg Locock
RE: Create a 3D plot
Thanks for the reply.
If the .prn file is a matrix of 199 columns and 183 rows (the number of elements in my variables), Mathcad will automatically recognize the number of columns and rows as vectors that I can graph? I assumed I would have to use i and j as range variables then transform i (from 1 to 199) and j (from 1 to 183) into my variables l_k (from 2 to 200) and D_A (from 18 to 200). Mathcad 8 has a 100 row/column limit to matrices - is this true for version 12?
Regards,
Cory
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips Fora.
RE: Create a 3D plot
If you did you'd use something like i:0;rows(M)-1
Just play around with a small matrix, you'll figure it out in no time.
To be honest I'm a non fan of the Mathcad way with matrices, I want big matrices with unlimited dimensions, not 2d only.
Cheers
Greg Locock
RE: Create a 3D plot
Thanks...
TTFN
RE: Create a 3D plot
Regards,
Cory
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips Fora.
RE: Create a 3D plot
Regards,
Cory
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips Fora.
RE: Create a 3D plot
TTFN
RE: Create a 3D plot
Regards,
Cory
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips Fora.