Basically, inletOutlet is zero gradient unless the flow is inward in which case it is fixed value (inletValue). outletInlet is zero gradient if the flow is inward and fixed value (outletValue) if the flow is outward.

value needs scalar or vector, as you set in type inletOutlet BC, which is mainly Dirichlet BC, which wants number. the keyword zeroGradient is setting Neumann type BC with a specified flux =0.
change value to a vector like (0 0 0).

value needs scalar or vector, as you set in type inletOutlet BC, which is mainly Dirichlet BC, which wants number. the keyword zeroGradient is setting Neumann type BC with a specified flux =0.
change value to a vector like (0 0 0).

good luck
matej

Hi matej,

thx for your answer!
It does, in deed. And if you use it correctly the solver wont accept O-Gradient.
I forgot the ; after inletValue () ; , so he didi not complain about O-gradient.

I am trying to simulate a jetflame. Unfortunately I still have inflow in the area of the cowflow using inletOutlet for a cowflow velocity below 1.5 m/sec. Is this BC generally unstable for very low velocities ???

Basically, inletOutlet is zero gradient unless the flow is inward in which case it is fixed value (inletValue). outletInlet is zero gradient if the flow is inward and fixed value (outletValue) if the flow is outward.

Hi,

if I set up inletValue uniform (0 0 0), then I have no inlet flow couse the inlet flux is set to zero. Is that correct?

If there are faces with inlet flow and I set inletValue uniform (0 0 1), then I ll have an flow inside my domain with the velocity vector of (0 0 1).

Is that right ?

So in my case I have an vortex-breakdown after a diffuser. If I am using inletOutlet, then I get just a piece of outlet faces and the rest, where the flow should go back is fixed with (0 0 0).

Should I use "pressureInletOutletVelocity" for that case?
But I set fixed pressure at the outlet :/ ?

[THIS SHOULD BE ITS OWN THREAD; I HAD MULTIPLE WINDOWS OPEN AND MADE A MISTAKE. ADMINS, COULD YOU DELETE THIS POST?]

Hello everyone,

I'm looking about implementing a custom boundary condition that simulates a check valve, and I believe I can base it on mixedFvPatchField like the inletOutlet/outletInlet patch.

The user guide (http://www.openfoam.org/docs/user/boundaries.php) mentioned that inletOutlet switched U and p between zeroGradient and fixedValue depending on the direction of the flow, but I have been unable to find out how this is done. From reading the source, it seems that it only switches between zeroGradient and fixedValue depending on the flux. I'd like to know where the switch happens (it may be in mixedFvPatch field, but I can't find it).

I want to know in case I need to make changes there. Or is the the U/p switch a typo/deprecated feature that was never cleaned out of the manual.

Thanks!

Last edited by mturcios777; October 30, 2012 at 17:46.
Reason: Thread in wrong location

Basically, inletOutlet is zero gradient unless the flow is inward in which case it is fixed value (inletValue). outletInlet is zero gradient if the flow is inward and fixed value (outletValue) if the flow is outward.

Hello,

thank you for the explanation. However, I looked at the simpleFoam/Motorbike tutorial where they defined the inlet and outlet BCs for velocity as follows:

Hi everybody
Recently I have tried this boundary condition "inletOutlet" at the outlet patch of my case to prevent back flow but it didn't work and I had reverse flow at the outlet. I have no idea what is wrong?
Uutlet
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
The same was set for K,epsilon files too.
Any insight would be very much appreciated.
Thanks in advance