Energy conservation for a lossless electrical mechanical coupling system requires:
$
dW=v~dq-f^{e}~dx
$
where $dW=$ change in stored energy, $v =$ voltage, $q =$ charge, and $f^{e}=$ force due to electric fields.
When we want to hold voltage constant instead of charge, we can use a Legendre transform to define coenergy $W'$:
$
W' = qv-W
$
$
dW' = q~dv + f^{e}~dx
$
Since we are assuming no losses, $W$ is conservative, meaning that we can take convenient paths when integrating:
$W(q,x) = \int_0^q v(q',x)\,dq'$ $W'(v,x) = \int_0^v q(v',x)\,dv'$
For linear materials, we can relate charge and voltage using capacitance $C(x)$:
$
q = C(x)v
$
$
i=C(x)\dot v+v\frac{dC}{dx}\dot x
$
which gives us the following:
$f^e = \frac{1}{2}v^2\frac{dC}{dx}$ $T^{e} = \frac{1}{2}v^2\frac{dC}{d\theta}$
where $T^{e}$ is torque due to electric fields.
The following relations also follow from this:
| | Energy | Coenergy |
| ------------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------- |
| Energy conservation | $dW=v~dq-f^{e}~dx$ | $dW' = q~dv + f^{e}~dx$ |
| Terminal integral | $W(q,x) = \int_0^q v(q',x)\,dq'$ | $W'(v,x) = \int_0^v q(v',x)\,dv'$ |
| Capacitance | ${} W = \frac{q^{2}}{2C(x)} {}$ | ${} W'=\frac{1}{2}C(x)v^{2} {}$ |
| Force | ${} f^{e}=- \left.\frac{ \partial W }{ \partial x }\right\vert _{q} {}$ | ${} f^{e}=\left. \frac{ \partial W' }{ \partial x } \right\vert_{ v } {}$ |
| Torque | ${} T^{e}=-\left. \frac{ \partial W }{ \partial \theta } \right\vert_{ q } {}$ | $T^{e}=\left. \frac{ \partial W' }{ \partial \theta } \right\vert_{ v }$ |
### Finding capacitance from fields
1. Solve Laplace's Equation $\nabla^{2}\Phi=0$ with boundary conditions given by conductor voltages (valid for gaps with no free charge and uniform $\epsilon$)
2. Compute $E=-\nabla \Phi$
3. Find surface charge on a conductor: $\sigma_{f}=\hat{n}\cdot\epsilon \vec{E}$
4. Integrate $\sigma$ over the conductor's surface to get the charge: $q=\int _{S}\sigma_{f} \, dA$
5. $C=\frac{q}{v}$
### MQS equivalent
Duality: $q \leftrightarrow \lambda$, $v \leftrightarrow i$, $C \leftrightarrow L$.
The state variable ($q$ or $\lambda$) is the time integral of the other
terminal variable: $i=\frac{dq}{dt}$, $v=\frac{d\lambda}{dt}$.
| | EQS | MQS |
|---|---|---|
| State / effort | $q$ (C) / $v$ | $\lambda$ (Wb) / $i$ |
| Energy conservation | $dW_e=v\,dq-f\,dx$ | $dW_m=i\,d\lambda-f\,dx$ |
| Coenergy | $W_e'=qv-W_e$ | $W_m'=\lambda i-W_m$ |
| Coenergy conservation | $dW_e'=q\,dv+f\,dx$ | $dW_m'=\lambda\,di+f\,dx$ |
| Energy integral | $W_e=\int_0^q v(q',x)\,dq'$ | $W_m=\int_0^\lambda i(\lambda',x)\,d\lambda'$ |
| Coenergy integral | $W_e'=\int_0^v q(v',x)\,dv'$ | $W_m'=\int_0^i \lambda(i',x)\,di'$ |
| Linear law | $q=C(x)v$ | $\lambda=L(x)i$ |
| Linear energy | $\frac{q^2}{2C(x)}$ | $\frac{\lambda^2}{2L(x)}$ |
| Linear coenergy | $\frac{1}{2}C(x)v^2$ | $\frac{1}{2}L(x)i^2$ |
| Force | $f=-\left.\frac{\partial W_e}{\partial x}\right\vert_q=\left.\frac{\partial W_e'}{\partial x}\right\vert_v$ | $f=-\left.\frac{\partial W_m}{\partial x}\right\vert_\lambda=\left.\frac{\partial W_m'}{\partial x}\right\vert_i$ |
| Linear force | $\frac{1}{2}v^2\frac{dC}{dx}$ | $\frac{1}{2}i^2\frac{dL}{dx}$ |
| Motion term | $i=C\dot v+v\frac{dC}{dx}\dot x$ | $v=L\dot i+i\frac{dL}{dx}\dot x$ |
| Path assumption | $q=0\Rightarrow f=0$ (no electrets) | $i=0\Rightarrow f=0$ (no permanent magnets) |
Torque: replace $x\to\theta$, $f\to T$.
Multiport: $v\,dq\to\sum_k v_k\,dq_k$, $i\,d\lambda\to\sum_k i_k\,d\lambda_k$;
reciprocity $C_{jk}=C_{kj}$, $L_{jk}=L_{kj}$.
Path for integrals: set $x$ with all $q$ (or $i$) $=0$ so $f=0$, then charge
ports one at a time at fixed $x$ (later ports see earlier ones at final values).
### Finding inductance from fields
1. Solve for $\vec H$ from Ampère: $\oint \vec H\cdot d\vec l=Ni_{\text{enc}}$
2. $\vec B=\mu\vec H$
3. Flux linkage: $\lambda=\iint_S \vec B\cdot d\vec S$ over the surface bounded by the winding ($\approx N\Phi$ for $N$ turns linking flux $\Phi$)
4. $L=\frac{\lambda}{i}$
Check: $\frac{1}{2}Li^2=\iiint \frac{1}{2}\mu H^2\,dV$