Is this a plausible incompressible pressure driven flow case?
Is this a plausible case?
Say I have a pressure difference driven flow in a cylinder of 200kPa over a distance of 30mm (just simply from the top to the bottom of the cylinder) with a diameter of 2mm, can I use the incompressible solver SIMPLE or is this an compressible case? Because when I try running the case with simpleFoam i always get a floating point exception (and yes there's nothing set to zero) and the velocity is really high. If this is a compressible case what solver could I use and why please. 
anyone????

Hi Yeya,
Is your Mach number lesser than 0.3? What other information do you have on the case? Regards, Ezequiel 
Hi Yeya;
Compressiblity/ incompressibility depends on what you want to test. Based on the pressure gradient over such short distance will result in extremely high velocities for sure. Regarding the floating point, it means your code is dividing a variable by 0. Have you changed your code or are you using standard OpenFOAM code? Check the following thread to know what solver best suits your case study. http://www.cfdonline.com/Forums/ope...sicofoam.html Saideep 
Quote:
I am not totally sure what the Mach number would be but I am guessing it will be high than 0.3 somewhere in the domain due to the pressure difference over a small space but like I said Im not 100% sure about the physics. Other information about the case: I am using a very simple model, just a nozzle shaped as a cylinder where the gas is impinging onto a surface, so the geometry is basically a the mold of a hollow cylinder in a solid box, where the cylinder wall has some thickness. I have set the boundary conditions such that the velocity at the inlet and outlet is determined by the pressure, and the pressure is fixed. I am using the realizableKE turbulence model. do you need more info? 
Quote:
I just need to see the velocity over the whole domain, but as you said this would result in large velocity would you recommend a compressible solver? Quote:
Also, I didn't set anything to zero except 0 velocity at the walls and the placeholder values in the boundary conditions that I have assigned as calculated. 
Hi Yeya;
I never used Compressible flow cases but as you aren't sure about the result it would be better to go ahead with incompressible flow solver initially. (Just to make things simple and understand what is happening) Regarding high velocity: Probably you could relate your numerical solution with any sort of analytical solutions (if available). I deal with extremely low flow velocities and use Darcy, HagenPoisuielle relations to find velocity based on pressure gradient. However, these relations are valid for laminar flow cases. Hope this helps; Saideep 
Hey Saideep!
Quote:
Code:
Time = 49.5 Quote:

I just read the thread briefly...

Hi Tobias thanks for your reply,
Quote:
Pressure: Code:
dimensions [0 2 2 0 0 0 0]; U file: Code:
dimensions [0 1 1 0 0 0 0]; I've tried with total pressure at the outlet but the same error. something also to mention the boundig epsilon value and bounding k is getting really big on the order of 10^20 do you think that might be the problem? i have set a fixed value for the inlet on those and zeroGradient on the outlet and the wall function for the wall. Quote:
when viewing the timesteps it looks ok for a couple of timesteps but towards the end it doesn't look good the values increase which seems like to be at a unreasonable rate. 
Hi Yeya;
When things don't go as expected, decompose your problem into smaller steps. That is, use a smaller pressure gradient and see if the flow physics is comparable to HagenPoisuielle relations. Though it could be laminar flow, if you get the error even here, its easier to know where the problem comes from. I am not sure about the b.c your using for velocity but as Tobi told, could you switch to lower pressure gradient (maybe: 1Pa, ofcourse this ultimately depends on your domain size) and zeroGradient for velocity at inlet and outlet and also turn off gravity term. This exercise should give more information to know what is happening. Saideep 
You need total pressure at the inlet, otherwise Our dp will always be the same that will accelerate you fluid till you reach infty...

Quote:
thanks so much, having total pressure at the inlet worked i had to change the outlet velocity to inletOutlet! but the problem now is that when I try a compressible case with the same conditions it doesn't work and I get a floating point exception error again. any suggestions? Am I not suppose to fix any other field? 
Dear YeYa,
please investigate a bit more time into your questions and provide more information otherwise it is just guessing something. To your question, I am not so familiar with compressible flows but you need to change the total pressure BC. I do not know how you setup the BC but check out doxygen for the correct use (or go directly to the sourcecode). In addition as far as I can remember, the BC depend on the problem you are solving. Compressible means that the density is not anymore constant and it is important to specify the correct pressure. Incompressible > pressure value does not matter, Compressible > pressure value matters. 
Hey really sorry about that  I'll include more details from now, thanks for helping.
What I meant to say is I took your suggestion and put total pressure for the inlet but that didn't work so i changed the outlet BC for U to inletOutlet and it worked. (see below) U Code:
dimensions [0 1 1 0 0 0 0]; Code:
dimensions [0 2 2 0 0 0 0]; Since the speed was so high I am trying to do a compressible case, but I use the same boundary conditions as I did for the incompressible case but I get a floating point error again. In the compressible case we have to take into account more fields, so my question is, are we not suppose to fix any other BC in the other fields? For example, suppose I set the temperature boundary condition as fixedValue, would this not make sense? 
For compressible solvers we only need to solve one equation more (for the energy). This is normally done by using the temperature field and building the enthalpy. Then we solve for the enthalpy, and calculate the density based on the thermodynamic law. Anyway,... if you have a velocity about 700 m/s you should be somehow larger than Ma 1.5, arenīt you? If this is the case, the problem changes and you should not specify the outlet pressure anymore (as far as I can remember).
The totalPressure BC needs to be changed with phi, psi, gamma and rho. Good luck. 
http://www.cfdonline.com/Forums/<a ...psqwmmuqdr.png
Quote:
Because what if the outlet is exposed to the atmosphere but there is an inital pressure at the inlet. I have attached an image of how the mesh looks like if that helps, the inlet is shaded in orange, and the outlet are the plane faces parallell to the +/ZY and ZX plane. http://i1266.photobucket.com/albums/...psqwmmuqdr.png http://s1266.photobucket.com/user/ye...muqdr.png.html 
All times are GMT 4. The time now is 04:57. 