Loading [MathJax]/jax/output/HTML-CSS/jax.js
Stand With Ukraine

Monday, December 4, 2023

Physics problem: calculating the tension of ropes tying together timbers of a raft

This problem comes from my usual source of inspiration, the book by Savchenko et al., from the section on floating bodies and Archimedes' force. I spent a considerable amount of time figuring this one out, mostly because the answers in the edition I have and in the newer edition do not match. Another reason I could not get the correct answer is that I did not think that we should account that there are actually two ropes one at the front and the second is at the back of the raft.

Here is the problem statement: Consider two rows of wooden timbers tied together into a raft, as shown in the figure. Half of the top row of the timbers is above the water surface. Determine the minimum tension of the two ropes holding the timbers together, if the mass of each timber is m. The raft is very wide.

Solution

Let's denote water density as ρ and the volume of each timber as V. Let's refer to forces, acting between the timbers and between a tibmer and a rope as N and F respectively. See the figure below (the Latex code for the fiigure can be found here).

We can express the equillibrium of a bottom and of a top timbers separately using vertical components of forces acting on them:

{2FN3mg+ρVg=02F+N3mg+12ρVg=06F+3N3mg=0

Note that we have 2F in each of the equations above for the force the ropes push timber downwards or upwards because we have two ropes one at the front and another at the back of the raft.

Let's consider vertical components of the forces acting on the upper part of one of the ropes. Assuming that we have around n timbers in each row and that the mass of the rope is negligible, we get:

nF=2Tcosα

Where α - is the angle of the tension force with the vertical at the left and right edges of the raft. The tension arises from the bottom part of the rope pulling the upper part down. Since the n is large, according to the problem statement, we can deduce:

F=2Tcosαn0

So the equation (1) simplifies to the following: 3N3mg=0

Now let's consider the right part of the timbers as a system and write down the equillibrium condition for horizontal components of the forces acting on it. I highlighted in red the timbers in the selected system as well as relevant forces:

N2+P1+P24T=04T=N2+P1+P2

where P10, and P20 - horizontal forces exerted by the neighbour timbers from the top and the bottom rows respectively onto the above selected system of the timbers.

Therefore,

4TN2Tmin=N8N=8Tmin

Then substituting the above expression for N into equation (4) we get:

24Tmin3mg=0Tmin=mg243=mg372

The above result is the same as in the newer edition of the book. At this point, I am not sure how the answer in the old edition of the book was obtained, because if we forget about one rope, the Tmin would be two times greater then the correct one, but in the older edition the tension is 4Tmin for some reason....

Wednesday, August 30, 2023

Stability of a rectangular box floating on a surface of a liquid

This problem, as many of the previous discussed here, is coming from the Savchenko et al book. It took me around one month to wrap my head around this one. I have to admit that I improved (or refreshed) my knowledge of Archimedes' force thanks to this one. Specifically, this problem highlights the fact that Archimedes' force is applied to the center of mass of the water replaced by a floating object. Therefore, even if the object's density is uniform, it can happen that the torques of the gravity force and the Archimedes' force are not compensated even though the modules of the forces are equal. This fact makes more interesting the question about stability of a floating object in a liquid.

Problem statement

Given a rectangular body of length a, width a, and height b. Its density is ρ and it floats in a liquid of density ρ0. Determine the ratio ab for which the object's equillibrium state is stable. It is assumed that the side b of the box is vertical in the equillibrium position.

Discussion

It is obvious that the object's equllibrium is stable with respect to vertical displacements, because if we push it down, the Archimedes' force increases and pushes it back. Similarly, if we pull the object up, the Archimedes' force becomes smaller and the gravity pushes it back to its initial equillibrium position where the gravity force is compensated by the Archimedes' force. Therefore, further down we consider only stability of the object with respect to rotations.

We won't consider the case with the box completely submerged into the liquid as in this case the center of mass of the box coincides with the center of mass of the liquid pushed out by the box, due to the uniform density of the box, and therefore the net torque (exerted by the gravity and Archimedes' forces) will always be zero. I guess this case is not stable with respect to rotations, as the box won't be restored to its original vertical position. Zero gravity, like in the outer space, all orientations are equivalent.

Here we can speculate a bit. Intuitively we would expect that the larger base (i.e. greater a) with respect to the height b would give us a more stable equillibrium. Hence we can expect the result to be in a form ab>r or abr.

