# Moment Coefficient The **Moment Coefficient**, $C_M$, is a dimensionless parameter that provides a generalized representation of the **resultant moment** experienced by an object within a fluid flow. It offers a means to evaluate the **cumulative effect** of pressure coefficients, $c_p$ across different regions of an object's surface and how these pressures translate into aerodynamic moment forces. $C_M$ is a fundamental tool for **torsional effects** for the design and analysis of aerodynamic components. ## Definition Similarly to the force coefficient, this coefficient is defined as a resulting moment coefficient of a **body**. It is defined as a sum of the resulting moment for each triangle of each surface of the body: $$ \vec{C_{M}} = \frac{\sum \vec{M_{res}}}{q V_{nom}} = \frac{\sum \vec{r_o} \times \vec{f_{i}}}{q V_{nom}} $$ $$ \vec{f_i} = c_{pi} q \vec{A_i} $$ $$ \vec{C_{M}} = \frac{\sum (\vec{r_o} \times \vec{A_i}) c_{pi}}{V_{nom}} $$ The position vector $r_o$ is defined for each triangle, from a common arbitrary points $o$. One can also define it for each axis direction: $$ C_{M_x} = \frac{\sum M_{res_x}}{q V_{nom}} = \frac{\sum (r_{oy} A_{iz} - r_{oz} A_{iy}) c_{pi}}{V_{nom}} $$ $$ C_{M_y} = \frac{\sum M_{res_y}}{q V_{nom}} = \frac{\sum (r_{oz} A_{ix} - r_{ox} A_{iz}) c_{pi}}{V_{nom}} $$ $$ C_{M_z} = \frac{\sum M_{res_z}}{q V_{nom}} = \frac{\sum (r_{ox} A_{iy} - r_{oy} A_{ix}) c_{pi}}{V_{nom}} $$ We define the nominal volume ($V_{nom}$) as a **user input**. This is done to let the user define how they want to calculate its value. For example, considering a rectangular tall building: ```{image} /_static/pressure/building.png :width: 45% :align: center ``` The nominal volume could be calculated with: $$ V_{nom} = b h l $$ ## Use Case A common application of the moment coefficient requires sectioning the body in **different sub-bodies**. To do so, the same logic applied to the force coefficient is used to **determine the respective sub-body** of each of the body's triangles. If its center lies inside the sub-body volume, then it belongs to it. The result is a sectionated body in different **sub-bodies for each interval**. When sectioning the body, the respective nominal volume should be the same as the sub-body nominal volume. :::{note} Check out the [concepts](../concepts.md) section for more information about **surface, body and sub-body** definitions. ::: Like the other coefficients, we can apply statistical analysis to the moment coefficient. By definition, the moment coefficient is a **property of a body**. It is used for **primary and secondary structures design**, such as **canopies**. It can also be used for evaluating the resultant wind torsional effect over a **building** or the **building paviments**. It can be seen as the **resulting torsion effect** of the wind induced stress over a body. ## Lever origin The moment is taken about a single `lever_origin` point, configured on the `moment_contribution` op: ```yaml - id: with_moments kind: moment_contribution source: with_forces lever_origin: [0.0, 10.0, 10.0] nominal_area: 100.0 nominal_volume: 10.0 directions: [x, y, z] ``` To scan several candidate centers (for instance a worst-case overturning moment about each footprint corner), run the template once per `lever_origin` and keep the outputs side by side -- each run is an independent pipeline. ## Artifacts The Cm template reads a **Cp time series** (`kind: surface`, produced by the Cp template) and composes `mesh_attach` -> `body_grouping` -> `force_contribution` -> `moment_contribution` -> `field_series_for_groups`. The moment op reuses the `cf_