How this calculation works
A heterogeneous conductor can respond differently to an imposed gradient in different directions, even when its local conductivity is a scalar. Periodic homogenization computes an effective tensor by solving how the microscopic field redistributes inside one repeated cell.
Cell-centeredperiodicscalarconductivity k>0. Conservativefinitevolumeedges withharmonicmean k_e=2ki kj/(ki+kj). Forjaxis solveD^T k_e D χ_j=-D^T k_e e_j withzeromean; useprojectedCGSPDnullspaceconstantremoved. jflux=k_e(e_j+Dχj); tensorfromcellaveragesappropriatedirectionalfaceflux. Energyconsistent tensorKij=<k(e_i+Dχ_i)·(e_j+Dχ_j)> givesexactnumericalsymmetry; fluxandenergyversionscompare. residual,lambda bounds harmonicmean(k)≤eigK≤mean(k),symmetry,homogeneousandlayeredfixtures. Donotusepointwiseaveragesoftensorsasreplacementcorrectors.A worked example
With the prefilled inputs, effectiveTensor = [[3,0],[0,3]]. Periodic square conductivity grid; harmonic edge averages; effective tensor columns x/y gradients.
Good to know
Periodic square finite-volume cell problems with harmonic edge conductivities;columns are imposed x/y gradients. Finite-grid homogenized tensor approximation,not automatic continuum/error certification.
Reference: Allaire, Periodic homogenization: scalar conductivity cell problem (opens in a new tab) ↗
From a periodic cell to an effective material
A heterogeneous conductor can respond differently to an imposed gradient in different directions, even when its local conductivity is a scalar. Periodic homogenization computes an effective tensor by solving how the microscopic field redistributes inside one repeated cell.
The result describes a scale-separated effective model. It does not resolve a finite assembly with arbitrary outer boundaries. Repeating the entered cell and assuming periodicity are part of the mathematical question, not plotting choices.
Compare with the Two dimensional Poisson equation calculator on a unit square. Computeaneffectiveanisotropictensorfromperiodicmicroscalecorrectorproblems; onesourcePoissonsolveisnotacompositehomogenizationtensor.
Entering the conductivity cell
Periodic square conductivity grid; harmonic edge averages; effective tensor columns x/y gradients.Provide an eight-through-forty-eight square array of positive conductivity values using consistent units, with maximum-to-minimum contrast no greater than one thousand. Opposite boundaries are identified periodically. A sharp jump at an apparent image edge is therefore also an interface with the opposite edge, which can affect the cell problem.
Large contrast makes the linear systems harder to solve and increases the importance of conservative flux handling. Values below zero are not ordinary scalar conductivities in this elliptic model. Explicit limits on contrast and grid size keep the browser calculation bounded.
Correctors for independent directions
For each coordinate direction, impose a unit macroscopic gradient and solve for a periodic correction with zero mean. The correction redistributes the local gradient so its conductivity-weighted flux is divergence free on the cell.
Simply averaging conductivity omits that redistribution. It works for a uniform cell and for a particular direction in aligned layers, but not in general. Two independent corrector solves are needed to recover the two-dimensional tensor.
Conservative discretization and normalization
A finite-volume scheme balances fluxes across neighboring cell faces. Harmonic face conductivity treats serial jumps consistently. The constant nullspace is removed by a zero-mean condition, which changes only the corrector's arbitrary additive constant.
This release computes the effective tensor from averaged conservative face fluxes after its two corrector solves. It returns each zero-mean corrector array with iteration count and residual, plus tensor symmetry residual and scalar arithmetic and harmonic reference bounds. A small iterative residual should be assessed against the conductivity scale rather than only an absolute number.
A layered-material worked calculation
Take equal-width layers with conductivities one and four, running parallel to the x axis. A gradient along the layers sees an arithmetic mean, giving effective x conductivity 2.5. A gradient across the layers produces a common flux through serial materials.
The cross-layer effective conductivity is the harmonic mean, 1.6. The off-diagonal entries vanish in these aligned coordinates. This example checks both the directional interpretation and interface treatment, while a uniform conductivity-three cell should return three times the identity.
Tensor checks and the static cell figure
A useful static figure shows the cell pattern and arrows for averaged flux under each imposed gradient. The tensor eigenvectors and eigenvalues summarize principal directions, but they should not replace the actual input axes in the result table.
For positive scalar conductivity the effective tensor is symmetric positive definite under the stated model. Arithmetic and harmonic mean values are returned as independent reference bounds; the engine does not return a separate tensor eigensystem or energy-form comparison. A significant symmetry defect can reveal a discretization or incomplete-solve error. The two corrector fields correspond to imposed unit gradients in the coordinate directions. Each corrector is fixed to zero mean because adding a constant would not change its physical flux. The resulting effective tensor can differ strongly by direction even though the local conductivity is scalar. Layered media give a useful independent check: parallel and perpendicular transport follow arithmetic and harmonic averaging in the aligned continuum limit.
Resolution and scale assumptions
Refine the cell grid to assess representation of small inclusions and interfaces. A converged linear solve on a coarse grid does not prove that the geometry is resolved. Interface alignment can make a layered benchmark unusually easy compared with curved inclusions.
The model excludes contact resistance, nonlinear conductivity and time-dependent storage. Its tensor is an effective periodic estimate, not a measured material certificate. The page should retain residuals, bounds and discretization details so users can judge that estimate. Periodic square finite-volume cell problems with harmonic edge conductivities;columns are imposed x/y gradients. Finite-grid homogenized tensor approximation,not automatic continuum/error certification.
A few questions, answered
Why is the answer a tensor when each input is scalar?
The cell geometry can make the effective response depend on direction.
Can I just average all conductivity values?
Only in special cases; the corrector solves account for microscopic redistribution of the field.
Why use a zero-mean corrector?
The cell equation determines its gradient but leaves an arbitrary additive constant.
What are the equal-layer values for conductivities one and four?
Along the layers the value is2.5; across them it is1.6, with zero cross terms in aligned axes.