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
- :
- Finding Centroids

Options

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

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

Showing results for

10-19-2010
11:51 AM

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

10-19-2010
11:51 AM

Finding Centroids

Using Mathcad to find the centroid location of general shapes.

How'd he do? Would you take a different approach in finding centroids?

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

10-20-2010
11:12 AM

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

10-20-2010
11:12 AM

Your IT dept may have blocked you from accessing the YouTube site.

They have.

But centroids 'R Us:

36 REPLIES 36

10-19-2010
02:22 PM

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

10-19-2010
02:22 PM

BostonDan wrote:

Using Mathcad to find the centroid location of general shapes.

How'd he do? Would you take a different approach in finding centroids?

Tough to say.

Video??

10-19-2010
02:30 PM

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

10-19-2010
02:30 PM

Do you want a worksheet as an example?

Mike

BTW - will the example worksheet be available to download?

10-19-2010
03:29 PM

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

10-19-2010
03:29 PM

Up to you Mike on whether you want to post a worksheet example. I haven't seen anything on the forums about centroids

You'll have to ask the author. This video I pulled from YouTube.

10-19-2010
03:56 PM

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

10-19-2010
03:56 PM

A slightly different approach as the attached sheet calculates a composite centroid in order to calculate the bending stress generated in the jack, might be worth a glance though.

Mike

10-20-2010
12:11 PM

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

10-20-2010
07:08 AM

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

10-20-2010
07:08 AM

Dan;

I'm sorry, please help an old man out. I have searched this site high and low for this video, even searching the videos tab, to no avail. Where in h*ll is the video you're talking about? Or is my (work) computer stripping a link?

10-20-2010
09:03 AM

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

10-20-2010
09:03 AM

Where in h*ll is the video you're talking about? Or is my (work) computer stripping a link?

It's right there, embedded in Dan's post. It's a YouTube video, so maybe your IT dept has stripped the link? Here's the URL for the video:

10-20-2010
09:55 AM

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

10-20-2010
09:55 AM

Sorry Fred, Richard may be right. Your IT dept may have blocked you from accessing the YouTube site.

That doesn't mean you're left out. How do you find centroids using Mathcad?

10-20-2010
11:12 AM

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

10-20-2010
11:12 AM

Your IT dept may have blocked you from accessing the YouTube site.

They have.

But centroids 'R Us:

10-20-2010
04:18 PM

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

10-20-2010
04:18 PM

Fred,

That is a fantastic worksheet, excellent piece of work

**Dan - give thread the correct answer star, I would consider this worksheet more valuable than the video.**

Mike

10-20-2010
05:24 PM

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

10-20-2010
05:24 PM

Fred,

If you have the time would you try to use your sheet for the shapes in my, worksheet "Example2". I have tried numerous times and failed to get it to work.

Cheers in advance

Mike

10-21-2010
06:55 AM

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

10-21-2010
06:55 AM

Mike Armstrong wrote:

Fred,

If you have the time would you try to use your sheet for the shapes in my, worksheet "Example2". I have tried numerous times and failed to get it to work.

Cheers in advance

Mike

If you put Example2 into version 11, I'll be happy to try.

10-21-2010
07:24 AM

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

10-21-2010
11:38 AM

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

10-21-2010
11:38 AM

Attached.

For a very nasty surprise, disable the declaration on TOL.

10-21-2010
12:46 PM

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

10-21-2010
12:46 PM

f.Kohlhepp,

Interesting. Numerical methods can be tricky. In your example, the linterp functions works, in mine, which had two vertical

elements it did not work.

Numerical integration with functions with large steps can have problems, though Mathcad is pretty good at integrating acorss

steps, just takes a little longer. In the double integral method, it takes even longer, so I try to avoid double integration, numerically.

I attached the revisions that I made, in 11; If epsilon is set to 1, it will not work. Seting epsilon very close to 1 works,

