Current flow (v-formulation)
This page derives the weak formulation for steady-state current flow using the electric scalar potential and describes the available interactions and couplings in Allsolve.
Strong formulation
Section titled “Strong formulation”In the case of a non-zero constant current flow Ampere-Maxwell law states, that
Taking the divergence of both sides we get
and
since the divergence of a curl is zero.
Under the assumption of constant current flow (or approximating a slowly varying current), the time derivative of the electric displacement field equals zero.
This indicates that the current flow is non-divergent. We can write a current density using Ohm’s law in differential form as
where is the conductivity of the material.
Thus we have
resulting in Laplace’s equation.
Weak formulation
Section titled “Weak formulation”To obtain the weak form, multiply by the test function and integrate over the domain :
Applying the Leibniz rule for nabla a operator we get
For the first term we can use the Divergence theorem
Rearranging the terms and using relation we obtain
Using relation on the Neumann term results in
Interactions
Section titled “Interactions”Constraint
Section titled “Constraint”Applies a fixed value to the electric scalar potential . 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 use | Provide an electric potential value in point or region in Volts |
| Example | applies an electric scalar potential of to the specified region. |
| Unit | Electric potential in Volts (V) |
Current density source
Section titled “Current density source”Applies a current density vector as a source term to a region. Used to model externally driven current distributions, such as in coils, where the current is prescribed rather than solved for. Can be specified as a constant vector or a spatially varying field.
| How to use | You can use either the matrix editor or the expression editor. With the matrix editor, provide a 3×1 matrix for a 3D problem (2×1 for 2D, etc.). In the expression editor, write the direct expression. |
| Example | [1000; 5000; 0] drives a current density of A/m^regdim, A/m^regdim and A/m^regdim to the specified region. |
| Unit | Ampere/m^regdim. The regdim is the dimension of the target region (e.g., A/m^2 for surface targets). |
Lump V/I
Section titled “Lump V/I”Applies a lumped voltage or current to a specific node or region.
Unlike the Lump V/I Cut, this interaction does not require a cut surface and is used for simpler geometries where the domain is already simply connected.
Commonly used to define electrode potentials or inject current into a conducting region.
| How to use | Specify the target curve. From Actuation mode, select either voltage, current or circuit coupling. Fill in the value. |
| Example | applies 100 Amperes to the curve. |
| Unit | Voltage in Volts (V) or current in Amperes (A) |
Lump V/I Cut
Section titled “Lump V/I Cut”Applies a lumped voltage or current through a cut surface in the domain. In the electric potential formulation, cuts are required to make the domain simply connected, ensuring a unique solution for v. This interaction is used to drive current or voltage through conducting regions such as coils, without explicitly resolving the detailed field distribution inside the conductor.
| How to use | Specify the target curve (must be a closed boundary of some surface). From Actuation mode, select either voltage, current or circuit coupling. Fill in the value. |
| Example | applies 100 Amperes through the cut surface. See also Lump I/V Cut in Induction motor. |
| Unit | Current in Amperes (A) or voltage in Volts (V) |
Periodicity
Section titled “Periodicity”Imposes periodic boundary conditions on the electric potential between two boundaries. Reduces the computational domain size for geometrically symmetric or antisymmetric problems, avoiding the need to model the full geometry.
| Example | Periodicity 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 |