2 fixed inlet velocities lead to steady time step decrease in interFoam
1 Attachment(s)
Hello everyone,
I have a problem running my multi-phase model (water, air) with two inlets using two different fixed fluid-velocities (water) and the interFoam solver (and I'm relatively new to openFoam). The turbulence model used is RAS - kOmegaSST. I want to simulate a constant water flow through those two inlets until more or less steady state conditions are reached. This works quite well for 0.2 seconds of simulation time and then the time steps decrease constantly (stopped the simulation at deltaT = XXe-80). I tried a lot of things like increasing Courant numbers up to exorbitant high values, coarsening my mesh, or applying different initial water conditions through setFieldsDict. I also played around with different PIMPLE-values (nOuterCorrectors, nCorrectors, nNonOrthogonalCorrectors) but nothing helped. Since DeltaT = (deltaX/U)*C, I suspect that the inlet velocities seem to be too high (even though they are really low compared to the mesh size) until flow within the channel has been developed to a stable state. The velocity boundaries are: Code:
/*--------------------------------*- C++ -*----------------------------------*\ A file with the base geometry is attached. My base model consists of two inlets (red, black), atmospheric top (yellow), one outlet (green) and a geometry which serves as a wall (blue). https://picload.org/image/riaddodw/geometry.png Another assumption is that this problem might be solvable with different solvers or schemes. I tried to improve both, fvSolution and fvSchemes without any success. I hope that someone using this forum might have suggestions on how to improve my model in order to fix this problem. Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ Robert |
UPDATE:
Added in fvSchemes: Code:
gradSchemes Code:
divSchemes I think that further improvement of the numerical schemes might eventually lead to a stable solution, any ideas? Thank you! Robert |
diverging problem solution
yours is a fairly simple problem. i have solved this problem successfully in vertical pipe flow with two inlets and single outlet without any divergence problem.
my advise is//; your error doesnt lie in fvschemes. no need tochange the fvschemes or system directory files your error its in your boundary conditions. just upload your bc files and i would be happy to help. |
Thanks
1 Attachment(s)
Hi Saddy!
Thanks for your reply. I attached my 0 folder in case you want to have a look at it. Robert |
problems in your bc
in my opinion, ur errors in bc conditions are as under
1, alpha.water.org inlet1 { type fixedValue; value uniform 1; } inlet2 { type fixedValue; value uniform 1; } how come both inlet are providing alpha.water as 1?? as far as i understand inlet 1 is for water inlet 2 is for air...right? so change "value uniform 0" for air inlet though atmosphere outlet can be treated as inletoutlet as u have given atmosphere { type inletOutlet; inletValue uniform 0; value uniform 0; } its better to just specify "outflow condition" using zerogradient 2. k file though you are correctly specifying most values correctly its better to write internal field as 3e-4 just like u hv written and give follwing syntax in below wall { type kqRWallFunction; value $internalField; } this adjusts changes itself as per internal field similarly in case of nut, omega replace '' value uniform 0;" by "value $internalField" 4.Pressure your pressure boundary conditions seem okay to me 5.U Try changing atmosphere conditions to zero gradent. in case your solution diverges again. about courant number exceeding 1, CFL no must not exceed 1, so take of following conditions 1. make a good quality mesh...its utmost important 2. calculate smallest cell division and calculate courant no equal to 1. take a time step size smaller than your smallest cell size..rule of thumb hopefully it will help |
Thanks Saddy,
I'll try it the next days and let you know if it was successful. Robert Sent from my SM-G920F using CFD Online Forum mobile app |
Hello Saddy,
I have a similar problem with my boundarie conditions as the discussed problem. I was trying your suggestions and it is working pretty good but i have a question about the velocity BC. you said u would apply a "pressureInletOutletVelocity" BC for the outlet velocity but u dont specify the pressure at the outlet. Isnt that mandatory to aplpy that velocity BC?? Kind Regarts |
hello Alex
thanks for reply. actually there is a syntax specified for all boundary conditions that are specified in openfoam. what u need to do is to take a look at the synatax of boundary conditions using this document im providing: http://www.nextfoam.co.kr/lib/downlo...idx=135033&sid... just download and read also u are asking whether we need to specify pressure at outlet or not?? right the answer is: since our flow is incompressible therefore openfoam will calculate pressure from inlet to outlet automatically. here only pressure drop is of our interest |
All times are GMT -4. The time now is 19:59. |