Feedback for balance equations - mkraska/meclib GitHub Wiki

Back to Feedback for Free Body Diagrams

This page explains how to obtain the sums of forces and moments consistent to the free body diagram.

In the Feedback variables:

rp:[0,0];
lu:a;
data: stackjson_parse(fbd);
f:[0,0];
for i:1 thru length(data)  do ( if (data[i][1]="force") then f: f+fbd_names[i]*unitvec(data[i])); 
m:0;
for i:1 thru length(data)  do ( if (data[i][1]="force") then m: m+fbd_names[i]*lu*moment(data[i],rp)); 
for i:1 thru length(data)  do ( if (data[i][1]="moment") then m: m+fbd_names[i]*msign(data[i]));