Deformed foam structure and transitions in a tube