help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Result discrepancies with "polygonCentroid"


From: Juan Pablo Carbajal
Subject: Re: Result discrepancies with "polygonCentroid"
Date: Fri, 8 May 2020 16:15:35 +0200

You code is not reproducible, so it really doesn't help much.
However it seems that your mechanics calculation is the actual
integral over the shape of the beam.
This is not what polygonCentroid do. For this function there is only
vertices (mass points at the nodes if you want).
So if you beam if deformed and the polygon representing it is not very
fine (lots of vertices) it is expected that the two calculations will
differ.

Most functions on polygons treat them as naturally discrete objects
with all the info given by the vertices. Any calculation that uses
path information will give different results whenever the path is not
a straight segment connecting the vertices, or when functions along
the path depend on the path coordinates.

Regards,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]