39 const std::vector<ElectrodeBC>& bcs,
static num::SolverResult solve_potential(ScalarField3D &phi, const ScalarField3D &sigma, const std::vector< ElectrodeBC > &bcs, double tol=1e-6, int max_iter=500)
static ScalarField3D joule_heating(const ScalarField3D &sigma, const ScalarField3D &phi)
Compute Joule heating power density Q = σ|∇φ|² [W/m³].
Umbrella include for all linear solvers.
Forwarding shim — field types have moved to pde/fields.hpp.
A grid node with a fixed voltage (Dirichlet BC for current flow).
float voltage
Applied voltage [V].
int flat_idx
Flat grid index: k*ny*nx + j*nx + i.