Numerical study of solitary waves and reversible shock structures in tubes with controlled pressure