twoPhaseEulerFoam: transform to solve for p_rgh

to avoid excessive pressure/buoyancy balance errors on non-orthogonal meshes
Resolves bug-report http://openfoam.org/mantisbt/view.php?id=1379
This commit is contained in:
Henry
2015-03-17 22:40:09 +00:00
parent afcd290d75
commit 50b2edbedc
35 changed files with 485 additions and 116 deletions

View File

@ -22,17 +22,17 @@ boundaryField
{
inlet
{
type fixedFluxPressure;
type calculated;
value $internalField;
}
outlet
{
type fixedValue;
type calculated;
value $internalField;
}
walls
{
type fixedFluxPressure;
type calculated;
value $internalField;
}
}

View File

@ -0,0 +1,40 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / 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 1e5;
boundaryField
{
inlet
{
type fixedFluxPressure;
value $internalField;
}
outlet
{
type fixedValue;
value $internalField;
}
walls
{
type fixedFluxPressure;
value $internalField;
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -61,7 +61,7 @@ snGradSchemes
fluxRequired
{
default no;
p ;
p_rgh;
}

View File

@ -23,7 +23,7 @@ solvers
nAlphaSubCycles 2;
}
p
p_rgh
{
solver GAMG;
smoother DIC;
@ -38,9 +38,9 @@ solvers
relTol 0.01;
}
pFinal
p_rghFinal
{
$p;
$p_rgh;
relTol 0;
}

View File

@ -22,17 +22,17 @@ boundaryField
{
inlet
{
type fixedFluxPressure;
type calculated;
value $internalField;
}
outlet
{
type fixedValue;
type calculated;
value $internalField;
}
walls
{
type fixedFluxPressure;
type calculated;
value $internalField;
}
}

View File

@ -0,0 +1,40 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / 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 1e5;
boundaryField
{
inlet
{
type fixedFluxPressure;
value $internalField;
}
outlet
{
type fixedValue;
value $internalField;
}
walls
{
type fixedFluxPressure;
value $internalField;
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -63,7 +63,7 @@ snGradSchemes
fluxRequired
{
default no;
p ;
p_rgh;
}

View File

@ -23,7 +23,7 @@ solvers
nAlphaSubCycles 2;
}
p
p_rgh
{
solver GAMG;
smoother DIC;
@ -38,9 +38,9 @@ solvers
relTol 0.01;
}
pFinal
p_rghFinal
{
$p;
$p_rgh;
relTol 0;
}

View File

@ -14,7 +14,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 1 -1 -2 0 0 0 0 ];
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 1e5;
@ -22,19 +22,19 @@ boundaryField
{
inlet
{
type fixedFluxPressure;
type calculated;
value $internalField;
}
outlet
{
type fixedValue;
type calculated;
value $internalField;
}
walls
{
type fixedFluxPressure;
type calculated;
value $internalField;
}

View File

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / 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 1e5;
boundaryField
{
inlet
{
type fixedFluxPressure;
value $internalField;
}
outlet
{
type fixedValue;
value $internalField;
}
walls
{
type fixedFluxPressure;
value $internalField;
}
frontAndBackPlanes
{
type empty;
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -68,7 +68,7 @@ snGradSchemes
fluxRequired
{
default no;
p ;
p_rgh;
alpha.particles;
}

View File

@ -30,7 +30,7 @@ solvers
minIter 1;
}
p
p_rgh
{
solver GAMG;
smoother DIC;
@ -45,9 +45,9 @@ solvers
relTol 0.01;
}
pFinal
p_rghFinal
{
$p;
$p_rgh;
relTol 0;
}

View File

@ -22,17 +22,17 @@ boundaryField
{
inlet
{
type fixedFluxPressure;
type calculated;
value $internalField;
}
outlet
{
type fixedValue;
type calculated;
value $internalField;
}
walls
{
type fixedFluxPressure;
type calculated;
value $internalField;
}
}

View File

@ -0,0 +1,40 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / 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 1e5;
boundaryField
{
inlet
{
type fixedFluxPressure;
value $internalField;
}
outlet
{
type fixedValue;
value $internalField;
}
walls
{
type fixedFluxPressure;
value $internalField;
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -60,7 +60,7 @@ snGradSchemes
fluxRequired
{
default no;
p ;
p_rgh;
}

View File

@ -23,7 +23,7 @@ solvers
nAlphaSubCycles 2;
}
p
p_rgh
{
solver GAMG;
smoother DIC;
@ -38,9 +38,9 @@ solvers
relTol 0.01;
}
pFinal
p_rghFinal
{
$p;
$p_rgh;
relTol 0;
}

View File

@ -22,17 +22,17 @@ boundaryField
{
inlet
{
type fixedFluxPressure;
type calculated;
value $internalField;
}
outlet
{
type fixedValue;
type calculated;
value $internalField;
}
walls
{
type fixedFluxPressure;
type calculated;
value $internalField;
}
}

View File

@ -0,0 +1,40 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / 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 1e5;
boundaryField
{
inlet
{
type fixedFluxPressure;
value $internalField;
}
outlet
{
type fixedValue;
value $internalField;
}
walls
{
type fixedFluxPressure;
value $internalField;
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -62,7 +62,7 @@ snGradSchemes
fluxRequired
{
default no;
p ;
p_rgh;
}

View File

@ -23,7 +23,7 @@ solvers
nAlphaSubCycles 2;
}
p
p_rgh
{
solver GAMG;
smoother DIC;
@ -38,9 +38,9 @@ solvers
relTol 0.01;
}
pFinal
p_rghFinal
{
$p;
$p_rgh;
relTol 0;
}

View File

@ -14,7 +14,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 1 -1 -2 0 0 0 0 ];
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 1e5;
@ -22,19 +22,19 @@ boundaryField
{
inlet
{
type fixedFluxPressure;
type calculated;
value $internalField;
}
outlet
{
type fixedValue;
type calculated;
value $internalField;
}
walls
{
type fixedFluxPressure;
type calculated;
value $internalField;
}

View File

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / 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 1e5;
boundaryField
{
inlet
{
type fixedFluxPressure;
value $internalField;
}
outlet
{
type fixedValue;
value $internalField;
}
walls
{
type fixedFluxPressure;
value $internalField;
}
frontAndBackPlanes
{
type empty;
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -62,7 +62,7 @@ snGradSchemes
fluxRequired
{
default no;
p ;
p_rgh;
alpha.particles;
}

View File

@ -30,7 +30,7 @@ solvers
minIter 1;
}
p
p_rgh
{
solver GAMG;
smoother DIC;
@ -45,9 +45,9 @@ solvers
relTol 0.01;
}
pFinal
p_rghFinal
{
$p;
$p_rgh;
relTol 0;
}

View File

@ -22,20 +22,12 @@ boundaryField
{
outlet
{
//type fixedValue;
//value $internalField;
type totalPressure;
p0 $internalField;
U U.air;
phi phi.air;
rho thermo:rho.air;
psi none;
gamma 1;
value $internalField;
type calculated;
value $internalField;
}
walls
{
type fixedFluxPressure;
type calculated;
value $internalField;
}
}

View File

@ -0,0 +1,42 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / 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 1e5;
boundaryField
{
outlet
{
type totalPressure;
p0 $internalField;
U U.air;
phi phi.air;
rho thermo:rho.air;
psi none;
gamma 1;
value $internalField;
}
walls
{
type fixedFluxPressure;
value $internalField;
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -60,7 +60,7 @@ snGradSchemes
fluxRequired
{
default no;
p ;
p_rgh;
}

View File

@ -23,7 +23,7 @@ solvers
nAlphaSubCycles 2;
}
p
p_rgh
{
solver GAMG;
smoother DIC;
@ -38,9 +38,9 @@ solvers
relTol 0.01;
}
pFinal
p_rghFinal
{
$p;
$p_rgh;
relTol 0;
}

View File

@ -22,13 +22,13 @@ boundaryField
{
rotor
{
type fixedFluxPressure;
type calculated;
value $internalField;
}
stator
{
type fixedFluxPressure;
type calculated;
value $internalField;
}

View File

@ -0,0 +1,46 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / 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 1e5;
boundaryField
{
rotor
{
type fixedFluxPressure;
value $internalField;
}
stator
{
type fixedFluxPressure;
value $internalField;
}
front
{
type empty;
}
back
{
type empty;
}
}
// ************************************************************************* //

View File

@ -60,7 +60,7 @@ snGradSchemes
fluxRequired
{
default no;
p ;
p_rgh;
}

View File

@ -23,7 +23,7 @@ solvers
nAlphaSubCycles 2;
}
p
p_rgh
{
solver GAMG;
smoother DIC;
@ -38,9 +38,9 @@ solvers
relTol 0.01;
}
pFinal
p_rghFinal
{
$p;
$p_rgh;
relTol 0;
}