Stream-Tube Method for Thermal Flows and Solid Mechanics