Marco Azimonti Personal Blog

Quantum
Quest
Algorithms, Math, and Physics

Blog Search


3d rigid body equations of motion

In this blog post, I present a detailed explanation of Euler's equations of motion. I begin with a review of the basic principles and then derive the equations in a body-fixed reference frame. I show how the equations simplify when considering the mass center and how to account for an arbitrary point within the body. I also discuss the importance of principal axes and how they simplify the equations. Finally, I introduce the concept of an intermediate reference frame, which I find useful for solving certain types of problems.

Principal axes of a triangular plate

In this blog post, I walk through the process of finding the principal axes of inertia for a uniform density triangular plate. I start by recalling the moment of inertia tensor and then proceed to solve the eigenvalue problem. I calculate the eigenvalues, which represent the principal moments of inertia, and the corresponding eigenvectors, which define the directions of the principal axes. I explain how the smallest eigenvalue corresponds to the axis of easiest rotation, while the largest eigenvalue indicates the axis of hardest rotation. Finally, I visualize these principal axes and discuss their significance in understanding the rotational behavior of the triangular plate.

Tensor of inertia of a cylinder

In this blog post, I meticulously derive the moment of inertia tensor for a cylinder. I begin by defining the density and setting up the integral for each component of the tensor. I then proceed to evaluate these integrals, outlining each step of the calculation. I leverage the symmetry of the cylinder to simplify the process, showing how I can deduce some components from others.

Tensor of inertia of a triangular plate

In this blog post, I walk through the calculations for determining the moment of inertia tensor of a triangular plate. I begin by establishing the fundamental equations and then proceed to compute the centroid of the triangle, a key step in the process. I then derive the moments of inertia and the product of inertia with respect to the origin. I then apply the parallel axis theorem to shift the reference point to the center of mass, obtaining the corresponding moment of inertia tensor at that point.

Principal axes and moments of inertia

In this blog post, I provide a detailed explanation of principal axes and moments of inertia. I begin by defining the inertia matrix and showing how it simplifies when expressed in the principal axis frame. I then explain how I can determine these principal axes and moments by solving an eigenvalue problem. I illustrate the transformation of the inertia tensor under rotation and how this relates to finding the principal axes. Finally, I discuss the significance of principal axes in simplifying the analysis of rigid body rotation, particularly when considering angular momentum and the conditions for torque-free rotation.

JavaScriptライブラリを使ったWebサイトのローカライズ

本稿では、Webサイトのローカライズを簡略化するために開発した再利用可能なJavaScriptライブラリをご紹介します。以前取り組んだHTML5アプリケーションのローカライズの経験を活かし、このライブラリでは翻訳管理をシンプルにし、動的な言語切り替えを実現しています。ライブラリのアーキテクチャについて解説し、JSONファイルから翻訳データを取得してマージし、ページの内容を更新し、メタデータを扱う方法を示します。さらに、i18nextとLodashを活用することでパフォーマンスと柔軟性を高めています。また、ローカライズプロセスをさらに自動化するために作成した補助スクリプト(HTMLから翻訳可能なコンテンツを抽出するBashスクリプトや、LLMsを利用して自動翻訳を行うPythonスクリプト)についてもご紹介します。

Localizzazione di siti web con una libreria JavaScript

In questo post del blog, presento una libreria JavaScript riutilizzabile che ho sviluppato per semplificare la localizzazione dei siti web. Basata sul mio precedente lavoro con la localizzazione di applicazioni HTML5, questa libreria semplifica la gestione delle traduzioni e consente il cambio dinamico della lingua. Spiegherò l'architettura della libreria, mostrando come recupera e unisce i dati di traduzione da file JSON, aggiorna il contenuto delle pagine e gestisce i metadati. Il mio approccio utilizza i18next e Lodash per migliorare le prestazioni e la flessibilità. Fornirò inoltre approfondimenti sugli script di supporto che ho creato per automatizzare ulteriormente il processo di localizzazione, tra cui uno script Bash per estrarre contenuti traducibili dall'HTML e uno script Python che sfrutta LLM per la traduzione automatica.

Website localization with a JavaScript library

In this blog post, I present a reusable JavaScript library I developed to simplify website localization. Building on my previous work with HTML5 application localization, this library streamlines the management of translations and enables dynamic language switching. I will explain the library's architecture, demonstrating how it fetches and merges translation data from JSON files, updates page content, and handles metadata. My approach uses i18next and Lodash to enhance performance and flexibility. I also provide insights into helper scripts I created to further automate the localization process, including a Bash script for extracting translatable content from HTML and a Python script leveraging LLMs for automated translation.

3d translational transformation of inertia properties

In this blog post, I explore the parallel axis theorem, a useful tool for simplifying moment of inertia calculations for rigid bodies. My focus is on demonstrating how this theorem allows me to relate the moment of inertia around any axis to that calculated about a parallel axis that passes through the body's center of mass. I present the derivation of the tensor form of the theorem, as well as the matrix representation, with particular attention on how the translation of the axis affects the inertia tensor.

Tensor of inertia of a cuboid

In this blog post, I explore the calculation of the mass moment of inertia for a cuboid. I derive the inertia tensor components, detailing each step from the integral definitions to the final expressions for moments and products of inertia. My focus is on a cuboid with uniform mass density, and I provide the mathematical derivations using a step-by-step approach, making the underlying principles clear. I then show how the final matrix simplifies due to the symmetry of the cuboid and how the off-diagonal elements are zero, resulting in a diagonal matrix.

Angular momentum of a rigid body in 3d

In this blog post, I explore the concept of angular momentum for a rigid body undergoing three-dimensional motion. I derive the formula for angular momentum about an arbitrary point, starting from the basic definition involving the integral of the cross product between the position vector and velocity. I show how to incorporate the relative velocity equation to describe the velocity of mass elements within the rigid body. I then introduce the inertia tensor and show how it simplifies the expression for the angular momentum. I also cover specific cases where the reference point is the center of mass or a fixed point in the inertial frame, highlighting how the equation simplifies under these conditions.

Euler angles and rotational transformations

In this blog post, I explore the derivation of rotational transformations using Euler angles and transformation matrices. My focus is on a systematic approach to move from a fixed frame to a moving frame, applying three consecutive rotations. I detail the coordinate transformations and derive the angular velocity in both the fixed and moving frames. I also show the process of inverse transformations and how they are used to express coordinates from the body frame to the fixed frame. Finally, I verify the results by directly applying the rotation matrices to the angular velocity.

3d rotation matrices: tool for handling rotations

In this blog post, I will explore rotation matrices, a powerful tool for handling rotations in engineering and physics. I will show how these matrices can simplify the process of rotating vectors and coordinate systems, eliminating the need for step-by-step methods like Euler angles. I will present the transformation matrices for rotations about the x, y, and z axes and how to apply them to convert vectors between different frames of reference. I will discuss the property of orthonormality, which makes inverting rotation matrices straightforward.

More ...