CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Negative flow inlet

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Bloerb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2022, 11:40
Default Negative flow inlet
  #1
New Member
 
Kristian
Join Date: Jan 2022
Posts: 6
Rep Power: 4
hansenka is on a distinguished road
There are several posts about natural convection in this forum, but none of those solves my problem.


I have created a 2D 0.5m high small "scale" and model for a case, with partly heated wall. There is one inlet and outlet.
This is a k-epsilon model using perfectGas and buoyantSimpleFoam as solver, for air.

Boundary conditions, system folder and velocity profiles are attached in this post. if you want to run the case, I have to create a blockMesh, My mesh exeeds the storage limit.



The problem I am struggling with is negative flow at inlet (left picture). The U_magnitude is positive, but both U_X and U_Y are negative and U_Z is zero. The outlet flow (right picture) is positive, resulting in a constant loop of the model and after 100k+ iterations, the model crashes.

How do i manage to add a positive inlet flow to the model? I have tried different approaches with outletInlet for U, p_rgh and T + many other approaches, without any success . What fixed mye positive outlet flow was setting T_outlet to inletOutlet.

pressure is calculated using: p = p_rgh + rho*gh + pRef. p_rgh is pressure without hydrostatic pressure.

p_rgh diverges, which is a common problem in this forum.

