mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -114,7 +114,7 @@ Foam::vector Foam::localAxesRotation::transform(const vector& st) const
|
|||||||
(
|
(
|
||||||
"vector Foam::localAxesRotation::transform(const vector&) const"
|
"vector Foam::localAxesRotation::transform(const vector&) const"
|
||||||
);
|
);
|
||||||
return vector(vector::zero);
|
return vector::zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -124,7 +124,7 @@ Foam::vector Foam::localAxesRotation::invTransform(const vector& st) const
|
|||||||
(
|
(
|
||||||
"vector Foam::localAxesRotation::invTransform(const vector&) const"
|
"vector Foam::localAxesRotation::invTransform(const vector&) const"
|
||||||
);
|
);
|
||||||
return vector(vector::zero);
|
return vector::zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -174,7 +174,7 @@ Foam::tensor Foam::localAxesRotation::transformTensor
|
|||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
notImplemented("tensor localAxesRotation::transformTensor() const");
|
notImplemented("tensor localAxesRotation::transformTensor() const");
|
||||||
return tensor(tensor::zero);
|
return tensor::zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -235,7 +235,7 @@ Foam::symmTensor Foam::localAxesRotation::transformVector
|
|||||||
(
|
(
|
||||||
"tensor localAxesRotation::transformVector(const vector&) const"
|
"tensor localAxesRotation::transformVector(const vector&) const"
|
||||||
);
|
);
|
||||||
return symmTensor(symmTensor::zero);
|
return symmTensor::zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -251,7 +251,7 @@ void Foam::localAxesRotation::init
|
|||||||
forAll(mesh.cellCentres(), cellI)
|
forAll(mesh.cellCentres(), cellI)
|
||||||
{
|
{
|
||||||
vector dir = mesh.cellCentres()[cellI] - origin_;
|
vector dir = mesh.cellCentres()[cellI] - origin_;
|
||||||
dir /= mag(dir);
|
dir /= mag(dir) + VSMALL;
|
||||||
|
|
||||||
Rptr_()[cellI] = axesRotation(e3_, dir).R();
|
Rptr_()[cellI] = axesRotation(e3_, dir).R();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -41,6 +41,10 @@ boundaryField
|
|||||||
type pressureInletOutletVelocity;
|
type pressureInletOutletVelocity;
|
||||||
value uniform (0 0 0);
|
value uniform (0 0 0);
|
||||||
}
|
}
|
||||||
|
defaultFaces
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
porous_half0
|
porous_half0
|
||||||
{
|
{
|
||||||
type cyclic;
|
type cyclic;
|
||||||
@ -49,10 +53,6 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type cyclic;
|
type cyclic;
|
||||||
}
|
}
|
||||||
defaultFaces
|
|
||||||
{
|
|
||||||
type empty;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -39,6 +39,10 @@ boundaryField
|
|||||||
inletValue uniform 0;
|
inletValue uniform 0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
defaultFaces
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
porous_half0
|
porous_half0
|
||||||
{
|
{
|
||||||
type cyclic;
|
type cyclic;
|
||||||
@ -47,10 +51,6 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type cyclic;
|
type cyclic;
|
||||||
}
|
}
|
||||||
defaultFaces
|
|
||||||
{
|
|
||||||
type empty;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -24,16 +24,25 @@ boundaryField
|
|||||||
leftWall
|
leftWall
|
||||||
{
|
{
|
||||||
type epsilonWallFunction;
|
type epsilonWallFunction;
|
||||||
|
Cmu 0.09;
|
||||||
|
kappa 0.41;
|
||||||
|
E 9.8;
|
||||||
value uniform 0.1;
|
value uniform 0.1;
|
||||||
}
|
}
|
||||||
rightWall
|
rightWall
|
||||||
{
|
{
|
||||||
type epsilonWallFunction;
|
type epsilonWallFunction;
|
||||||
|
Cmu 0.09;
|
||||||
|
kappa 0.41;
|
||||||
|
E 9.8;
|
||||||
value uniform 0.1;
|
value uniform 0.1;
|
||||||
}
|
}
|
||||||
lowerWall
|
lowerWall
|
||||||
{
|
{
|
||||||
type epsilonWallFunction;
|
type epsilonWallFunction;
|
||||||
|
Cmu 0.09;
|
||||||
|
kappa 0.41;
|
||||||
|
E 9.8;
|
||||||
value uniform 0.1;
|
value uniform 0.1;
|
||||||
}
|
}
|
||||||
atmosphere
|
atmosphere
|
||||||
@ -42,6 +51,10 @@ boundaryField
|
|||||||
inletValue uniform 0.1;
|
inletValue uniform 0.1;
|
||||||
value uniform 0.1;
|
value uniform 0.1;
|
||||||
}
|
}
|
||||||
|
defaultFaces
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
porous_half0
|
porous_half0
|
||||||
{
|
{
|
||||||
type cyclic;
|
type cyclic;
|
||||||
@ -50,10 +63,6 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type cyclic;
|
type cyclic;
|
||||||
}
|
}
|
||||||
defaultFaces
|
|
||||||
{
|
|
||||||
type empty;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -42,6 +42,10 @@ boundaryField
|
|||||||
inletValue uniform 0.1;
|
inletValue uniform 0.1;
|
||||||
value uniform 0.1;
|
value uniform 0.1;
|
||||||
}
|
}
|
||||||
|
defaultFaces
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
porous_half0
|
porous_half0
|
||||||
{
|
{
|
||||||
type cyclic;
|
type cyclic;
|
||||||
@ -50,10 +54,6 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type cyclic;
|
type cyclic;
|
||||||
}
|
}
|
||||||
defaultFaces
|
|
||||||
{
|
|
||||||
type empty;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -39,6 +39,10 @@ boundaryField
|
|||||||
inletValue uniform 0;
|
inletValue uniform 0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
defaultFaces
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
porous_half0
|
porous_half0
|
||||||
{
|
{
|
||||||
type cyclic;
|
type cyclic;
|
||||||
@ -47,10 +51,6 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type cyclic;
|
type cyclic;
|
||||||
}
|
}
|
||||||
defaultFaces
|
|
||||||
{
|
|
||||||
type empty;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -24,16 +24,25 @@ boundaryField
|
|||||||
leftWall
|
leftWall
|
||||||
{
|
{
|
||||||
type nutkWallFunction;
|
type nutkWallFunction;
|
||||||
|
Cmu 0.09;
|
||||||
|
kappa 0.41;
|
||||||
|
E 9.8;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
rightWall
|
rightWall
|
||||||
{
|
{
|
||||||
type nutkWallFunction;
|
type nutkWallFunction;
|
||||||
|
Cmu 0.09;
|
||||||
|
kappa 0.41;
|
||||||
|
E 9.8;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
lowerWall
|
lowerWall
|
||||||
{
|
{
|
||||||
type nutkWallFunction;
|
type nutkWallFunction;
|
||||||
|
Cmu 0.09;
|
||||||
|
kappa 0.41;
|
||||||
|
E 9.8;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
atmosphere
|
atmosphere
|
||||||
@ -41,6 +50,10 @@ boundaryField
|
|||||||
type calculated;
|
type calculated;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
defaultFaces
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
porous_half0
|
porous_half0
|
||||||
{
|
{
|
||||||
type cyclic;
|
type cyclic;
|
||||||
@ -49,10 +62,6 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type cyclic;
|
type cyclic;
|
||||||
}
|
}
|
||||||
defaultFaces
|
|
||||||
{
|
|
||||||
type empty;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -25,19 +25,16 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type fixedFluxPressure;
|
type fixedFluxPressure;
|
||||||
gradient uniform 0;
|
gradient uniform 0;
|
||||||
value uniform 0;
|
|
||||||
}
|
}
|
||||||
rightWall
|
rightWall
|
||||||
{
|
{
|
||||||
type fixedFluxPressure;
|
type fixedFluxPressure;
|
||||||
gradient uniform 0;
|
gradient uniform 0;
|
||||||
value uniform 0;
|
|
||||||
}
|
}
|
||||||
lowerWall
|
lowerWall
|
||||||
{
|
{
|
||||||
type fixedFluxPressure;
|
type fixedFluxPressure;
|
||||||
gradient uniform 0;
|
gradient uniform 0;
|
||||||
value uniform 0;
|
|
||||||
}
|
}
|
||||||
atmosphere
|
atmosphere
|
||||||
{
|
{
|
||||||
@ -48,29 +45,28 @@ boundaryField
|
|||||||
p0 uniform 0;
|
p0 uniform 0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
defaultFaces
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
porous_half0
|
porous_half0
|
||||||
{
|
{
|
||||||
type porousBafflePressure;
|
type porousBafflePressure;
|
||||||
patchType cyclic;
|
patchType cyclic;
|
||||||
jump uniform 0;
|
jump uniform 0;
|
||||||
|
value uniform 0;
|
||||||
D 700;
|
D 700;
|
||||||
I 500;
|
I 500;
|
||||||
length 1.05;
|
length 1.05;
|
||||||
value uniform 0;
|
|
||||||
}
|
}
|
||||||
porous_half1
|
porous_half1
|
||||||
{
|
{
|
||||||
type porousBafflePressure;
|
type porousBafflePressure;
|
||||||
patchType cyclic;
|
patchType cyclic;
|
||||||
jump uniform 0;
|
value uniform 0;
|
||||||
D 700;
|
D 700;
|
||||||
I 500;
|
I 500;
|
||||||
length 1.05;
|
length 1.05;
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
defaultFaces
|
|
||||||
{
|
|
||||||
type empty;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -65,7 +65,10 @@ baffles
|
|||||||
type cyclic;
|
type cyclic;
|
||||||
neighbourPatch porous_half0;
|
neighbourPatch porous_half0;
|
||||||
|
|
||||||
${..master.patchFields}
|
patchFields
|
||||||
|
{
|
||||||
|
${...master.patchFields}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user