high speed flow in pipe
Hi, i want to solve fluid flow in pipe with mach ~0.6.
i used density-based, ideal gas with sutherland law. pressure inlet and pressure outlet on fluent. Result seem good. But when im try to use openFoam using rhoSimpleFoam, i get errors at first timestep. here is my boundary conditions. Can u help me whats wrong with this? Quote:
Quote:
|
Hey Hiep,
can you post your message error, please? The BC seems to be not correct. Are you sure that the pressure in the outlet would be 0?. Furthrmore, I would prefer InletOutlet for the Outlet U. The InletOutlet doesn't allow the flow to come inside and is a more robust. Another suggestion. Try to use a very small value of the relaxation factor of rho. Do you know that for rhoSimpleFoam you need to have also rho and alpha_T as BC? |
Quote:
thanks for reply, here is my problem after 2 iterations https://upanh.pro/image/HjKKpS im wrong with pressure outlet, in my case, i set it to 101325 when i set U file like this Code:
outlet here is my rho file Code:
".*" Code:
walls |
the rho file is wrong.
You have to put the value at outlet and in inlet zerogradient. It is not physical that the pressure change and not the rho. |
Quote:
|
In u, you specify a velocity of 200 m/s
But in p you specify a pressure-RAISE from 60000 in the inlet to 101325 in the outlet. Your pressure B/C should develop a sucking towards the inlet, which is inconsistent with your u. Are you sure, you didn't mix up something in the B/Cs? As far as I know, you can not specify the pressure drop and velocity B/C, because you velocity results from the pressure drop or the other way round. I would do it like this u inlet { type fixedValue; value uniform (200 0 0); } outlet { type inletOutlet; inletValue uniform (0 0 0); value uniform (0 0 0); } p inlet { type zeroGradient; } outlet { type fixeValue; value uniform 101325; } |
Quote:
i want to put total pressure to inlet, i dont know the p0 is abs pressure or gauge press but when im try both, again, this error still come to me:confused: |
If you want to specify pressure AND velocity in your inlet you should put your outlet pressure to zeroGradient.
|
It is better to start with a simpler case, i.e. use a speed as 2 m/s.
If this doesn't run, you are sure that you have a problem somewhere. P is the static pressure. If you want the totalpressure, you have to use totalPressure. (check the correct sintax) Bit it is not so robust to put velocity and totalpressure in inlet. Try to reach a result with velocity in inlet and totalpressure in outlet. You can change later, if you need. Futhermore, run it with simpleFoam. You have to change tje p file. It must run. It is not a correct result, but you have to reach it. It would be possible also to switj later from simpleFoam to rhoSimpleFoam. |
Quote:
but the dimensional of pressure in simpleFoam and rhoSimpleFoam is diffirence. is any way to change between 2 cases? i dont know what exactly this totalpressure in rhoSimpleFoam work. The pressureControl report: p max 8e8 and p min is -1.7e7 :( |
All times are GMT -4. The time now is 20:10. |