Let's denote the height of submerged part of the box as h and the pivot point as O. The pivot point is the intersection of the vertical axis of symmetry of the box and the horizontal plane at the level of the surface of the liquid (the updated level after the box is submerged), see the figure below. We consider rotations at a small angle φ around this pivot point O.


The latex source for the plot can be found here.

There are two ways to find out if the vertical upright orientation of the box is stable: using the change in the height of the center of mass of the system liquid and box, i.e., if the above rotations lower the center of mass of the system then its vertical orientation is not stable, otherwise it is stbale, and using the net torque exerted by the gravity and Archimedes' forces, i.e., in the stable case the torque would act in the direction opposite to the direction of rotation,otherwise it is not stable. We'll use both methods and compare the results.

But first let's prepare a few useful expressions. If we denote as A the center of mass of the liquid pushed out by the box (this is also the point where the Archimedes' force is applied to the box). Let's determine its coordinates (xAφ,yAφ) when the box is rotated, in the system of coordinates with the center at the point O and the y-axis pointing downward and the x-axis pointing to the right. It is easy to see that the mass (mA=ρ0a2h) of the liquid pushed out by the box does not change during the rotation as well as the module of the Archimede's force FA=mAg. By definition, expressions for the coordinates of the center of mass of the liquid pushed out by the box can be written as:

{mAxAφ=mAxAφ+mLxL+mRxRmAyAφ=mAyAφ+mLyL+mRyR

where

mL=mRxL=xRyL=yR

and the Aφ is the center of mass of the fictious liquid volume when it is rotated from the upright position as a solid body, mL and mR are the masses of the prisms (triangles in 2D, see the above figure) to be removed from and added to the fictious liquid body respectively to get the real shape of the liquid pushed out by the box during rotation. (xR,yR) and (xL,yL) are the centers of mass of the prisms of masses mR and mL respectively (red and blue triangles in the figure, the blue one has negative mass and the red one has positive mass). Since mL is the mass to be removed, it is negative in the equations to avoid confusion with the signs. We use these triangles (prismes in 3D) to facilitate the calculation of the position of the center of mass of the liquid pushed out by the box Aφ. It is easy to compute coordinates of the center of mass of the fictious rectangular volume B1B2RL and then to find coordinates of Aφ (of the complex shape of the liquid pushed out by the rotated box) we compute the center of mass of a system consisting of B1B2RL, mR and the negative mass mL. The center of mass of such a system is Aφ. If we substitude the relations between mL and mR into the equations for xAφ, yAφ we get the following expressions:

{xAφ=xAφ+2mRmAxRyAφ=yAφ+2mRmAyR

It is easy to see that

mRmA=ρ01212a12atanφaρ0a2h= a8htanφa8hφxAφ=h2sinϕh2ϕyAφ=h2cosϕ

We keep exact values for the y coordinates here as the changes in y due to the rotation are on the order of φ2 and the variations of x coordinates are on the order of φ.

From the geometry and the properties of the centre of mass of a triangle we can determine xR and yR: {xR=a2cosφ12+13a2cosφcos2φ=a4cosφ(1+cos2φ3)yR=13(a22cosφ)sin2φ=16asinφ

For small angles φ (which is the case in the problem at hand), we get the following expressions for xR and yR:

{xRa3yRa6φ

Using the above relation we can express (xAφ,yAφ) as functions of h, a, and φ:

{xAφ=xAφ+2mRmAxRh2ϕ+2a8hφa3=φ4h(a232h2)yAφ=yAφ+2mRmAyRh2cosφ+2a8hφa6φ= h2cosφ+a224hφ2

We did not replace cosφ with one for the y coordinate since the accuracy of the terms is φ2.

Let's note the coordinates of the center of mass of the pushed out liquid for φ=0:

{xA0=0yA0=h2

It is easy to derive how the coordinates of the center of mass of the box (C) change during rotation, as it is always in the middle of the box:

{xCφ=(b2h)sinφyCφ=(hb2)cosφ

Finally, let's express h using equillibrium between the Archimedes' (FA) and the gravity (FC=mCg) forces:

FCFA=0ρa2bρ0a2h=0h=ρρ0b

Method 1: analysis of torques

Without the loss of generality we can consider clockwise rotation as shown in the plot. Torques acting in the counter-clockwise direction are positive and torques acting in the clockwise direction are negative. With this convention, for stability it is required that the net torque (τ) should act in the direction opposite to the rotation (i.e. anti-clockwise). Therefore the condition for stability is τ>0.

Let's consider two cases and impose the stability condition:

a) the center of mass is below the liquid surface hb/2

If xAφ0, then τ=FC|xCφ|+FA|xAφ|, which is always positive. Both τC and τA act to stabilize the box against rotation.

If xAφ<0, then stability condition is:

τ=FC|xCφ|FA|xAφ|>0

Since FC=FA (as well as mA=mC), for stability we need the following:

|xCφ||xAφ|>0(b2h)φ(1)φ4h(a232h2)>0b2+h+14h(a232h2)>02bh+4h2+a232h2>06bh+a2+6h2>06b2ρρ0+a2+6(ρρ0b)2>0(ab)2>6ρρ06(ρρ0)2ab>6ρρ0(1ρρ0)

b) the center of mass is above the liquid surface h<b/2

In this case the gravity force acts to destabilize the box with its torque acting in the direction of rotation. So the stability in this case is possible when |xAφ|>|xCφ| and xAφxCφ>0 (i.e. A and C are from the same side from the pivot point O) which is equivalent to:

τ=FC|xCφ|+FA|xAφ|>0 (1)(hb2)φ+φ4h(a232h2)>0ab>6ρρ0(1ρρ0)

Let's check if the conditions we imposed do actually make sense.

h<b/2ρ/ρ0<1/2a/b>3/2a23b22>0xAφ>0

remembering that we consider only φ>0.

Method 2: minimum of the potential energy of the system

I like this method more as it requires less logic branching. Let's denote as y the y-coordinate of the center of mass of the system liquid and box. Since the positive direction of the axis is downwards, the change Δy<0 during the rotation of the box would mean that the center of mass of the system is lifted and therefore the system's potential energy would be increasing and the system itself will tend to minimize its potential energy, therefore Δy<0 is our stability condition. By the definition of the center of mass we have:

(MmA+mC)y=mCyCφmAyAφ+My0

where M is the mass the liquid would have when the immersed part of the box is replaced by the liquid. y0 is the y-coordinate of the center of mass of M.

Let's examine the change in the y-coordinate of the center of mass of the system during rotation:

Δy=1MmA+mC(mCΔyCmAΔyA)ΔymCΔyCmAΔyA

Noting that mC=mA, we get:

ΔyΔyCΔyA

Therefore the condition for the system stability is equivalent to:

Δy<0ΔyCΔyA<0

From the relations prepared above we can express ΔyC and ΔyA as follows:

ΔyA=yAφyA0=h2cosφ+a224hφ2h2=a224hφ2h4φ2ΔyC=yCφyC0=(hb2)(cosφ1)(hb2)2φ24

Now plugging the above expressions for ΔyC and ΔyA into the stability inequality, we get:

(hb2)2φ24a224hφ2+h4φ2<0b4φ2h4φ2a224hφ2<06(bh)ha2<06ρρ0(1ρρ0)b2a2<0ab>6ρρ0(1ρρ0)

In conclusion, we are happy that the minimum potential energy and the torque methods give the same result.

ab>6ρρ0(1ρρ0)

Wednesday, July 26, 2023

How to set a correct keyboard layout in i3 window manager

Recently I rediscovered for myself the i3 desktop environment, got tired of windows spread here and there, but I am using an Apple aluminum keyboard with french letters and numeric keypad (just used to it), and I just hated that the layout did not correspond to what is marked on the buttons out of the box. To try to find a solution I googled and tried many things. I eventually ended up using
localectl
to set the correct keyboard layout. So below are the steps which might help you out:
# check the current layout settings
localectl status
# System Locale: LANG=en_CA.UTF-8
# VC Keymap: ca-multix
# X11 Layout: ca
# X11 Model: apple
# X11 Variant: multix
# the command to set keyboard layout is
# localectl set-x11-keymap LAYOUT [MODEL [VARIANT [OPTIONS]]]
# so we need to figure out what to put
# for LAYOUT MODEL and VARIANT for my keyboard
# to list all available layouts
localectl list-x11-keymap-layouts
# from the output of the above command
# I figured that LAYOUT=ca in my case
# now there is a command to list available models
# since I was interested in apple, I added a grep
localectl list-x11-keymap-models | grep -i apple
# apple
# apple_laptop
# applealu_ansi
# applealu_iso
# applealu_jis
# from the above I figured that for me MODEL=apple
# would be a good first guess.
# Now we need to figure out the value for the VARIANT
# for LAYOUT=ca
localectl list-x11-keymap-variants ca
# eng
# fr-dvorak
# fr-legacy
# ike
# multix
# I tried using fr-dvorak and it was a disaster,
# it completely messed up my keyboard,
# using trial and error approach I realized that VARIANT=multix
# for my Apple keyboard with numeric keypad.
# So, finally I have all the ingredients
# to set my layout as follows
localectl set-x11-keymap ca apple multix
# and use cmd+shift+e to exit i3 and then
# login again and enjoy a nicely working keyboard in i3))
## UPDATE:
# I needed the left option/alt key to behave as altgr, it is just easier to type the curly and
# square brackets on the apple keyboard, to achieve this you would need to add the
# following argument to the localectl command 'lv3:alt_switch' as below:
localectl set-x11-keymap ca \
apple \
multix
# I used the following to swap left and right alts
setxkbmap -option lv3:lalt_switch -option lv3:ralt_alt
# to save the above setxkbmap options for switching alts, modify /etc/default/keyboard as follows:
cat /etc/default/keyboard
'''
# KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page.
XKBMODEL="apple"
XKBLAYOUT="ca"
XKBVARIANT="multix"
XKBOPTIONS="lv3:lalt_switch,lv3:ralt_alt"
BACKSPACE="guess"
'''
# To persist the switch of the left-right alts in i3
# I had to add the following to the ~/.config/i3/config
exec --no-startup-id setxkbmap -option lv3:lalt_switch -option lv3:ralt_alt

Monday, April 10, 2023

Sound waves in an ocean column

This problem is about infrasound oscillations in an ocean column, it is taken from Savchenko et. al. (1981). And the question is as follows.

What ocean depth would allow development of physiologically dangerous infrasound oscillations at a linear frequency of ν=7Hz.

My approach is to examine modes allowed by the ocean column assuming that we have a displacement node at the ocean floor and a displacement antinode at the ocean surface. That is when a forced oscillation is excited by some external forcing (e.g wind) only the modes corresponding to the natural (eigen) frequencies would be reinforced by a resonance. I assume that we have an antinode at the surface as the surface is much less constrained than the deeper water layers.

Using a general equation for the modes (also known as standing waves, which could be combined to approximate any solution to the wave equation, provided the standing wave components satisfy imposed boundary conditions). The displacement Ψm(z,t) in such a standing wave is expressed as follows, assuming z=0 at the bottom of the ocean.

Ψm(z,t)=Amsin(kmz)sin(ωmt+αm)

Where km=ωmc=2πνmc and c - is the speed of sound in the ocean. It is interesting to note here that all the points in the standing wave oscillate at the same frequency ωm.

These Ψm(z,t) automatically satisfy the node condition at the ocean floor. Now we are interested in the frequencies νm=ν=7Hz and impose the antinode condition at the ocean surface, i.e. z=Hn:

sin(kmHn)=1kmHn=π2+nπ

where n=0,1,2,3,....

From the above we can determine Hn, by setting νm=ν:

kmHn=π2+nπ2πνmcHn=π2+nπHn=c4ν(2n+1)

The above results approximately (assuming c1500m/s) in the following values for the ocean depth

H0=50mH1=150mH2=250mH3=350mH4=450m...

Which looks ok to me, but unfortunately this is not the answer given in the book, and it really annoyed me for some time. And I am still not sure why but the authors advance that Hn=c4ν(4n+1) instead of the Hn=c4ν(2n+1) obtained above. It seems like the depths Hn=c4ν(4n1) are not suitable for some reason. If someone can explain this to me, that would be great ... But for now I am leaving it here hoping that maybe they simply forgot to consider these solutions.

Tuesday, March 28, 2023

Wave propagation, reflection, and superposition inside a solid rod

This post is about a problem on wave propagation in a solid rod. I took it from Savchenko et al 1981. Before I continue the discussion, I have to present you the problem statement, which goes as follows.

a. Given a harmonic force acting on a free end of a rod of length L. A standing wave is formed due to multiple reflections. Determine locations of nodes (points with 0 stress) in the standing wave of deformations. Determine the amplitude of the external force if the amplitude of the stress in the standing wave in the rod is σ0 and the rod cross-section is S.

image.png

I decided to write up the solution here due to the amount of time I spent figuring it out. Another reason is that it is easy to get an answer close to the correct one by following a wrong solution method. Which might lead someone to think that there is a typo in the book. I know I was considering this possibility myself, even went to check the newer edition, but no luck, the problem answers and statements are identical in both editions. Therefore I continued to break my head over this problem. My mistake was that I somehow considered only two first reflections assuming that would be enough. But when I realized that there are many more relevant reflections I managed to get the correct answer.

I start by considering the stress at the end of the rod where the harmonic force is applied:

σ=FS=F0sinωtS

Let's consider a point in the rod at a distance x from the end of the rod opposite to the one where the external force F is applied (see the figure above). The stress at the point x can be computed as a superposition of deformation stresses after 0, 1, 2, 3, ..., n, ... reflections from the rod edges. Let's denote these stress values as P0,P1,... and the speed of the propagation of deformations in the rod as c. Then P0 (the stress due to the wave after 0 reflections) at x can be expressed using the time delay it takes for the disturbances to propagate from the end where the force is applied to the point x as follows:

P0=F0Ssinω(tLxc)=(F0Seiω(tLxc))=(ˆP0)

where (a+ib)=b is the imaginary part function of a complex number. Then for P1 the deformation would travel the distance L+x, so the expression for P1 is as follows:

P1=F0Ssinω(tL+xc)=(F0Seiω(tL+xc))=(ˆP1)

The negative sign appearing in the above equation for P1 is due to the reflection from the rode edges where we consider that compression deformations are transformed into stretching deformations and inversely. Therefore, following the above considerations we can express stresses at point x after 2,3, ... , n reflections from the rod edges.

ˆP2=F0Seiω(t3Lxc)ˆP3=F0Seiω(t3L+xc)

...

From the above we can group ˆPn terms for even and odd values of n.

The sum of ˆPn for even n is computed as:

ˆPeven=F0S(eiω(tLxc)+eiω(t3Lxc)+eiω(t5Lxc)+...)=F0Seiω(t+xc)+k=0eiω(2k+1)Lc=F0Seiω(t+xc)eiωLc1e2iωLc

Similarly the sum of ˆPn for odd n is computed as:

ˆPodd=F0Seiω(txc)eiωLc1e2iωLc

Finally by adding the odd and even terms we get

ˆP=ˆPodd+ˆPeven=F0S(eiω(t+xc)eiω(txc))eiωLc1e2iωLc=F0SsinωxcsinωLceiωt

ˆP is the deformation stress in the standing wave, and the stress amplitude can be computed as follows:

A(x)=|ˆP|=F0S|sinωxcsinωLc|

So the condition for nodes xj of the standing wave, i.e. A(xj)=0, is as follows

sinωxjc=0ωxjc=jπxj=πcωj,j=0,1,2,3,...

Using the expression for the wavelength λ=cT=2πcω the expression for xj becomes:

xj=λ2j

To determine the amplitude of the external harmonic force we can use the condition

maxxA(x)=σ0

Using the expression for A(x) we get:

maxxA(x)=maxx(F0S|sinωxcsinωLc|)=F0S1|sinωLc|

By comparing the two equations above we get the expression for F0:

F0=σ0S|sinωLc|

Using the equation above we can plot a resonance curve (see the figure below), i.e. σ0SF0 as a function of frequency ω:

σ0SF0=1|sinωLc|

image.png

b. The last question of the problem is: for which values of the frequency ω the harmonic oscillations would be sustained in the rod without external forcing?

Let us reformulate the question. Determine frequencies of sine standing waves (also known as modes) that could arise in the rod assuming that the stress at the edges (x=0 and x=L) is 0. Standing waves with nodes at x=0 and x=L would have the whole number of half wavelengths fit in the rod. This condition can be expressed as follows:

L=nλ2=ncπω0,nω0,n=πcLn,n=1,2,3,...

These frequencies ω0,n, also known as natural frequencies or eigenfrequencies of an oscillator ω0, coincide with the maxima of the resonance curve. The modes are explained very well by R. Feynman in his lecture on modes (https://www.feynmanlectures.caltech.edu/I_49.html#Ch49-F3).