and the cacluation time is not noticeable. I am guessing that is the case becasue the numerical integation is not across a

substantial vertical step.

Any comments on this?

Thanks

Wayne

10-21-2010
01:13 PM

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

10-21-2010
01:13 PM

Interesting way to reduce the number of integrations.

I have expanded the original sheet to compute the second moments as well, but I can see that your single integration scheme has definite value.

10-21-2010
03:54 PM

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

10-21-2010
03:54 PM

Cheers wayne for your help.

Would you be able to add a few notes to your worksheet, maybe where you have worked out the Iyy and Ixx. I haven't done this for a long time and its really bugging me.

Mike

10-22-2010
12:08 AM

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

10-22-2010
02:17 PM

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

10-22-2010
02:17 PM

Cheers for the explanation Wayne, much appreciated.

Mike

10-21-2010
03:22 PM

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

10-21-2010
03:22 PM

Cheers Fred.

I'm not sure if its worth while using Integrals for such a problem. My example seems simple. Simple = good for me.

Mike

10-21-2010
03:46 PM

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

10-21-2010
03:46 PM

I'm not sure if its worth while using Integrals for such a problem. My example seems simple. Simple = good for me.

Mike;

I agree that for your example integration is an unnecessary and potentially error-ridden path. Simple is usually much better. The integration method derives from "first principles," though, so it has the advantage of being rigorously correct (once you get rid of numerical integration errors.) Since I'm usually trying to sort out odd-shaped structures, this method has advantages for me.

Fred

10-21-2010
04:22 PM

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

10-21-2010
04:22 PM

Fred,

I am very grateful for the time you have spent. This is a learning curve for me using integrals. I have only ever used them for very simple problems.

I still don't fully understand how your area function works!!!!

Mike

10-22-2010
05:24 AM

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

10-22-2010
05:24 AM

Mike, have a look at this, it is a sheet I posted back in 06/07/06 which does the same job but slightly differently. I did the intergrations by hand to get expressions for the area, 1st mom. of area, etc., under each line segment; the sheet then just evaluates the expressions. (It is a re-hashed BASIC program). It is something I first saw done on a HP 9800 programmable calculator at a meeting at the Institution of Civil Engineers in London in about 1965. I went back and struggled until I got it working on my machine (the office machine actually, they cost £2500 at *that* time). So, I have implemented it on every computer I have had since then and use it quite frequently. Just remember to traverse the area clockwise, holes can be accommodated by going round them anti-clockwise).

Bill Wadsworth.

10-26-2010
02:40 AM

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

10-26-2010
02:40 AM

Cheers for the example Bill, much appreciated.

Mike

10-22-2010
07:12 AM

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

10-22-2010
07:12 AM

I still don't fully understand how your area function works!!!!

Maybe this will help.

10-22-2010
02:14 PM

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

10-22-2010
02:14 PM

Fred,

That is a superb worksheet. You should create a document with Integrals as the title. This could be of great benefit for members, like me trying to understand the use of integrals.

Mike

10-19-2010
10:11 PM

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

10-19-2010
10:11 PM

The approach looks good to me. I am a little disappointed, however, that units were not used in the example. It's good that he's solving by integration rather than just teaching to look up equations from a book, but the numbers have no meaning without units.

10-20-2010
12:08 PM

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

10-20-2010
12:08 PM

Dan,

Its a good example but not very practical. He doesn't explain how he gets the curve function f(x) and for the second example he just makes a curve up. Unless I'm wrong this method can only be used if the curve function is given.

Mike

10-20-2010
01:35 PM

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

10-20-2010
01:35 PM

Its a good example but not very practical. He doesn't explain how he gets the curve function f(x) and for the second example he just makes a curve up. Unless I'm wrong this method can only be used if the curve function is given.

Follow Fred's example, and use interpolation to generate the function. Using the closed spline from Tom's spline routines may be a better choice than linterp in some cases though.