![]() ![]() This gives the moment of inertia about the y axis for a coordinate systemĭouble ix = PolygonInertiaCalculator.ix(poly) ĭouble iy = PolygonInertiaCalculator.iy(poly) ĭouble ixy = PolygonInertiaCalculator.ixy(poly) ĪssertEquals(ix, (1.0 + 1.0/3.0), 1.0e-6) ĪssertEquals(iy, (21.0 + 1.0/3.0), 1. In a two dimensional problem, the direction can be thought of as a scalar. Import static ĭouble actual = PolygonInertiaCalculator.inertia(poly) ĪssertEquals(expected, actual, void testSquare()ĪssertEquals(expected, actual, void testRectangle() There are three ways to calculate moments: scalar, vector, and using the right. Here's the JUnit test to accompany it: import Theres a parallel axis theorem that allows you to translate from one coordinate system to another. Scale = dot(poly, poly) + dot(poly, poly) + dot(poly, poly) When you have a 2D polygon, you have three moments of inertia you can calculate relative to a given coordinate system: moment about x, moment about y, and polar moment of inertia. If ((poly != null) & (poly.length > MIN_POINTS))įor (int n = 0 n < (poly.length-1) ++n) * poly of 2D points defining a closed polygon * Calculate moment of inertia about x-axis Public static double cross(Point2D u, Point2D v) Public static double dot(Point2D u, Point2D v) Here's some code that might help you, along with a JUnit test to prove that it works: import 2D There's a parallel axis theorem that allows you to translate from one coordinate system to another.ĭo you know precisely which moment and coordinate system this formula applies to? When you have a 2D polygon, you have three moments of inertia you can calculate relative to a given coordinate system: moment about x, moment about y, and polar moment of inertia. IS the result a scalar or vector MAXF 3.Determine the moment of the 250N force at B about point D. You need to understand exactly what this formula means. Write the equation for a moment in 3D in Vector Form. Moment of force ForcePerpendicular Distance between Force and Point Go Resultant. of vector because itcan appliedatany samemoment Thisproperty pointalong aboutpoint iscalledtheitslineof O. I think you have more work to do that merely translating formulas into code. This calculator can be used for 2D vectors or 3D vectors. moment As we can can be use seen any fromthe position figure, vector measured lineof O Thus, from actionof r×F Fcanbe pointOtothe theforceF.
0 Comments
Leave a Reply. |