FEMSimulation.get_domain_potential FEMSimulation.get_domain_potential(dom_id, dim=2, space=0, surf=None)[source] Compute the average potential over a boundary or volume domain. Parameters: dom_id (int) – Domain identifier. dim (int, optional) – Integration dimension: 2 for surfaces, 3 for volumes. space (int, optional) – Mixed-space index used when results are not merged. surf (float | None, optional) – Precomputed domain measure. If omitted, it is evaluated internally. Returns: Average potential over the selected domain. Return type: float