Partial Differential Equation Modeling with FEniCS and Potential