# Gas station without pumps

## 2021 May 4

### Resonance with nonlinear impedances

Filed under: Circuits course — gasstationwithoutpumps @ 08:24
Tags: , ,

My book uses nonlinear impedance $Z=(j\omega\;1\,s)^\alpha M$ for modelling loudspeakers and electrodes.  The loudspeaker models include an inductor-like component with $\alpha>0$ and the electrode models include a capacitor-like component with $\alpha<0$. Standard linear components are special cases of the nonlinear impedance: inductors have $\alpha=1$, resistors have $\alpha=0$, and capacitors have $\alpha=-1$.

This past week I was thinking about the resonance that I see in some loudspeakers around 4MHz, which can be modeled with a capacitor in parallel with the main nonlinear impedance.  How can I estimate the capacitance to get initial values for model fitting?  In general, when do I get resonance with two nonlinear impedances?

Although I initially looked at the capacitor case, I realized that the general case of two nonlinear impedances in series gives me simple math that I can easily generalize to special cases and to parallel connections, so let’s look at $Z=(j\omega\;1\,s)^\alpha M + (j\omega\;1s)^\beta N$.  The first thing to do is to replace $j$ by the polar form $e^{j\pi/2}$, getting $Z=e^{j \alpha\pi/2}(\omega\;1\,s)^\alpha M + e^{j \beta\pi/2}(\omega\;1s)^\beta N$.  The we can apply Euler’s formula to get the real and imaginary parts:

$\Re(Z) = \cos(\alpha\pi/2)(\omega\;1\,s)^\alpha M + \cos(\beta\pi/2)(\omega\;1s)^\beta N$.

$\Im(Z) = \sin(\alpha\pi/2)(\omega\;1\,s)^\alpha M +\sin(\beta\pi/2)(\omega\;1s)^\beta N$.

We will get resonance whenever the imaginary part goes to zero:

$0= (\omega\;1\,s)^{\alpha-\beta} M\sin(\alpha\pi/2) +N \sin(\beta\pi/2)$, or

$\omega = \left(\frac{ -N \sin(\beta\pi/2)}{M\sin(\alpha\pi/2)} \right)^{1/(\alpha-\beta)} s^{-1}$.

The special case of an inductor and a capacitor sets $\alpha=1$, $M = L / 1\,s$, $\beta = -1$, and $N= 1\,s/C$,  yielding $\omega= \left(\frac{N}{M}\right)^{1/2} s^{-1} = \sqrt{\frac{1}{LC}}$, which is the standard result.

We get a resonance whenever $\alpha$ and $\beta$ have opposite signs.

We can deal with parallel rather than series impedances by looking at the sum of admittances instead of the sum of impedances.  To get the admittances, the exponents $\alpha$ and $\beta$ get negated and the coefficients $M$ and $N$ inverted, giving us

$\omega = \left(\frac{ -M \sin(\beta\pi/2)}{N\sin(\alpha\pi/2)}\right)^{1/(\beta-\alpha)} s^{-1}$.

Note: this post is a much simpler analysis than last year’s in Resonance for non-linear impedance, because here I am just looking for where the phase goes to zero, rather than where the magnitude of impedance is minimized.

Update 2021 May 4: The two definitions of resonance I’ve used (minimum $|Z|$ and $\Im(Z)=0$) are not the same—I tried doing a parametric plot of the magnitude vs. the phase for one asymmetric example ($\alpha=0.6$ and $\beta=-0.2$) and saw that the minimum magnitude did not occur at 0°.  So I’ll need to think some more about what I want “resonance” to mean for nonlinear impedances.

## 2021 April 30

### Forty-ninth weight progress report

Filed under: Uncategorized — gasstationwithoutpumps @ 20:19
Tags: , , , , , , , ,

This post is yet another weight progress report, continuing the previous one, part of a long series since I started in January 2015.

I have continued to put on weight and have been staying in the “overweight” range. This is most definitely not where I want to be, but I’ve been having a hard time motivating myself to do any exercise.

I had a couple of months when I was much heavier than I wanted to be, but holding steady, but now I’m off in a range I never expected to be.

My self-image was formed in my early years as a very skinny kid—always the smallest and skinniest boy in my classes. I weighed only 85 pounds going into high school, and only 115 when I graduated at 16. I got up to 135 pounds by the time I got my bachelor’s degree, and only put on a little weight in grad school. So up until I was 30 or so, I was extremely thin. I could eat large quantities of high-fat food (like premium ice cream) and not put on weight. My concern in my early years was being able to get enough calories to keep my inefficient metabolism fueled.

