Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
function [ PE_tot ] = collar_potential_energy( x_C, theta )
% Computes total Potential energy of the collar system given
% an initial x_C and theta
m = 0.5; % mass in kg
g = 9.81; % acceleration due to gravity m/s^2
K = 30; %spring constant N/m
PE_g = m*x_C*g*sin(theta);
PE_s = .5*K *((0.5 - sqrt(0.5^2+(0.5-x_C)^2)))^2;
PE_tot = PE_g + PE_s;
end