Variational fluid theory with inverse 12th power reference potential