Abstract
This study evaluates the effectiveness of physics-informed neural networks (PINNs) for solving both stationary and non-stationary partial differential equations (PDEs), including those with Robin boundary conditions, in rectangular and non-rectangular domains. Although only a small subset of the PINN literature examines mixed boundaries or tackles non-rectangular geometries, and even fewer studies benchmark accuracy against the finite-element method (FEM), the present work provides precisely that comparison. We test feedforward PINNs with tanh activation, whose depth and width were empirically selected for each benchmark to balance accuracy and training cost; training uses Adam optimization with Glorot initialization. These networks are evaluated on three problems: a 2-D Laplace equation on a square (Dirichlet–Neumann– Robin), the same equation on a doubly connected domain with Dirichlet boundary conditions, and a 1-D non- stationary heat equation with Robin boundaries. A weighted mean-squared residual, evaluated via automatic differentiation in TensorFlow, balances equation, boundary, and initial-time terms, thereby handling non- stationary problems without a separate time-stepping scheme. Within the tested class, linear, second-order parabolic and elliptic PDEs in 1-D and 2-D, the network attains ≤ 3 % l ∞ error relative to analytical or FEM solutions after 4–6 min of training on an RTX 3080 Ti Laptop GPU, matching FEM accuracy while eliminating meshing and easing equation and boundary changes. The time to compute a standard PINN solution is longer than for a FEM solution for problems considered in the research, and a broad literature review reveals theoretical convergence limits that constrain standard PINNs to modest-scale, well-conditioned diffusion problems.

This publication has 23 references indexed in Scilit: