Boundary Condition for an Open Channel in InterFoam
Hi,
I'm trying to setup an open channel case in Interfoam but I found some problem with the boundary condition. I couldn't find a BC for the inlet that allows water and air to enter in the domain (with a defined free surface level) in a quantity that has to be calculated from the flow rate imposed at outlet. To make it more clear: Domain: you can imagine it as a sink Inlet: water and air with imposed free surface level (I prefer to don't split the boundary in water_Inlet an air_Inlet to make it easier to change the free surface level) Outlet: imposed massflowrate (mainly water with some air ingestion). I tried to setup the inlet as InletOutlet and outlet as a negative flowRateInletVelocity but I had serious problem with convergence. I'll really appreciate any advice. Probably the solution will be straight forward and I don't know it because I'm new to OF. Thank you in advance. |
Hi,
To fix water level at the inlet you can set calculated BC for alpha1 (so it will use values of alpha1 set initially with setFields), then you can set for example fixedValue (calculated from inflow rate) for velocity. For outlet you can try variableHeightFlowRate, which will calculate velocity from water level (using alpha1) and discharge rate. Though AFAIR I had problems with turbulence model equations divergence with this BC. |
Thank you for your reply.
I forgot to write it but I've already set the Inlet alpha1 as calculated. The problem is related to how to impose the flow rate for the air because it will depends on the system solution if there will be air ingestion or not. Another important think that i forgot to clarify is that the inlet has a x normal while the outlet has a z normal and is completely submerged. (as in a sink) |
don't you have any suggestion?
|
It's rather difficult to have suggestions without knowing the whole problem.
From what you've said I can guess that the inlet is something with two phases and you'd like to set the speed of these phases independently. I can not propose a way to do this without whether using two different patches with different BCs, or implementing your own BC, or using codedFixedValue. For the outlet I again can try to guess something though I can't yet imagine what's going on with outlet from your description. So, in short: no, I don't have any ;) |
Quote:
|
I start to think that it can be also a problem related to time step and fvschemes.
Because I have some problem of divergence and because the k start to be bounded since few iterations after the beginning. I'm using this setting for adjustable time step Code:
Code:
divSchemes |
All times are GMT -4. The time now is 18:16. |