QUICK scheme have been used to discretize the momentum and energy equations, without luck. (Litterature study suggest using QUICK scheme for the mentioned eq's)


Any help solving this back flow problem?
Attached Images
File Type: png U_in.PNG (42.2 KB, 23 views)
File Type: png U_out.PNG (77.0 KB, 32 views)
File Type: png Temp.PNG (18.8 KB, 25 views)
Attached Files
File Type: zip 0.zip (6.0 KB, 3 views)
File Type: zip system.zip (3.6 KB, 2 views)
hansenka is offline   Reply With Quote

Old   March 9, 2022, 16:26
Default
  #2
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 21
Bloerb will become famous soon enough
your p_rgh boundary

Code:
     inlet
    {
    type         fixedValue;
    value         uniform 0;
    }
    outlet
    {
        type         zeroGradient;
    }
your U boundary

Code:
    inlet
    {

        type            zeroGradient;     
    }
    
    outlet
    {
        type            pressureInletOutletVelocity;
        inletValue      uniform (0 0 0);
        value           uniform (0 0 0);
    }
Now what does that mean. You are fixing the pressure at the inlet to zero with a zeroGradient velocity. Which means your "inlet" isn't an inlet but a pressure of 0. Which is THE typical outlet condition for fixed velocity inlets. Unless the pressure inside your domain is lower nothing will flow into the domain from this inlet. Now the definition of pressureInletOutletVelocity:
Quote:
This velocity inlet/outlet boundary condition is applied to pressure
boundaries where the pressure is specified. A zero-gradient condition is
applied for outflow (as defined by the flux); for inflow, the velocity is
obtained from the patch-face normal component of the internal-cell value.
Hence you are using pressureInletOutletVelocity on a patch without a specified pressure.

The problem with natural convection is that your flow does not result from a boundary condition, but is generated inside the domain. The problem with that is, that your boundaries are essentially inlet or outlet and you need conditions which can switch based on what is present. For example totalPressure/prghTotalPressure and pressureInletOutletVelocity. This might however not be all that stable especially with high order schemes like quick. The best thing one can do is move the atmosphere far away from the problem and use stable but not all that realistic boundary conditions. For your geometry however this should be solvable.


Also are you sure you want to calculate natural convection with steadyState conditions? natural convection is a pretty transient phenomenon.
agustinvo likes this.
Bloerb is offline   Reply With Quote

Old   March 10, 2022, 15:03
Default
  #3
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15
agustinvo is on a distinguished road
Quote:
Originally Posted by Bloerb View Post
your p_rgh boundary

Code:
     inlet
    {
    type         fixedValue;
    value         uniform 0;
    }
    outlet
    {
        type         zeroGradient;
    }
your U boundary

Code:
    inlet
    {

        type            zeroGradient;     
    }
    
    outlet
    {
        type            pressureInletOutletVelocity;
        inletValue      uniform (0 0 0);
        value           uniform (0 0 0);
    }
Now what does that mean. You are fixing the pressure at the inlet to zero with a zeroGradient velocity. Which means your "inlet" isn't an inlet but a pressure of 0. Which is THE typical outlet condition for fixed velocity inlets. Unless the pressure inside your domain is lower nothing will flow into the domain from this inlet. Now the definition of pressureInletOutletVelocity:
Hence you are using pressureInletOutletVelocity on a patch without a specified pressure.

The problem with natural convection is that your flow does not result from a boundary condition, but is generated inside the domain. The problem with that is, that your boundaries are essentially inlet or outlet and you need conditions which can switch based on what is present. For example totalPressure/prghTotalPressure and pressureInletOutletVelocity. This might however not be all that stable especially with high order schemes like quick. The best thing one can do is move the atmosphere far away from the problem and use stable but not all that realistic boundary conditions. For your geometry however this should be solvable.


Also are you sure you want to calculate natural convection with steadyState conditions? natural convection is a pretty transient phenomenon.



I am working as well in a natural convection flow, where 3 of 4 boundaries are open. I impose known values in one of these patches but there are still 2 "degress of freedom" and it is not so easy to find a well-posed BC in the available ones. If you know how the fluid should act close to the boundaries it could be possible to prepare a custom BC.
agustinvo is offline   Reply With Quote

Old   March 11, 2022, 14:31
Default
  #4
New Member
 
Kristian
Join Date: Jan 2022
Posts: 6
Rep Power: 4
hansenka is on a distinguished road
Thank you for the reply.
Okey, I will fix the inlets. Any suggestions to solve this inlet?
a baginner, and in the other tutorials uses fixed fluxpresssure with fix velocities. I want the solver to determine the inflow by it self. As you say, the model is determined with what is happening inside the domain, and setting fixed values may confuse the model?
When I am later validating the large scale model, measured valus will be used, and can be the reserve plan to set fixed inlet and outlet values.

I agree with the atmosphere, and it will be in my mind when I put the solver into the large scale/actual case.

Yeah, natural convection is transient, but at the moment my computer is not capable to solve PIMPLE case, too slow...
For large scale, I have access to a cluster, so pimple will not be a problem then
hansenka is offline   Reply With Quote

Old   March 11, 2022, 15:01
Default
  #5
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15
agustinvo is on a distinguished road
FixedFluxPressure acts as a zeroGradient BC, therefore any imposed value would be needed.



You could use a PIMPLE simulation (you could coarse the mesh) as a starting point for your steady simulations. If BCs are not posed properly the steady solvers stops and suggests you to use potentialFoam
agustinvo is offline   Reply With Quote

Old   March 12, 2022, 01:55
Default
  #6
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
You have too much degrees of freedom here.

I recommend using a closed volume with no inlet or outlet. Simply lengthen your wall at the top and the bottom. These added walls have a nonslip boundary, but no heating.

You get some kind of circular flow. But if your volume is large enough, the downward flow does not influence your heated side.

If you want to study the transient flow / beginning of rising that may be sufficient. If you want to study the stationary case you should add a cooling at the opposite side. So the fluid does not heat to infinity or to the wall temperature (dependung on your b.c.).

I think that is a far better model. I used a similar for my calculations of gravity driven convection / dissolving of a component at the boudary.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Reply

Tags
back flow, natural convection, p_rgh devergence


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
Issues on the simulation of high-speed compressible flow within turbomachinery dowlee OpenFOAM Running, Solving & CFD 11 August 6, 2021 07:40
Two Mass flow inlet bc convergence problem nabidinhomessi Main CFD Forum 5 December 14, 2015 08:11
Mass flow rate boundary condition with negative values ashtonJ CFX 3 November 26, 2014 06:21
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 06:42


All times are GMT -4. The time now is 18:16.