Hydrogen is an energy carrier which can be utilized in many sectors like stationary and transportation energy with nearly zero emission. Hydrogen energy is more efficient when compared to other energy sources. Hydrogen can be a replacement for fossil fuels in future as it emits only water when it is burned. In this work a mathematical model of transfer of hydrogen between two tanks has been developed using MATLAB simulink software version 21. Flow of hydrogen inside the pipe is controlled by orifice and diameter of this orifice and pipe diameter itself has some impact on outcome parameters such as inlet temperature of pipe, outlet temperature of pipe, heat transfer from one tank to other tank and hydrogen gas flow rate. The influence of orifice diameter as well as initial pressures on outcome parameters of hydrogen gas transfer model has analyzed in this work. From the simulation results it is inferred that when one initial pressure kept constant and other initial pressure keep on varying, no change in inlet temperature, decrease in outlet temperature, increase in heat transfer and increase in gas flow rate were observed when orifice diameter increase in size from 2 cm then 4 cm and then 6 cm. The research work has significant guidance for safety and efficient way of transporting hydrogen through pipeline from one tank to other tank.