Lie-group method for unsteady flows in a semi-infinite expanding or contracting pipe with injection or suction through a porous wall