Let $U$ be an open and simply-connected subset of $ \mathbb{R}^3$. Then for every curl-free vector field $v \: \colon U \to \mathbb{R}^3$ there is a potential $\phi \in C^{\infty}(U; \mathbb{R})$ such that $v = \nabla \phi$ in $U$. This well-known result is a consequence of Poincare's lemma stating that $H_{\textrm{dR}}^1(U) = 0$. Here, $H_{\textrm{dR}}^1(U)$ denotes the first de Rham cohomology group of $U$.
Let us now consider the 3-torus $T^3$ and a smooth curl-free vector field $v \: \colon T^3 \to \mathbb{R}^3$. Now, $T^3$ is neither simply connected nor is its first de Rham cohomology group $H_{\textrm{dR}}^1(T^3)$ trivial. In fact, $H_{\textrm{dR}}^1(T^3) = \mathbb{R}^3$. As I am not a geometer by training, excuse my (probably simple) question:
Is it true that there exist a potential $\phi \in C^{\infty}(T^3, \mathbb{R})$ and curl-free functions $u_1, u_2, u_3\: \colon T^3 \to \mathbb{R^3}$ such that $v = \nabla \phi + u_1 + u_2 + u_3$?
Moreover, if we additionally require that $\int_{T^3} v = 0$ does this imply that $v = \nabla \phi$ for some suitable function $\phi$?