mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: updated channel395 tutorial
This commit is contained in:
3
TODO
3
TODO
@ -88,8 +88,9 @@ OK - grep for size()/2
|
||||
incompressible/simpleSRFFoam/mixer
|
||||
lagrangian/porousExplicitSourceReactingParcelFoam/filter
|
||||
lagrangian/reactingParcelFilmFoam/multipleBoxes
|
||||
|
||||
|
||||
|
||||
- have foamUpgradeCyclics split 'value' field
|
||||
- createBaffles
|
||||
- activeBaffleVelocity
|
||||
- kivaToFoam/readKivaGrid.H sorts cyclics (but in incorrect order?)
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.6 |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\ / O peration | Version: splitCyclic |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
@ -10,45 +10,58 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volTensorField;
|
||||
location "1";
|
||||
object B;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -2 0 0 0 0];
|
||||
dimensions [ 0 2 -2 0 0 0 0 ];
|
||||
|
||||
internalField uniform (0 0 0 0 0 0 0 0 0);
|
||||
internalField uniform ( 0 0 0 0 0 0 0 0 0 );
|
||||
|
||||
boundaryField
|
||||
{
|
||||
bottomWall
|
||||
bottomWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
topWall
|
||||
topWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
sides1
|
||||
sides1_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
|
||||
sides2
|
||||
sides2_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
|
||||
inout1
|
||||
inout1_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
|
||||
inout2
|
||||
inout2_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
sides2_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
sides1_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
inout1_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
inout2_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.6 |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\ / O peration | Version: splitCyclic |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
@ -10,47 +10,60 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volVectorField;
|
||||
location "1";
|
||||
object U;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 1 -1 0 0 0 0];
|
||||
dimensions [ 0 1 -1 0 0 0 0 ];
|
||||
|
||||
internalField uniform (0.1335 0 0);
|
||||
internalField uniform ( 0.1335 0 0 );
|
||||
|
||||
boundaryField
|
||||
{
|
||||
bottomWall
|
||||
bottomWall
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform (0 0 0);
|
||||
value uniform ( 0 0 0 );
|
||||
}
|
||||
|
||||
topWall
|
||||
topWall
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform (0 0 0);
|
||||
value uniform ( 0 0 0 );
|
||||
}
|
||||
|
||||
sides1
|
||||
sides1_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
|
||||
sides2
|
||||
sides2_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
|
||||
inout1
|
||||
inout1_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
|
||||
inout2
|
||||
inout2_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
sides2_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
sides1_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
inout1_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
inout2_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.6 |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\ / O peration | Version: splitCyclic |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
@ -10,47 +10,60 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "1";
|
||||
object k;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -2 0 0 0 0];
|
||||
dimensions [ 0 2 -2 0 0 0 0 ];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
bottomWall
|
||||
bottomWall
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
topWall
|
||||
topWall
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
sides1
|
||||
sides1_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
|
||||
sides2
|
||||
sides2_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
|
||||
inout1
|
||||
inout1_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
|
||||
inout2
|
||||
inout2_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
sides2_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
sides1_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
inout1_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
inout2_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.6 |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\ / O peration | Version: splitCyclic |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
@ -10,45 +10,58 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "1";
|
||||
object nuSgs;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -1 0 0 0 0];
|
||||
dimensions [ 0 2 -1 0 0 0 0 ];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
bottomWall
|
||||
bottomWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
topWall
|
||||
topWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
sides1
|
||||
sides1_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
|
||||
sides2
|
||||
sides2_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
|
||||
inout1
|
||||
inout1_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
|
||||
inout2
|
||||
inout2_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
sides2_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
sides1_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
inout1_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
inout2_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.6 |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\ / O peration | Version: splitCyclic |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
@ -10,47 +10,60 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "1";
|
||||
object nuTilda;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -1 0 0 0 0];
|
||||
dimensions [ 0 2 -1 0 0 0 0 ];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
bottomWall
|
||||
bottomWall
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
topWall
|
||||
topWall
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
sides1
|
||||
sides1_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
|
||||
sides2
|
||||
sides2_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
|
||||
inout1
|
||||
inout1_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
|
||||
inout2
|
||||
inout2_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
sides2_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
sides1_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
inout1_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
inout2_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.6 |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\ / O peration | Version: splitCyclic |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
@ -10,45 +10,58 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "1";
|
||||
object p;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -2 0 0 0 0];
|
||||
dimensions [ 0 2 -2 0 0 0 0 ];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
bottomWall
|
||||
bottomWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
topWall
|
||||
topWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
sides1
|
||||
sides1_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
|
||||
sides2
|
||||
sides2_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
|
||||
inout1
|
||||
inout1_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
|
||||
inout2
|
||||
inout2_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
sides2_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
sides1_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
inout1_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
inout2_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -42,36 +42,70 @@ edges
|
||||
(
|
||||
);
|
||||
|
||||
patches
|
||||
boundary
|
||||
(
|
||||
wall bottomWall
|
||||
(
|
||||
(0 1 7 6)
|
||||
)
|
||||
wall topWall
|
||||
(
|
||||
(4 10 11 5)
|
||||
)
|
||||
cyclic sides1
|
||||
(
|
||||
(0 2 3 1)
|
||||
(6 7 9 8)
|
||||
)
|
||||
cyclic sides2
|
||||
(
|
||||
(2 4 5 3)
|
||||
(8 9 11 10)
|
||||
)
|
||||
cyclic inout1
|
||||
(
|
||||
(1 3 9 7)
|
||||
(0 6 8 2)
|
||||
)
|
||||
cyclic inout2
|
||||
(
|
||||
(3 5 11 9)
|
||||
(2 8 10 4)
|
||||
)
|
||||
bottomWall
|
||||
{
|
||||
type wall;
|
||||
faces ((0 1 7 6));
|
||||
}
|
||||
topWall
|
||||
{
|
||||
type wall;
|
||||
faces ((4 10 11 5));
|
||||
}
|
||||
|
||||
sides1_half0
|
||||
{
|
||||
type cyclic;
|
||||
neighbourPatch sides1_half1;
|
||||
faces ((0 2 3 1));
|
||||
}
|
||||
sides1_half1
|
||||
{
|
||||
type cyclic;
|
||||
neighbourPatch sides1_half0;
|
||||
faces ((6 7 9 8));
|
||||
}
|
||||
|
||||
sides2_half0
|
||||
{
|
||||
type cyclic;
|
||||
neighbourPatch sides2_half1;
|
||||
faces ((2 4 5 3));
|
||||
}
|
||||
sides2_half1
|
||||
{
|
||||
type cyclic;
|
||||
neighbourPatch sides2_half0;
|
||||
faces ((8 9 11 10));
|
||||
}
|
||||
|
||||
inout1_half0
|
||||
{
|
||||
type cyclic;
|
||||
neighbourPatch inout1_half1;
|
||||
faces ((1 3 9 7));
|
||||
}
|
||||
inout1_half1
|
||||
{
|
||||
type cyclic;
|
||||
neighbourPatch inout1_half0;
|
||||
faces ((0 6 8 2));
|
||||
}
|
||||
|
||||
inout2_half0
|
||||
{
|
||||
type cyclic;
|
||||
neighbourPatch inout2_half1;
|
||||
faces ((3 5 11 9));
|
||||
}
|
||||
inout2_half1
|
||||
{
|
||||
type cyclic;
|
||||
neighbourPatch inout2_half0;
|
||||
faces ((2 8 10 4));
|
||||
}
|
||||
);
|
||||
|
||||
mergePatchPairs
|
||||
|
||||
@ -1,62 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.6 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class polyBoundaryMesh;
|
||||
location "constant/polyMesh";
|
||||
object boundary;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
6
|
||||
(
|
||||
bottomWall
|
||||
{
|
||||
type wall;
|
||||
nFaces 1200;
|
||||
startFace 175300;
|
||||
}
|
||||
topWall
|
||||
{
|
||||
type wall;
|
||||
nFaces 1200;
|
||||
startFace 176500;
|
||||
}
|
||||
sides1
|
||||
{
|
||||
type cyclic;
|
||||
nFaces 2000;
|
||||
startFace 177700;
|
||||
featureCos 0.9;
|
||||
}
|
||||
sides2
|
||||
{
|
||||
type cyclic;
|
||||
nFaces 2000;
|
||||
startFace 179700;
|
||||
featureCos 0.9;
|
||||
}
|
||||
inout1
|
||||
{
|
||||
type cyclic;
|
||||
nFaces 1500;
|
||||
startFace 181700;
|
||||
featureCos 0.9;
|
||||
}
|
||||
inout2
|
||||
{
|
||||
type cyclic;
|
||||
nFaces 1500;
|
||||
startFace 183200;
|
||||
featureCos 0.9;
|
||||
}
|
||||
)
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user