Extract function

Extract or replace parts of three-velocity