A physics-inspired neural network to solve partial differential equations - application in diffusion-induced stress.