Dear Friends,
I want to simulate a small powerplant which oparates with high pressure(say 130 atm). so i am using a compression loop. That means the fluid is sent in to the same compressor( compression ratio of ~1.8) multiple number of times until 130 atm is reached. So in the below figure an fluid is input at 1 atm pressure and 35oC (at material stream 1). now it is cooled in the gas chiller and sent to compressor. so at the outlet of the compressor (material stream 3)pressure of the fluid will be roughly 1.8 atm. But this pressure is not enough so i need to send it through the gas chiller and compressor again and this process repeats until my requirement of 130 atm(at material stream 3) is met. Once the pressure at the outlet of the compressor is greater than or eqal to 130 atm, it has to be sent to watlow heaters(material stream 4) to get heated. After heating the fluid in watlow heaters the gas should be expanded in a turbine to generate power and after the power is generated it should be sent again into the gaschiller and compressor. Now this cycle repeats.
So basically in the below figure what i want is a switch after the material stream 3 such that if pressure is greater than my specified value the fluid should go to material stream 4 else it should go to material stream 1 until my condition is met.
I dont know programming extensions for hysys neither do my friends or faculty. So please help me with this problem. I have been at this problem since 2 months with no progress. I hope someone will help me here.
Thanking You.
Trilok Chandu.