cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Revolved surface using 3D plot

JF_10205473
3-Newcomer

Revolved surface using 3D plot

16557174892506534801827528554474[1631].jpg

Function f(x)=cos(x)  x: 0,0.1..2pi

14 REPLIES 14
LucMeekes
23-Emerald III
(To:JF_10205473)

Please attach your Mathcad sheet, not just a picture.

 

Success!
Luc

slide_8.jpgdraw revolved surface using 3D plot. Idea of last out come shape of this. we have to get that shape in that cos(x) : x:= 0,0.1..2pi range. hope you can help.

 

Werner_E
25-Diamond I
(To:JF_10205473)

The 3D plot you show seems not to be from cosine.

Furthermore there are so many ways to rotate cos(x) for x from 0 to 2 pi - vertical axis, horizontal axis ...

B.png

cos-Rotation2.gif

Really appreciate all of your guy's help. Could you please help me to draw this attached shape, which is also shown 3rd shape?

ttokoro
20-Turquoise
(To:JF_10205473)

image.png

Werner_E
25-Diamond I
(To:ttokoro)

I think its better to use the variables you introduced before when creating the mesh

Werner_E_0-1655894468316.png

I'd prefer a vector function over three separate ones, but that may be a matter of personal taste.

 

Its sad that Prime does not offer a way to quickly switch from the bad looking autoscale view

Werner_E_4-1655894771209.png

to a more meaningful "equal scale" view. In real Mathcad its just one click. Actually it can be done in Prime, but its a lot of manual work and fumbling around.

Werner_E_0-1655895374185.png

 

Its a pity that PTC is not willing/able to implement a 3D plot which is worth using and would offers at least the formatting abilities we were used from real Mathcad. This sure would still not be state of the art, but at least a huge step forward.

 

 

 

 

Really appreciate all of your guy's help. Could you please help me to draw this attached shape, which is also shown 3rd shape in our college  

werner_E 's  post.
Werner_E
25-Diamond I
(To:JF_10205473)

Do you mean that the axis of rotation should be x=-pi ?

At least this is what the picture shows.

It looks to me like it's your homework. Therefore, I think it would be appropriate for you to show a little bit of your own work that goes beyond drawing the cosine function.
You sure will have learned something about how to mathematically represent a surface of revolution, right?
So start with your attempts in a worksheet and post it here if you run into problems.
ttokoro has shown a way how to do the rotation around the x-axis (y=0). You could now start to try to achieve the rotation around the y-axis (x=0) yourself. After that, we will go further and manage the rotation around a parallel to the y-axis, e.g. x=-pi, as shown in the picture.

 

This revolute function is so new to me in Mathcad. these are some samples I used to draw in Solidworks, since I saw it's possible to do this same plot in Mathcad I wanted to try that. In this task, I have drawn my base axis and the shape of the surface. how to make that revolves around that. 

Werner_E
25-Diamond I
(To:JF_10205473)

There is no revolute function ore anything like that  available in Prime on contrary to Maple, Mathematica, Sage, GeoGebra or others..

Prime allows to make a 3D plot of either three functions in two parameters representing x-, y- and z-value (as was done by ttokoro) or one vector function in two parameters (basically the three functions stacked into one vector. A description how to do that can be found on the Prime help: https://support.ptc.com/help/mathcad/r6.0/de/index.html#page/PTC_Mathcad_Help%2Fcreatespace_and_createmesh.html%23

You did something similar in your file "task ex1" but ended up with a flat space because you had set a to zero.

 

To rotate a 2D function in x and y around the x- or y-axis you need to formulate that kind of a vector-function or a triple of single functions in 2 parameters yourself. Thats a math problem, not a prime question.
The math necessary can be found in the literature and of course in the net, for example here; https://en.wikipedia.org/wiki/Surface_of_revolution#Coordinate_expressions

 

So try to use the information there to formulate a function for the surface of rotation with the y-axis as axis of rotation.

After that we can work on the modifications to use an axis not equal but parallel to the y-axis.

ttokoro
20-Turquoise
(To:JF_10205473)

image.pngimage.png

Finally got the first one :  )  Could you please tell me how did you get the second one.

Werner_E
25-Diamond I
(To:JF_10205473)

I don't know what the meaning of your "ew 11.mcdx" should be, but you should be aware that in your "tast ex1.mcdx" it is not a surface of revolution which is seen here! Its an elliptic paraboloid. It just looks like a surface of rotation because Prime automatically scales the axis that way and there is no option in Prime to automatically see the object as it really is (equal scale). You would have to manually edit the values for each of the three axis to get the correct view.

See in the pic the comparison - Primes autoscale on the left, manually created equal scale view on the right.

Werner_E_0-1655980128690.png

The top view clearly shows that its not a surface created by rotation.

Werner_E_1-1655980176861.png

 

I guess that you just typed in an example you found elsewhere. I can't see any attempt to apply a rotation as e.g. seen in the wikipedia link I posted in my last answer.

 

ttokoro
20-Turquoise
(To:JF_10205473)

image.png

Announcements

Top Tags