sec3.2.mws

Classical Mechanics with Maple

Section 3.2: Balance and Conservation of Energy

Dr. Harald Kammerer
maple@jademountain.de

Initialisation

> restart;

> libname:="C:/mylib/m6dynlib","C:/mylib/m6dynfig",libname:

> with(linalg):with(plots):with(plottools):with(dynamics);with(figures_chapter_3);

Warning, the protected names norm and trace have been redefined and unprotected

Warning, the name changecoords has been redefined

Warning, the name arrow has been redefined

[LAGRANGE, MI, gravitational_energy, impact, kineti...

[Fig_3_1, Fig_3_2, Fig_3_3, Fig_3_4, Fig_3_5, Fig_3...

3.2 Balance and Conservation of Energy

Above we distinguished active and passive forces. Additionally we separate active forces into conservative forces and non-conservative forces .

- A force is called conservative if it does no net work along a closed path. Examples are the gravitational force (see gravitational_energy ) and spring forces (see spring_energy ).

- A force is called non-conservative if it does net work along a closed path. For example the sliding (friction) force and air resistance are non-conservative.

In other words,:

- conservative systems are systems in which the total energy is conserved,

- non-conservative systems receive energy from the environment or lose energy to the environment.

Consequently we can allocate a potential to conservative forces. For example such potentials are the potential of springs and the potential of the gravity.

The result of all on a mass particle acting forces is the sum

F = F[conservative]+F[nonconservative]+N

with the passive force N which is caused by the boundary. Newton's law of motion is then

m a = F[conservative]+F[nonconservative]+N

( Note : the forces and the acceleration in the equations are vectors)

Now we consider the motion of a mass particle along the trajectory of its motion between the two points (1) and (2) (see Fig. 6)

> display(Fig_3_4(),scaling=constrained,axes=none,title="Figure 6");

[Maple Plot]

Multiplication of the law of motion with the incremental displacement d r and integration yields the equation

int(m*a,r = r1 .. r2) = int(F_c,r = r1 .. r2)+int(F...

with the result of the conservative force F _c and the result of the non-conservative forces F _nc .

On the right side is the sum of the work of all acting forces. The passive force N is orthogonal to the trajectory and thus contributes no work. For the conservative forces there exist a total potential V ( r ), which is defined as negative work. We can say: The potential is the capability to do work . The work that is done by the conservative forces on the way from (1) to (2) is the potential difference

int(F_c,r = r1 .. r2) = V(r1)-V(r2)

or with V( r1 )= V1 and V( r2 )= V2

int(F_c,r = r1 .. r2) = V1-V2

The calculation of the work of the non-conservative forces

W[1 .. 2] = int(F_nc,r = r1 .. r2)

on the way form (1) to (2) requires that we know the force law. Further we need for the integration the form

F_nc = F_nc(r)

So the motion r ( t ) must be known . In the simple case of sliding the non-conservative force is constant and the integral can be easily calculated.

We transform the left side of the equation above to

int(m*a,r = r1 .. r2) = int(m*dv/dt,r = r1 .. r2)

and consequently

int(m*dv/dt,r = r1 .. r2) = int(m*dr/dt,v = v1 .. v...

with v 1 = v ( r 1 ) and v 2 = v ( r 2 ).

We know dr/dt = v and at last we get

int(m*a,r = r1 .. r2) = m*v2^2/2-m*v1^2/2

The expression

T = m*v^2/2

is called the kinetic energy (This relation is included in the dynamics package. See kinetic_energy )

Insert all expressions and we get the balance of energy equation

T2+V2 = T1+V1+W[1 .. 2]

In words we say:

The sum of the kinetic and the potential energy at point (2) is the sum of the kinetic and the potential energy at point (1) increased or decreased by the work W[1 .. 2] of the nonconservative forces. We get an increase of energy when the force points in the direction of the displacement and a decrease when the force points against the displacement.

In the special case that no non-conservative forces are acting we get the conservation of energy

T2+V2 = T1+V1

Example: Car Braking Downhill

Have a look at a car with the mass m which is driving downwards a hill as shown in Fig. 7

> display(Fig_3_5(),scaling=constrained,axes=none,title="Figure 7");

[Maple Plot]

The car drives with the constant velocity v0 in the direction of the street. The slope of the road is given by a . When the car reaches the position s=0 the driver begins to stop the car. Then the constant sliding force R takes effect parallel to the trajectory of the motion, or in other words against the coordinate s . The coordinate z points in the vertical direction and we choose z=0 at the center of gravity of the car when s=0 .

The question is: What is the position s2 of the car when it stops?

We first consider the work that is done by the sliding force R . The force R acts on the way from s1 to s2 . We can write

for the work which is done

> W[1 .. 2] := int(-R,s = 0 .. s2)

W[1 .. 2] := -R*s2

Notice that R acts against the direction of the motion, so we have the negative sign.

Next we consider the potential of gravity. This potential is defined by

> V := m*g*z

(This relation is included in the dynamics package. See gravitational_energy )

Where z is measured from an arbitrary choosen horizontal. We had set z=0 at the beginning when s=s1 . So we get

> z1 := 0

At the beginning of the braking process we get for the potential of gravity

> V1:=gravitational_energy(m,g,z1);

V1 := 0

The altitude with respect to the initial height of the car when it reaches the unknown position s=s2 is

> z2 := -s2*sin(alpha)

With this relation we get for the potential of gravity

> V2:=gravitational_energy(m,g,z2);

V2 := -m*g*s2*sin(alpha)

At last we look at the kinetic energy. At the beginning of the braking process the car drives with the velocity v0 and we get for the kinetic energy

> T1:=kinetic_energy(m,v0);

T1 := 1/2*m*v0^2

When the car reaches s=s2 it stops and the velocity is

> v2 := 0

So we get for the kinetic energy

> T2:=kinetic_energy(m,v2);

T2 := 0

We write for the balance of energy

> Energy_Balance := T2+V2 = T1+V1+W[1 .. 2]

Energy_Balance := -m*g*s2*sin(alpha) = 1/2*m*v0^2-R...

Isolation of s2 in this relation yields the braking distance

> s2:=solve(Energy_Balance,s2);

s2 := -1/2*m*v0^2/(m*g*sin(alpha)-R)

At last we want to calculate the braking distance for the case of a horizontal road. Then we get

> alpha := 0

Additionally we limit our consideration to the case that all wheels are blocking. So we have the situation of sliding friction. That yields for the braking force

> R := m*g*mu

with the coefficient of friction m . The braking distance is then

> eval(s2);

1/2*v0^2/g/mu

We see that here the braking distance is independent of the mass of the car.

The constant of gravity is known as

> g := 9.81

For example we get with the initial velocity of 75 km/h, which means in m/s

> v0 := 75/3.6

v0 := 20.83333333

and the coefficient of friction

> mu := 1

the braking distance (in m)

> evalf(s2);

22.12170120

When the car drives with the velocity of 150 km/h

> v0 := 150/3.6

v0 := 41.66666667

we get

> evalf(s2);

88.48680485

This means that doubling the velocity yields a quadrupling of the braking distance.

Example: The Mathematical Pendulum, Energy Considerations

Now we consider the motion of the mathematical pendulum again (see above ).

> unassign('t','a','m','L','T','g','v0','omega','v','phi0','phi_d_0','phi(t)'):

> display(Fig_3_6(),scaling=constrained,axes=none,title="Figure 8");

[Maple Plot]

We consider two different states. The first one is the initial state. The pendulum is displaced by f 0 and has initial angular velocity phi_d_0 . Second we consider an arbitrary state with the displacement f and the angular velocity w .

Next we have to define a horizontal from which we measure the coordinate z to describe the current height of the mass m . We choose the lowest point of the mass, i.e. f =0 . So we get for the height of the mass (see Fig. 8)

> z0 := L-L*cos(phi0)

for the initial state and for the arbitrary second state

> z := L-L*cos(phi)

Now we get the potential of gravity for both states

> V0:=gravitational_energy(m,g,z0);

V0 := m*g*(L-L*cos(phi0))

> V:=gravitational_energy(m,g,z);

V := m*g*(L-L*cos(phi))

The velocity of the mass particle points in the direction of the trajectory. We get for both states

> v0 := L*phi_d_0

> v := L*phi_d

and for the kinetic energy

> T0:=kinetic_energy(m,v0);

T0 := 1/2*m*L^2*phi_d_0^2

> T:=kinetic_energy(m,v);

T := 1/2*m*L^2*phi_d^2

In this example we have no non-conservative forces. So we write for the conservation of energy

> Energy_conservation:=T+V=T0+V0;

Energy_conservation := 1/2*m*L^2*phi_d^2+m*g*(L-L*c...

The term m*g*L is on both sides of the equation and can be eliminated

> EC:=expand(lhs(Energy_conservation)-m*g*L)=expand(rhs(Energy_conservation)-m*g*L);

EC := 1/2*m*L^2*phi_d^2-m*g*L*cos(phi) = 1/2*m*L^2*...

Have again a look at the equation of motion which we derived above, multiplied with L and m

> EOM:=g*sin(phi(t))/L+diff(phi(t),`$`(t,2)) = 0;

EOM := g*sin(phi(t))/L+diff(phi(t),`$`(t,2)) = 0

Multiplication with L^2 , m and diff(phi(t),t) yields

> NEOM:=expand(L**2*m*EOM*diff(phi(t),t));

NEOM := L*m*diff(phi(t),t)*g*sin(phi(t))+L^2*m*diff...

After integration with respect to time we get

> E1:=int(lhs(NEOM),t);

E1 := -m*g*L*cos(phi(t))+1/2*L^2*m*diff(phi(t),t)^2...

We see that E1 and E0 are the same with phi_d = diff(phi(t),t) . We say: "The conservation of energy is a first integral of the equation of motion". The integration in the last step yields an integration constant E1=E0 which represents the total energy of the system at every time. It is given by the initial conditions of the motion:

> E0:=rhs(EC);

With the conservation of energy we can give an expression for the velocity of the mass particle for every position. For example we take the same concrete values as above.

E0 := 1/2*m*L^2*phi_d_0^2-m*g*L*cos(phi0)

> g := 9.81

> L := 10

> m := 10

> phi0 := .1

> phi_d_0 := 0

The conservation of energy is then

> Energy_conservation;

500*phi_d^2+981.00-981.00*cos(phi) = 4.900913841

Solve this relation with respect to the angular velocity phi_d yields

> sol:=solve(Energy_conservation,phi_d);

sol := .1000000000e-5*sqrt(-.1952198172e13+.1962000...
sol := .1000000000e-5*sqrt(-.1952198172e13+.1962000...

We look at the graphical presentation of this solution (Fig. 9)

> P1:=plot(sol[1],phi=-0.1..0.1, color=green):

> P2:=plot(sol[2],phi=-0.1..0.1,color=red):

> display({P1,P2},title="Figure 9", scaling=constrained);

[Maple Plot]

In this diagram we get for every initial condition concentric curves with the common center (0,0). This kind of diagram is called a phase portrait of the undamped system. One discrete curve is called the phase curve. Notice that the example represents a nonlinear equation of motion, because we hadn't made here the simplification sin(phi) = phi . In the case of linear motions, the phase curves are ellipses. Phase portraits are very useful tools for comparing different types of vibrations.

>