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

p_rgh causes problems

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Lorddrinkalot

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 28, 2024, 07:50
Default p_rgh causes problems
  #1
New Member
 
Christoph Trier
Join Date: Mar 2024
Posts: 12
Rep Power: 3
Lorddrinkalot is on a distinguished road
Hey guys,

I have a problem with my simulation, and I don't know any further.

At the moment, I'm just trying to simulate a normal flow through an L-shaped geometry (image attached). For now, it's isothermal and with a B field of 0.

The boundary condition for U

Code:
dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform (0.02 0 0);
    }
    outlet
    {
		type    zeroGradient;
        //type          pressureInletOutletVelocity;
		//value			uniform (0 0 0);
    }
    Wall_side
    {
        type            noSlip;
    }
    Wall_out
    {
        type            noSlip;
    }
    Wall_inside
    {
        type            noSlip;
    }

}
Conditions for the p_rgh


Code:
dimensions      [1 -1 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            fixedFluxPressure;
		value			uniform 0;
    }
    outlet
    {
	    type            fixedValue;
        value           uniform 0;
	    //type            fixedFluxPressure;
		//value			uniform 0;
        //type            inletOutlet;  //outletInlet
		//inletValue		uniform 0;
    }
    Wall_side
    {
        type            fixedFluxPressure;
		value			uniform 0;
    }
    Wall_out
    {
        type            fixedFluxPressure;
		value			uniform 0;
    }
    Wall_inside
    {
        type            fixedFluxPressure;
		value			uniform 0;
    }


}

I have tried several conditions with inlet/outlet, etc., but nothing helps.

For the first few time steps, everything seems good, but then after some time, the pressure flips or does something strange (see images). The inlet is at the bottom, and the outlet is on top of it. So, the flow comes in at the bottom half of the L and leaves at the top half.

I am new to OpenFOAM, and I can't figure out why this is happening.

I'm using the buoyantPimpleMhdFoam (MHD and heat transfer), but both are switched off for now to check and see if the case is running, which it is not.

Boundary condition: no heat transfer, so it's constant.
Code:
internalField   uniform 573;

boundaryField
{
    inlet
    {
        type            fixedValue;
		value			uniform 573;
    }
    outlet
    {
        type    zeroGradient;
    }
    Wall_side
    {
        type    zeroGradient;
    }
    Wall_out
    {
        type    zeroGradient;
    }
    Wall_inside
    {
        type    zeroGradient;
    }



}
The B field is set to 0 in the conditions (internalField uniform (0 0 0).

Please let me know if you need anything else.

Can someone help me with this kind of problem??


Thanks, Christoph
Attached Images
File Type: png Bild 1.PNG (48.6 KB, 23 views)
File Type: png Bild 2.PNG (30.5 KB, 22 views)
File Type: png Bild 3.PNG (27.9 KB, 23 views)

Last edited by Lorddrinkalot; April 30, 2024 at 17:44.
Lorddrinkalot is offline   Reply With Quote

Old   April 28, 2024, 10:57
Default Addition
  #2
New Member
 
Christoph Trier
Join Date: Mar 2024
Posts: 12
Rep Power: 3
Lorddrinkalot is on a distinguished road
Hey,

I added a GitHub repository for the case to see the different files.
https://github.com/Lorddrinkalot/OpenFoam_Case.git

I should mention that I am using the Boussinesq approximation.
I also tried it with icoPolynomial, and in that case, the solver is working. However, for my case, I need the Boussinesq equation of state, and in that case, some weird stuff is happening.
Lorddrinkalot is offline   Reply With Quote

Old   May 2, 2024, 04:57
Default
  #3
Member
 
Roman
Join Date: Sep 2013
Posts: 83
Rep Power: 13
Roman1 is on a distinguished road
With the other solvers (ex. fireFoam) p_rgh must be approximately the same as normal pressure, not zero. This is a common pressure corrected with the height.
Roman1 is offline   Reply With Quote

Old   May 2, 2024, 18:14
Default
  #4
Senior Member
 
Will Kernkamp
Join Date: Jun 2014
Posts: 383
Rep Power: 15
wkernkamp is on a distinguished road
Quote:
Originally Posted by Roman1 View Post
With the other solvers (ex. fireFoam) p_rgh must be approximately the same as normal pressure, not zero. This is a common pressure corrected with the height.

Yes, and isn't that a compressible solver (to model buoyancy).
wkernkamp is offline   Reply With Quote

Old   May 13, 2024, 14:06
Default
  #5
New Member
 
Christoph Trier
Join Date: Mar 2024
Posts: 12
Rep Power: 3
Lorddrinkalot is on a distinguished road
So, hey guys,

I fixed my problems, or rather, I let it run longer. My problem was that I didn't let the Simulation run long enough in the business approximation. After simulation for some hours, the Pressure P-rough looks rigth
Attached Images
File Type: png image (1).png (53.3 KB, 15 views)
wkernkamp likes this.
Lorddrinkalot is offline   Reply With Quote

Reply

Tags
p_rgh, p_rgh devergence

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 6 December 1, 2020 11:12
[mesh manipulation] Problems with rotational cyclic boundaries TReviol OpenFOAM Meshing & Mesh Conversion 8 July 11, 2014 03:45
[ICEM] Flow channel meshing problems StefanG ANSYS Meshing & Geometry 19 May 15, 2012 06:44
Two-phase air water flow problems by activating Wall Lubrication Force challenger85 CFX 5 November 5, 2009 05:44
Help required to solve Hydraulic related problems aero CFX 0 October 30, 2006 11:00


All times are GMT -4. The time now is 01:02.