Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- plot multiple 3d graf (cilinder / shpere)

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

10-22-2014
10:54 AM

10-22-2014
10:54 AM

Hello there, how are you?

I have a problem with math graphics.

the equation of a cilinder is cilinder(roh, teta) and the shpere, like this: and th final plot, with wrong equation.

I need to draw a sphere with a equation of a cilinder, so I try to **z:=-1.5,-1.6..-4.5** instead of **Z:=-1.5**

But funcion CreateMesh gives error becouse Z is a array of numbers instead a number?

By the way, anyone know hot to plot a three variable 3d? like Sph(x, y, z) := ...??

regards.

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

10-22-2014
11:31 AM

10-22-2014
11:31 AM

Mathcad's 3D plot can't handle solids. All you get by Createmesh is a mesh on a surface. The same is true for the sphere, too- you just can't tell as long as you draw complete speheres.

In case of the cylinder you may cheat and add top and bottom circular disk - this is what your function Cil is perfect for 😉

Anyway my documentation tells me that input variables are roh and theta..

Look at the drawing you provided. Cylinder coordinates are a way to address a point in 3D space, so we need three of them - rho, theta and z.

If z is constant (as in your function) we get a horizontal plan; if we limit r we get a circulat disk in that plane; if we limit theta, we get a sector.

If rho is constant, we get a cylinder with the applicate (z-axis) as cylinder axis. If we limit z we get what most people would image when they are talking about a cylinder surface (most people don't accept that a mathimatical cylinder is endless and has no specific height).

If theta is constant, we get a plane which includes the applicate.

5 REPLIES 5

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

10-22-2014
11:11 AM

10-22-2014
11:11 AM

Re: plot multiple 3d graf (cilinder / shpere)

In case of the cylinder your equation is wrong! The radius rho is constant, similar to the radius r in case of the sphere. Any point on the surface of the cylinder depends on theta and z, so these two should be arguments of your function Cil.

For future questions please bear in mind that your chances of getting a satisfactory reply increase when you attach your worksheet.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

10-22-2014
11:18 AM

10-22-2014
11:18 AM

Re: plot multiple 3d graf (cilinder / shpere)

Hello WE.

If I use theta and z, i will plot only surface of cilinder, and i wnat to plot inside also, like a filed cilinder.

Using thet and z only will draw outside, right?

Anyway my documentation tells me that input variables are roh and theta..

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

10-22-2014
11:31 AM

10-22-2014
11:31 AM

Mathcad's 3D plot can't handle solids. All you get by Createmesh is a mesh on a surface. The same is true for the sphere, too- you just can't tell as long as you draw complete speheres.

In case of the cylinder you may cheat and add top and bottom circular disk - this is what your function Cil is perfect for 😉

Anyway my documentation tells me that input variables are roh and theta..

Look at the drawing you provided. Cylinder coordinates are a way to address a point in 3D space, so we need three of them - rho, theta and z.

If z is constant (as in your function) we get a horizontal plan; if we limit r we get a circulat disk in that plane; if we limit theta, we get a sector.

If rho is constant, we get a cylinder with the applicate (z-axis) as cylinder axis. If we limit z we get what most people would image when they are talking about a cylinder surface (most people don't accept that a mathimatical cylinder is endless and has no specific height).

If theta is constant, we get a plane which includes the applicate.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

10-22-2014
11:33 AM

10-22-2014
11:33 AM

Re: plot multiple 3d graf (cilinder / shpere)

Many thanks for the explanation WE.

Regards.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

10-22-2014
11:34 AM

10-22-2014
11:34 AM

Re: plot multiple 3d graf (cilinder / shpere)