It has been very difficult to adjust both my view of myself and my behavior to match the new reality—now I have to watch how much I eat and make extreme effort to lose weight. Sitting around all day on my computer with snacks just a couple of steps away has not been a healthy lifestyle this past year.

I got a new bicycle computer 37 days ago, but I’ve only put 14 miles on the odometer: 0.38 miles/day.  I probably need to average 5 miles a day to stop gaining weight, and 10 miles a day to start losing weight (along with better control of my eating). I’ve been finding it very difficult to motivate myself to do anything physical (about the most strenuous thing I do is mow the lawn every 2–3 weeks with an electric mower).

I need to find something to motivate myself to exercise again.

## 2021 April 24

### Electric lawnmower repaired again and again

Filed under: Uncategorized — gasstationwithoutpumps @ 14:47
Tags: , ,

In Electric lawnmower repaired yet again I reported

After I reassembled the motor I tested the mower without replacing the cover—it seemed to work ok.  I replaced the cover, and lawn mower worked just fine.  I was too tired to mow the lawn (very little sleep last night, and the trip back from Berkeley had taken 6 hours, rather than 3 hours, because of BART delays, the BART train we were on going out of service, and missed connections), but I should be able to mow the lawn sometime in the next week.

I did mow the lawn the next week, but about halfway through I started having trouble with the mower.  The motor ran fine, but if I squeezed the handle all the way it turned off again, making the mower rather difficult to control.  I finished mowing the lawn, but decided to investigate the problem.  At first, I thought that there might be a mechanical problem, with the handle releasing the switch when pulled too far, but I saw no evidence of that when I disassembled the handle and looked at the action of the cam on the handle.

## 2021 March 24

### Santa Cruz County hits 200 Covid deaths

Filed under: Uncategorized — gasstationwithoutpumps @ 20:04
Tags:

A while back, I posted about the Santa Cruz County Health Department’s COVID-19 dashboard.  Yesterday, 2021 March 23, the county hit 200 COVID-19 deaths, so I thought I would update the post.  We have been doing a little better in the nursing homes—now only 51% of the deaths are there (102/200) instead of 66% (79/120). The four big outbreaks are the same, with a couple more deaths at Watsonville Post Acute, and on more at Hearts and Hands, but Sunshine Villa is close behind with 7 deaths and many of the other nursing homes now have 1–4 deaths.  Statewide, the fraction of deaths from nursing homes is about 23% (down from 33%), so we are still way overloaded with nursing-home deaths.  Or, more cheerfully, we’ve been better about keeping down deaths outside the nursing homes.

As before, most of our positive tests are in young adults, but most of the deaths are in older adults—the case fatality rate starts going up somewhere in the 60s and really soars in the 80s and 90s:

age range cases deaths case fatality rate
0–9 1085 0 0%
10–19 1865 0 0%
20–29 3122 0 0%
30–39 2649 4 0.15%
40–49 2232 6 0.27%
50–59 1878 5 0.27%
60–69 1269 27 2.13%
70–79 611 42 6.87%
80–89 339 61 17.99%
90+ 195 55 28.21%

The case fatality rate is very slightly higher in each age category, which may be due to the California strain that circulated in January and February being a bit more deadly.

I’ve been looking at the lagged case fatality rate (dividing the number of deaths by the number of cases 2, 3, or 4 weeks earlier) on http://91-divoc.com/pages/covid-visualization/.  The 4-week lag seems to give the most constant case rate, but even it shows a pretty big increase in California in the last month—the cases now seem to be more deadly.

Although the case rate still indicates that more Latinx people are getting infected than their share of the population (55.98% of the cases are Latinx vs. 33.49% of the population),  the death rates match the population statistics (35.5% of the deaths are of Latinx people).  Most of the old people in the county are white, and age is a much stronger predictor of who will die than race is.

I can’t check the number of hospital beds, because the state moved the page and the county has not updated the link.  The forwarding link provided on the state page goes to Alameda County, not Santa Cruz County, and I don’t see how to fix that.  From the information that is available, we seem to have hit peak usage around January 16, with about 85 hospitalized, and we are now down to around 5 hospitalized—so we’re pretty much out of this spike.  Let’s hope that a large enough fraction of the population is vaccinated before we get hit with another spike.

Next Page »