|
[Sponsors] |
October 20, 2015, 13:18 |
p_rgh B.C for compressibleInterFoam
|
#1 |
Member
Rohith
Join Date: Oct 2012
Location: Germany
Posts: 57
Rep Power: 14 |
Hi,
Can somebody clarify why should the p_rgh (Dynamic pressure) must be set to 1e5. I am trying to simulate a wetting process using compressibleInterFoam. The simulation is very unstable when the following B.C. have been used Code:
dimensions [1 -1 -2 0 0 0 0]; internalField uniform 1e5; upperWall { type fixedFluxPressure; value uniform 1e5; } leftWall { type fixedFluxPressure; value uniform 1e5; } rightWall { type fixedFluxPressure; value uniform 1e5; } lowerWall { type fixedFluxPressure; value uniform 1e5; } frontAndBack { type empty; } Thanks in Advance, Best Regards, Rohith |
|
October 26, 2015, 09:37 |
|
#2 |
Senior Member
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18 |
Hi Rohith
Hope you are fine. When changing the pressure boundary to 0 Pa with a minimum pressure of 1e5 Pa, the solver will correct the interior pressure to the allowed minimum of 1e5 Pa in every cell. Thus, all cells have a corrected pressure, not matching the real conditions in the domain. Your results are wrong. Actually I am surprised, that the solver gives you values at all. With a 0 Pa absolute pressure, the ideal gas law should give you a division by zero. Cheers Fabian |
|
October 26, 2015, 09:40 |
|
#3 |
Member
Rohith
Join Date: Oct 2012
Location: Germany
Posts: 57
Rep Power: 14 |
Hi Fabian,
I am doing fine. Thank you for the reply. But my question was on p_rgh instead of p. I set p to 1e5 but p_rgh to 0 in some cases. Does it make some sense? was my question. VG, Rohith |
|
October 26, 2015, 09:49 |
|
#4 |
Senior Member
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18 |
To clarify a little bit more: You're using a pressure of 1e5 Pa in every cell to calculate your thermophysical properties with. That's the reason why your properties are constant and the solver is more stable.
When choosing values for pMin/pMax, you have to decide where you want to bound your thermophysical properties. For example chose 1e4 Pa and 2e5 Pa for a simulation running at standard pressure 1e5 Pa with only slight pressure changes. Cheers Fabian |
|
October 26, 2015, 09:50 |
|
#5 |
Senior Member
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18 |
You define p_rgh and p is type calulated.
p_rgh 0 should not work. However, sometimes p_rgh field is calculated in the first time step from the p field. |
|
October 26, 2015, 09:55 |
|
#6 |
Member
Rohith
Join Date: Oct 2012
Location: Germany
Posts: 57
Rep Power: 14 |
For a detailled Explaination let me show what i have as
Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0 0 0]; internalField uniform 1e5; boundaryField { upperWall { type calculated; value $internalField; } leftWall { type calculated; value $internalField; } rightWall { type calculated; value $internalField; } lowerWall { type calculated; value $internalField; } frontAndBack { type empty; } } // ************************************************************************* // Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object p_rgh; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0 0 0]; internalField uniform 0; upperWall { type fixedFluxPressure; value uniform 0; } leftWall { type fixedFluxPressure; value uniform 0; } rightWall { type fixedFluxPressure; value uniform 0; } lowerWall { type fixedFluxPressure; value uniform 0; } frontAndBack { type empty; } |
|
October 26, 2015, 10:07 |
|
#7 |
Senior Member
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18 |
No, this is not possible, as your pMin will correct the field everywhere. Thus, your thermophysical properties are wrong.
|
|
October 26, 2015, 10:13 |
|
#8 |
Member
Rohith
Join Date: Oct 2012
Location: Germany
Posts: 57
Rep Power: 14 |
Thank you!! This is what was expected. Have a nice day
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Heat transfer over prediction in coupled b.c. | meriam_1260 | FLUENT | 0 | February 20, 2014 11:29 |
how to set such B.C. in Fluent? | Sherri | FLUENT | 1 | January 12, 2006 13:32 |
Urgent! Help on UDF to set B.C. of 3rd type | Ray Hong | FLUENT | 0 | December 28, 2005 20:35 |
How to set B.C. of the 2nd or 3rd type in UDS? | Ray Hong | FLUENT | 0 | December 28, 2005 07:03 |
Non-Reflecting B.C. in NSC2KE | Zou Chu | Main CFD Forum | 2 | May 27, 1999 22:26 |