Skip to content

Electrostatics (v-formulation)

This page derives the weak formulation for electrostatics using the electric scalar potential vv and describes the available interactions and couplings in Allsolve.

The Electrostatics v-formulation is derived based on the electrostatic approximation. As a starting point, we have the conditions

Bt=0Et=0.\begin{align*} \frac{\partial \boldsymbol{B}}{\partial t} &= 0 \tag{1} \\[10pt] \frac{\partial \boldsymbol{E}}{\partial t} &= 0. \tag{2} \end{align*}

Now with these conditions and the Maxwell’s equations, we have

εE=ρ×E=0,\begin{align*} \nabla \cdot \varepsilon \boldsymbol{E} &= \rho \tag{3} \\[5pt] \nabla \times \boldsymbol{E} &= 0, \tag{4} \end{align*}

where (3)\text{(3)} is Gauss’s law and (4)\text{(4)} is Faraday’s law. From Faraday’s law we see that curl of E\boldsymbol{E} is zero. Hence E\boldsymbol{E} is a conservative field, which means that there exists a scalar function vv such that

E=v,\begin{align*} \boldsymbol{E} = -\nabla v, \tag{5} \end{align*}

where vv is a scalar potential of the vector field E\boldsymbol{E}. By substituting (5)\text{(5)} into Gauss’s law we obtain a Poisson’s equation

(εv)=ρ(εv)+ρ=0.\begin{align*} \nabla \cdot (-\varepsilon \nabla v) &= \rho \tag{6} \\[5pt] \nabla \cdot (\varepsilon \nabla v) + \rho &= 0. \tag{7} \end{align*}

To obtain the weak form, multiply by the test function vv^{\prime} and integrate over the domain Ω\Omega:

Ω  ((εv))  v  dΩ+Ω  ρ  v  dΩ=0.\begin{align*} \int_{\Omega}\; (\nabla \cdot (\varepsilon \nabla v))\; v^{\prime}\; d \Omega + \int_{\Omega}\; \rho\; v^{\prime}\; d \Omega = 0. \tag{8} \end{align*}

Applying the Leibniz rule for nabla operator we get

Ω  (v  εv)  dΩΩ  (vεv)  dΩ+Ω  ρ  v  dΩ=0.\begin{align*} \int_{\Omega}\; \nabla \cdot (v^{\prime}\; \varepsilon \nabla v)\; d \Omega - \int_{\Omega}\; (\nabla v^{\prime} \cdot \varepsilon \nabla v)\; d \Omega + \int_{\Omega}\; \rho\; v^{\prime}\; d \Omega = 0. \tag{9} \end{align*}

For the first term we can use the Divergence theorem

Γ  n(v  εv)  dΓΩ  (vεv)  dΩ+Ω  ρ  v  dΩ=0.\begin{align*} \int_{\Gamma}\; \boldsymbol{n} \cdot (v^{\prime}\; \varepsilon \nabla v)\; d \Gamma - \int_{\Omega}\; (\nabla v^{\prime} \cdot \varepsilon \nabla v)\; d \Omega + \int_{\Omega}\; \rho\; v^{\prime}\; d \Omega = 0. \tag{10} \end{align*}

Rearranging the terms and using relation E=v\boldsymbol{E} = - \nabla v on the Neumann term, we obtain

Ω  (εvv)  dΩ+Γ  (εEn)  v  dΓ+Ω  ρ  v  dΩ.\begin{align*} \int_{\Omega}\; (-\varepsilon \nabla v \cdot \nabla v^{\prime})\; d \Omega + \int_{\Gamma}\; (-\varepsilon \boldsymbol{E} \cdot \boldsymbol{n})\; v^{\prime} \; d \Gamma + \int_{\Omega}\; \rho\; v^{\prime}\; d \Omega. \tag{11} \end{align*}

Applies a fixed value to the electric scalar potential vv. Use this when you need to fix the electric potential at a node or within a region. This can be used to drive a potential difference between two capacitor plates.

How to useProvide an electric potential value in point or region in Volts
Examplev=100v = 100 applies an electric scalar potential of 100V100\:V to the specified region.
UnitElectric potential in Volts (V)

Applies a lumped voltage VV or electric charge QQ to a specific region or node. Used to model simplified circuit elements or charge distributions where the detailed field distribution is not explicitly resolved, but replaced with an equivalent lumped voltage or charge.

How to useSpecify the target curve. From Actuation mode, select either voltage, charge or circuit coupling. Fill in the value.
ExampleQ=1109Q = 1*10^{-9} applies a charge of 1nC1\:nC to the specified curve.
UnitVoltage in Volts (V) or electric charge in Coulombs (C)

Imposes periodic boundary conditions on the electric potential vv between two boundaries. Reduces the computational domain size for geometrically symmetric or antisymmetric problems, avoiding the need to model the full geometry.

ExamplePeriodicity follows the same principles, regardless of which physics module it belongs to. See how periodicity is used in magnetism as a reference: Periodicity in electric motors

This formulation supports the following couplings:

  • Piezoelectricity
    • Solid mechanics
    • Elastic waves
  • Large displacement
    • Mesh deformation