Search for flow invariants in even and odd dimensions