visual3d:documentation:pipeline:model_based_data_commands:angular_momentum_pt
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| visual3d:documentation:pipeline:model_based_data_commands:angular_momentum_pt [2024/06/18 13:32] – sgranger | visual3d:documentation:pipeline:model_based_data_commands:angular_momentum_pt [2026/06/02 14:14] (current) – ↷ Links adapted because of a move operation 172.204.27.30 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | \\ | + | ====== Angular Momentum about a Point ====== |
| + | This example demonstrates how to calculate the angular momentum of a [[visual3d: | ||
| - | ====== Angular Momentum ====== | + | **Note**: It is very important to note that the total body angular momentum is not calculated by summing the [[visual3d: |
| - | It is important to note that the total body angular momentum is not calculated by summing the [[Visual3D: | + | ===== Calculating Angular Momentum ===== |
| - | ===== Angular Momentum: About Segment Center | + | Visual3D' |
| - | Visual3D' | + | ==== About a Segment' |
| - | **Angular momentum about a segment' | + | A segment' |
| + | {{: | ||
| - | | {{SegmentAngularMomentumExpression.jpg}} | + | where |
| - | ===== Angular | + | < |
| + | I = Moment of Inertia | ||
| + | w = Angular | ||
| + | </ | ||
| - | **Angular momentum about the total body center | + | ==== About Total Body Center |
| + | A segment' | ||
| - | **NOTE:** Angular momentum for the whole body about the total body center of mass is just the summation of the angular momentum of **each** segment about the total body center of mass. | + | |{{:SegmentAngularMomentum_AboutaPoint_Eq.png}} |{{: |
| - | |{{SegmentAngularMomentum_AboutaPoint_Eq.png{{/ | + | where |
| - | ====== Example Script ====== | + | < |
| + | Iw = angular momentum of the segment | ||
| + | r = distance from the segment' | ||
| + | m = mass of the segment | ||
| + | v = translational velocity | ||
| + | </ | ||
| - | ===== Inroduction ===== | + | **NOTE:** In this case angular momentum for the whole body about the total body center of mass is simply the summation of the angular momentum of **each** segment about the total body center of mass. |
| - | **To calculate the angular momentum about a point (such as the model center of mass):** | + | ===== Example ===== |
| - | | + | This example script demonstrates how to calculate a segment' |
| - | - Compute mv | + | |
| - | - Compute r x mv | + | - Compute |
| - | - Compute the angular momentum of the segment using the [[Visual3D:Documentation:Pipeline:Model_Based_Data_Commands:ANGULAR_MOMENTUM|Angular Momentum]] command | + | - Compute |
| - | - Compute Iw * (r x mv) | + | - Compute the angular momentum of the segment using the [[visual3d:documentation:visual3d_signal_types:link_model_based_data_type:angular_momentum|Angular Momentum]] command |
| + | - Compute | ||
| - | ===== Script ===== | + | ==== Files ==== |
| This script and sample CMO files can be downloaded [[https:// | This script and sample CMO files can be downloaded [[https:// | ||
| - | The following script computes the angular momentum about the total body center of mass, if the user would like to calculate angular momentum about a different point, specify the desired signal in place of " | + | ==== Script ==== |
| - | + | ||
| - | This script calculates the angular momentum **for each of the listed segments** (RFT+RSK+RTH+LFT+LSK+LTH+RPV).\\ | + | |
| - | \\ | + | |
| - | If the user would like to calculate the **total body angular momentum about the model center of mass**, the resulting signals from the last Evaluate Expression command for all segments should be summed together. If you would like to calculate the total body angular momentum, you can use the [[Visual3D: | + | |
| < | < | ||
| Line 56: | Line 64: | ||
| / | / | ||
| ; | ; | ||
| - | </ | ||
| - | < | + | ! Nested Loops |
| + | ! Outer Loop gets an active segment | ||
| For_Each | For_Each | ||
| / | / | ||
| Line 64: | Line 72: | ||
| ; | ; | ||
| - | ! compute the R for (r x mv) | + | ! compute the r for (r x mv) |
| Evaluate_Expression | Evaluate_Expression | ||
| - | / | + | / |
| - | (Kinetic_Kinematic::&:: | + | |
| - | (Kinetic_Kinematic::&:: | + | |
| / | / | ||
| ! / | ! / | ||
| Line 76: | Line 82: | ||
| ! compute mv | ! compute mv | ||
| Evaluate_Expression | Evaluate_Expression | ||
| - | / | + | / |
| / | / | ||
| ! / | ! / | ||
| Line 82: | Line 88: | ||
| ; | ; | ||
| - | ! compute | + | ! compute |
| Evaluate_Expression | Evaluate_Expression | ||
| / | / | ||
| Line 90: | Line 96: | ||
| ; | ; | ||
| + | ! compute Iw | ||
| Compute_Model_Based_Data | Compute_Model_Based_Data | ||
| / | / | ||
| Line 108: | Line 115: | ||
| ; | ; | ||
| - | ! compute | + | ! compute |
| Evaluate_Expression | Evaluate_Expression | ||
| / | / | ||
| Line 115: | Line 122: | ||
| / | / | ||
| ; | ; | ||
| - | |||
| End_For_Each | End_For_Each | ||
| / | / | ||
| Line 121: | Line 127: | ||
| </ | </ | ||
| + | The script: | ||
| + | - calculates the angular momentum **for each of the listed segments** (RFT+RSK+RTH+LFT+LSK+LTH+RPV). If the user would like to calculate the **total body angular momentum about the model center of mass**, the resulting signals from the last Evaluate Expression command for all segments should be summed together. If you would like to calculate the total body angular momentum, you can use the [[Visual3D: | ||
| + | - computes the angular momentum about the total body centre of mass, if the user would like to calculate angular momentum about a different point then they simply need to specify the desired signal in place of " | ||
visual3d/documentation/pipeline/model_based_data_commands/angular_momentum_pt.1718717533.txt.gz · Last modified: by sgranger
