From 3ad8456ec70886669ff8ce41c893e2b089459b3c Mon Sep 17 00:00:00 2001 From: sergio Date: Mon, 21 Jan 2013 17:10:51 +0000 Subject: [PATCH 1/3] Fixing return types in localAxesRotation.C --- .../coordinateRotation/localAxesRotation.C | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/meshTools/coordinateSystems/coordinateRotation/localAxesRotation.C b/src/meshTools/coordinateSystems/coordinateRotation/localAxesRotation.C index 0c78cc9043..181a471091 100644 --- a/src/meshTools/coordinateSystems/coordinateRotation/localAxesRotation.C +++ b/src/meshTools/coordinateSystems/coordinateRotation/localAxesRotation.C @@ -117,7 +117,7 @@ Foam::vector Foam::localAxesRotation::transform(const vector& st) const "vector Foam::localAxesRotation:: " "transform(const vector& st) const" ); - return vector(vector::zero); + return vector::zero; } @@ -128,7 +128,7 @@ Foam::vector Foam::localAxesRotation::invTransform(const vector& st) const "vector Foam::localAxesRotation:: " "transform(const vector& st) const" ); - return vector(vector::zero); + return vector::zero; } @@ -185,7 +185,7 @@ Foam::tensor Foam::localAxesRotation::transformTensor ( "tensor localAxesRotation::transformTensor() const" ); - return tensor(tensor::zero); + return tensor::zero; } @@ -250,7 +250,7 @@ Foam::symmTensor Foam::localAxesRotation::transformVector ( "tensor localAxesRotation::transformVector(const vector&) const" ); - return symmTensor(symmTensor::zero); + return symmTensor::zero; } @@ -266,7 +266,7 @@ void Foam::localAxesRotation::init forAll(mesh.cellCentres(), cellI) { vector dir = mesh.cellCentres()[cellI] - origin_; - dir /= mag(dir); + dir /= mag(dir) + VSMALL; Rptr_()[cellI] = axesRotation(e3_, dir).R(); } From 398d7e76d851cc55c7a2f1b8ffcbc7d74d1d3abc Mon Sep 17 00:00:00 2001 From: sergio Date: Mon, 21 Jan 2013 17:13:59 +0000 Subject: [PATCH 2/3] BUG: Correcting reateBafflesDict in multiphase/interFoam/ras/damBreakPorousBaffle --- .../ras/damBreakPorousBaffle/system/createBafflesDict | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/system/createBafflesDict b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/system/createBafflesDict index c127ff67d2..46e0c66bf8 100644 --- a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/system/createBafflesDict +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/system/createBafflesDict @@ -65,7 +65,10 @@ baffles type cyclic; neighbourPatch porous_half0; - ${..master.patchFields} + patchFields + { + ${...master.patchFields} + } } } } From 6d4426b2e96f0b6634bbce951c197f6990be011b Mon Sep 17 00:00:00 2001 From: sergio Date: Mon, 21 Jan 2013 17:15:53 +0000 Subject: [PATCH 3/3] ENH: Adding fields into git repository --- .../interFoam/ras/damBreakPorousBaffle/0/U | 8 +- .../ras/damBreakPorousBaffle/0/alpha1 | 2284 ++++++++++++++++- .../ras/damBreakPorousBaffle/0/alpha1.org | 8 +- .../ras/damBreakPorousBaffle/0/epsilon | 17 +- .../interFoam/ras/damBreakPorousBaffle/0/k | 8 +- .../ras/damBreakPorousBaffle/0/nuTilda | 8 +- .../interFoam/ras/damBreakPorousBaffle/0/nut | 17 +- .../ras/damBreakPorousBaffle/0/p_rgh | 16 +- .../constant/polyMesh/boundary | 73 + 9 files changed, 2399 insertions(+), 40 deletions(-) create mode 100644 tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/constant/polyMesh/boundary diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/U b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/U index 668d7aba83..a9f5e35e96 100644 --- a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/U +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/U @@ -41,6 +41,10 @@ boundaryField type pressureInletOutletVelocity; value uniform (0 0 0); } + defaultFaces + { + type empty; + } porous_half0 { type cyclic; @@ -49,10 +53,6 @@ boundaryField { type cyclic; } - defaultFaces - { - type empty; - } } diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha1 b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha1 index 6e0ae20fd8..67fe78ad74 100644 --- a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha1 +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha1 @@ -11,13 +11,2285 @@ FoamFile format ascii; class volScalarField; location "0"; - object alpha1.org; + object alpha1; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 0 0 0 0]; -internalField uniform 0; +internalField nonuniform List +2268 +( +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 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uniform 0; value uniform 0; } + defaultFaces + { + type empty; + } porous_half0 { type cyclic; @@ -47,10 +2323,6 @@ boundaryField { type cyclic; } - defaultFaces - { - type empty; - } } diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha1.org b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha1.org index 6e0ae20fd8..bf6106677f 100644 --- a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha1.org +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha1.org @@ -39,6 +39,10 @@ boundaryField inletValue uniform 0; value uniform 0; } + defaultFaces + { + type empty; + } porous_half0 { type cyclic; @@ -47,10 +51,6 @@ boundaryField { type cyclic; } - defaultFaces - { - type empty; - } } diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/epsilon b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/epsilon index 6a39556a33..e8f209f7c1 100644 --- a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/epsilon +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/epsilon @@ -24,16 +24,25 @@ boundaryField leftWall { type epsilonWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; value uniform 0.1; } rightWall { type epsilonWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; value uniform 0.1; } lowerWall { type epsilonWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; value uniform 0.1; } atmosphere @@ -42,6 +51,10 @@ boundaryField inletValue uniform 0.1; value uniform 0.1; } + defaultFaces + { + type empty; + } porous_half0 { type cyclic; @@ -50,10 +63,6 @@ boundaryField { type cyclic; } - defaultFaces - { - type empty; - } } diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/k b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/k index b41cfbed79..dc8fe2b2d0 100644 --- a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/k +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/k @@ -42,6 +42,10 @@ boundaryField inletValue uniform 0.1; value uniform 0.1; } + defaultFaces + { + type empty; + } porous_half0 { type cyclic; @@ -50,10 +54,6 @@ boundaryField { type cyclic; } - defaultFaces - { - type empty; - } } diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/nuTilda b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/nuTilda index f5c21a8e5a..ad8366577c 100644 --- a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/nuTilda +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/nuTilda @@ -39,6 +39,10 @@ boundaryField inletValue uniform 0; value uniform 0; } + defaultFaces + { + type empty; + } porous_half0 { type cyclic; @@ -47,10 +51,6 @@ boundaryField { type cyclic; } - defaultFaces - { - type empty; - } } diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/nut b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/nut index bc57ae2a97..53aeee97bf 100644 --- a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/nut +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/nut @@ -24,16 +24,25 @@ boundaryField leftWall { type nutkWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; value uniform 0; } rightWall { type nutkWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; value uniform 0; } lowerWall { type nutkWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; value uniform 0; } atmosphere @@ -41,6 +50,10 @@ boundaryField type calculated; value uniform 0; } + defaultFaces + { + type empty; + } porous_half0 { type cyclic; @@ -49,10 +62,6 @@ boundaryField { type cyclic; } - defaultFaces - { - type empty; - } } diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/p_rgh b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/p_rgh index c085da2cb6..cb36fb3b7d 100644 --- a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/p_rgh +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/p_rgh @@ -25,19 +25,16 @@ boundaryField { type fixedFluxPressure; gradient uniform 0; - value uniform 0; } rightWall { type fixedFluxPressure; gradient uniform 0; - value uniform 0; } lowerWall { type fixedFluxPressure; gradient uniform 0; - value uniform 0; } atmosphere { @@ -48,29 +45,28 @@ boundaryField p0 uniform 0; value uniform 0; } + defaultFaces + { + type empty; + } porous_half0 { type porousBafflePressure; patchType cyclic; jump uniform 0; + value uniform 0; D 700; I 500; length 1.05; - value uniform 0; } porous_half1 { type porousBafflePressure; patchType cyclic; - jump uniform 0; + value uniform 0; D 700; I 500; length 1.05; - value uniform 0; - } - defaultFaces - { - type empty; } } diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/constant/polyMesh/boundary b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/constant/polyMesh/boundary new file mode 100644 index 0000000000..49282f81f0 --- /dev/null +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/constant/polyMesh/boundary @@ -0,0 +1,73 @@ +/*--------------------------------*- 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 polyBoundaryMesh; + location "constant/polyMesh"; + object boundary; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +7 +( + leftWall + { + type wall; + nFaces 50; + startFace 4419; + } + rightWall + { + type wall; + nFaces 50; + startFace 4469; + } + lowerWall + { + type wall; + nFaces 62; + startFace 4519; + } + atmosphere + { + type patch; + nFaces 46; + startFace 4581; + } + defaultFaces + { + type empty; + inGroups 1(empty); + nFaces 4536; + startFace 4627; + } + porous_half0 + { + type cyclic; + inGroups 1(cyclic); + nFaces 13; + startFace 9163; + matchTolerance 0.0001; + transform unknown; + neighbourPatch porous_half1; + } + porous_half1 + { + type cyclic; + inGroups 1(cyclic); + nFaces 13; + startFace 9176; + matchTolerance 0.0001; + transform unknown; + neighbourPatch porous_half0; + } +) + +// ************************************************************************* //