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/07/16 19:30] – created 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: | ||
| - | ====== | + | ====== |
| - | \\ | + | This example demonstrates how to calculate the angular momentum of a [[visual3d: |
| + | **Note**: It is very important to note that the total body angular momentum is not calculated by summing the [[visual3d: | ||
| - | ===== Angular Momentum ===== | + | ===== Calculating |
| - | It is important to note that the total body angular momentum is not calculated by summing the [[Visual3D: | + | Visual3D's built in [[visual3d:documentation:visual3d_signal_types:link_model_based_data_type:angular_momentum|ANGULAR_MOMENTUM]] command calculates the angular momentum |
| - | ==== Angular Momentum: | + | ==== About a Segment's Centre |
| - | Visual3D' | + | A segment's angular momentum about its own centre |
| - | **Angular momentum about a segment' | + | {{:SegmentAngularMomentumExpression.jpg}} |
| + | where | ||
| - | | {{SegmentAngularMomentumExpression.jpg}} | + | < |
| + | I = Moment of Inertia | ||
| + | w = Angular velocity | ||
| + | </ | ||
| - | ==== Angular Momentum: | + | ==== About Total Body Center of Mass ==== |
| - | **Angular | + | 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. | + | where |
| - | |{{SegmentAngularMomentum_AboutaPoint_Eq.png}}\\ \\ //Iw// = angular momentum of the segment\\ \\ \\ //I// = Moment of Inertia\\ \\ //w// = Angular velocity\\ \\ //r// = distance from the total body center | + | < |
| + | Iw = angular momentum of the segment | ||
| + | r = distance from the segment' | ||
| + | m = mass of the segment | ||
| + | v = translational velocity | ||
| + | </ | ||
| - | ===== Example Script ===== | + | **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. |
| - | ==== Inroduction | + | ===== Example ===== |
| - | **To calculate | + | This example script demonstrates how to calculate |
| + | - Compute //r// | ||
| + | - Compute //mv// | ||
| + | - Compute //r// x //mv// | ||
| + | - Compute the angular momentum of the segment using the [[visual3d: | ||
| + | - Compute //Iw// x (//r// x //mv//) | ||
| - | - Compute r | + | ==== Files ==== |
| - | - Compute mv | + | |
| - | - Compute r x mv | + | |
| - | - Compute the angular momentum of the segment using the [[Visual3D: | + | |
| - | - Compute Iw * (r x mv) | + | |
| - | + | ||
| - | ==== Script | + | |
| 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 58: | Line 64: | ||
| / | / | ||
| ; | ; | ||
| - | </ | ||
| - | < | + | ! Nested Loops |
| + | ! Outer Loop gets an active segment | ||
| For_Each | For_Each | ||
| / | / | ||
| Line 66: | 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 78: | Line 82: | ||
| ! compute mv | ! compute mv | ||
| Evaluate_Expression | Evaluate_Expression | ||
| - | / | + | / |
| / | / | ||
| ! / | ! / | ||
| Line 84: | Line 88: | ||
| ; | ; | ||
| - | ! compute | + | ! compute |
| Evaluate_Expression | Evaluate_Expression | ||
| / | / | ||
| Line 92: | Line 96: | ||
| ; | ; | ||
| + | ! compute Iw | ||
| Compute_Model_Based_Data | Compute_Model_Based_Data | ||
| / | / | ||
| Line 110: | Line 115: | ||
| ; | ; | ||
| - | ! compute | + | ! compute |
| Evaluate_Expression | Evaluate_Expression | ||
| / | / | ||
| Line 117: | Line 122: | ||
| / | / | ||
| ; | ; | ||
| - | |||
| End_For_Each | End_For_Each | ||
| / | / | ||
| Line 123: | 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.1721158212.txt.gz · Last modified: by sgranger
