ENH: Updated total pressure BC for TJunction tutorials

This commit is contained in:
andy
2011-11-28 09:54:45 +00:00
parent c5c5e0b3eb
commit d01a8bc9df
4 changed files with 20 additions and 43 deletions

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev | | \\ / O peration | Version: 2.1.0 |
| \\ / A nd | Web: www.OpenFOAM.org | | \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -22,14 +22,13 @@ boundaryField
{ {
inlet inlet
{ {
//type totalPressure; type uniformTotalPressure;
//p0 uniform 40; pressure table
(
type timeVaryingTotalPressure; (0 10)
(1 40)
);
p0 40; // only used for restarts p0 40; // only used for restarts
outOfBounds clamp;
fileName "$FOAM_CASE/constant/p0vsTime";
U U; U U;
phi phi; phi phi;
rho none; rho none;

View File

@ -1,4 +0,0 @@
(
(0 10)
(1 40)
)

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev | | \\ / O peration | Version: 2.1.0 |
| \\ / A nd | Web: www.OpenFOAM.org | | \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object p; object p;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -23,50 +22,37 @@ boundaryField
{ {
inlet inlet
{ {
type timeVaryingTotalPressure; type uniformTotalPressure;
pressure table
(
(0 10)
(1 40)
);
p0 40; // only used for restarts
U U;
phi phi;
rho none; rho none;
psi none; psi none;
gamma 1; gamma 1;
p0 40;
fileName "$FOAM_CASE/constant/p0vsTime";
outOfBounds clamp;
value uniform 40; value uniform 40;
} }
outlet1 outlet1
{ {
type fixedValue; type fixedValue;
value uniform 10; value uniform 10;
} }
outlet2 outlet2
{ {
type fixedValue; type fixedValue;
value uniform 0; value uniform 0;
} }
baffles
{
type zeroGradient;
}
fan_half0
{
type fan;
patchType cyclic;
jump uniform 0;
f 2(100 -0.1);
value uniform 0;
}
fan_half1
{
type fan;
patchType cyclic;
jump uniform 0;
f 2(100 -0.1);
value uniform 0;
}
defaultFaces defaultFaces
{ {
type zeroGradient; type zeroGradient;
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,4 +0,0 @@
(
(0 10)
(1 40)
)