A precipitation boundary condition for finite element analysis