Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev
This commit is contained in:
commit
ccb0e90abb
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Application
|
Application
|
||||||
volFieldTest
|
Test-volField
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -52,8 +52,6 @@ int main(int argc, char *argv[])
|
|||||||
mesh
|
mesh
|
||||||
);
|
);
|
||||||
|
|
||||||
//Info<< min(p, p);
|
|
||||||
|
|
||||||
Info<< "Reading field U\n" << endl;
|
Info<< "Reading field U\n" << endl;
|
||||||
volVectorField U
|
volVectorField U
|
||||||
(
|
(
|
||||||
@ -85,9 +83,12 @@ int main(int argc, char *argv[])
|
|||||||
zeroGradientFvPatchSymmTensorField::typeName
|
zeroGradientFvPatchSymmTensorField::typeName
|
||||||
);
|
);
|
||||||
|
|
||||||
//Info<< fvc::div(st) << endl;
|
solve
|
||||||
|
(
|
||||||
solve(fvm::ddt(st) + fvm::div(phi, st) - fvm::laplacian(st));
|
fvm::ddt(st)
|
||||||
|
+ fvm::div(phi, st)
|
||||||
|
- fvm::laplacian(dimensionedScalar("D", sqr(dimLength)/dimTime, 1), st)
|
||||||
|
);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -23,26 +23,22 @@ ddtSchemes
|
|||||||
gradSchemes
|
gradSchemes
|
||||||
{
|
{
|
||||||
default Gauss linear;
|
default Gauss linear;
|
||||||
grad(p) Gauss linear;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
divSchemes
|
divSchemes
|
||||||
{
|
{
|
||||||
default none;
|
default none;
|
||||||
div(phi,U) Gauss linear;
|
div(phi,st) Gauss linear;
|
||||||
}
|
}
|
||||||
|
|
||||||
laplacianSchemes
|
laplacianSchemes
|
||||||
{
|
{
|
||||||
default none;
|
default Gauss linear orthogonal;
|
||||||
laplacian(nu,U) Gauss linear orthogonal;
|
|
||||||
laplacian((1|A(U)),p) Gauss linear orthogonal;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interpolationSchemes
|
interpolationSchemes
|
||||||
{
|
{
|
||||||
default linear;
|
default linear;
|
||||||
interpolate(HbyA) linear;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
snGradSchemes
|
snGradSchemes
|
||||||
|
@ -17,15 +17,7 @@ FoamFile
|
|||||||
|
|
||||||
solvers
|
solvers
|
||||||
{
|
{
|
||||||
p
|
st
|
||||||
{
|
|
||||||
solver PCG;
|
|
||||||
preconditioner DIC;
|
|
||||||
tolerance 1e-06;
|
|
||||||
relTol 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
U
|
|
||||||
{
|
{
|
||||||
solver PBiCG;
|
solver PBiCG;
|
||||||
preconditioner DILU;
|
preconditioner DILU;
|
||||||
|
@ -128,7 +128,7 @@ dimensionedSymmTensor cof(const dimensionedSymmTensor& dt)
|
|||||||
return dimensionedSymmTensor
|
return dimensionedSymmTensor
|
||||||
(
|
(
|
||||||
"cof("+dt.name()+')',
|
"cof("+dt.name()+')',
|
||||||
dt.dimensions(),
|
pow(dt.dimensions(), symmTensor::dim - 1),
|
||||||
cof(dt.value())
|
cof(dt.value())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ dimensionedTensor cof(const dimensionedTensor& dt)
|
|||||||
return dimensionedTensor
|
return dimensionedTensor
|
||||||
(
|
(
|
||||||
"cof("+dt.name()+')',
|
"cof("+dt.name()+')',
|
||||||
dt.dimensions(),
|
pow(dt.dimensions(), tensor::dim - 1),
|
||||||
cof(dt.value())
|
cof(dt.value())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -106,7 +106,7 @@ dimensionedTensor inv(const dimensionedTensor& dt)
|
|||||||
return dimensionedTensor
|
return dimensionedTensor
|
||||||
(
|
(
|
||||||
"inv("+dt.name()+')',
|
"inv("+dt.name()+')',
|
||||||
dimless/dt.dimensions(),
|
inv(dt.dimensions()),
|
||||||
inv(dt.value())
|
inv(dt.value())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -37,7 +37,7 @@ namespace Foam
|
|||||||
|
|
||||||
UNARY_FUNCTION(scalar, sphericalTensor, tr, transform)
|
UNARY_FUNCTION(scalar, sphericalTensor, tr, transform)
|
||||||
UNARY_FUNCTION(sphericalTensor, sphericalTensor, sph, transform)
|
UNARY_FUNCTION(sphericalTensor, sphericalTensor, sph, transform)
|
||||||
UNARY_FUNCTION(scalar, sphericalTensor, det, transform)
|
UNARY_FUNCTION(scalar, sphericalTensor, det, pow3)
|
||||||
UNARY_FUNCTION(sphericalTensor, sphericalTensor, inv, inv)
|
UNARY_FUNCTION(sphericalTensor, sphericalTensor, inv, inv)
|
||||||
|
|
||||||
BINARY_OPERATOR(sphericalTensor, scalar, sphericalTensor, /, '|', divide)
|
BINARY_OPERATOR(sphericalTensor, scalar, sphericalTensor, /, '|', divide)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -44,8 +44,8 @@ UNARY_FUNCTION(symmTensor, symmTensor, symm, transform)
|
|||||||
UNARY_FUNCTION(symmTensor, symmTensor, twoSymm, transform)
|
UNARY_FUNCTION(symmTensor, symmTensor, twoSymm, transform)
|
||||||
UNARY_FUNCTION(symmTensor, symmTensor, dev, transform)
|
UNARY_FUNCTION(symmTensor, symmTensor, dev, transform)
|
||||||
UNARY_FUNCTION(symmTensor, symmTensor, dev2, transform)
|
UNARY_FUNCTION(symmTensor, symmTensor, dev2, transform)
|
||||||
UNARY_FUNCTION(scalar, symmTensor, det, transform)
|
UNARY_FUNCTION(scalar, symmTensor, det, pow3)
|
||||||
UNARY_FUNCTION(symmTensor, symmTensor, cof, cof)
|
UNARY_FUNCTION(symmTensor, symmTensor, cof, pow2)
|
||||||
UNARY_FUNCTION(symmTensor, symmTensor, inv, inv)
|
UNARY_FUNCTION(symmTensor, symmTensor, inv, inv)
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -43,8 +43,8 @@ UNARY_FUNCTION(symmTensor, tensor, twoSymm, transform)
|
|||||||
UNARY_FUNCTION(tensor, tensor, skew, transform)
|
UNARY_FUNCTION(tensor, tensor, skew, transform)
|
||||||
UNARY_FUNCTION(tensor, tensor, dev, transform)
|
UNARY_FUNCTION(tensor, tensor, dev, transform)
|
||||||
UNARY_FUNCTION(tensor, tensor, dev2, transform)
|
UNARY_FUNCTION(tensor, tensor, dev2, transform)
|
||||||
UNARY_FUNCTION(scalar, tensor, det, transform)
|
UNARY_FUNCTION(scalar, tensor, det, pow3)
|
||||||
UNARY_FUNCTION(tensor, tensor, cof, cof)
|
UNARY_FUNCTION(tensor, tensor, cof, pow2)
|
||||||
UNARY_FUNCTION(tensor, tensor, inv, inv)
|
UNARY_FUNCTION(tensor, tensor, inv, inv)
|
||||||
UNARY_FUNCTION(vector, tensor, eigenValues, transform)
|
UNARY_FUNCTION(vector, tensor, eigenValues, transform)
|
||||||
UNARY_FUNCTION(tensor, tensor, eigenVectors, sign)
|
UNARY_FUNCTION(tensor, tensor, eigenVectors, sign)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -37,7 +37,7 @@ namespace Foam
|
|||||||
|
|
||||||
UNARY_FUNCTION(scalar, sphericalTensor, tr, transform)
|
UNARY_FUNCTION(scalar, sphericalTensor, tr, transform)
|
||||||
UNARY_FUNCTION(sphericalTensor, sphericalTensor, sph, transform)
|
UNARY_FUNCTION(sphericalTensor, sphericalTensor, sph, transform)
|
||||||
UNARY_FUNCTION(scalar, sphericalTensor, det, transform)
|
UNARY_FUNCTION(scalar, sphericalTensor, det, pow3)
|
||||||
UNARY_FUNCTION(sphericalTensor, sphericalTensor, inv, inv)
|
UNARY_FUNCTION(sphericalTensor, sphericalTensor, inv, inv)
|
||||||
|
|
||||||
BINARY_OPERATOR(sphericalTensor, scalar, sphericalTensor, /, '|', divide)
|
BINARY_OPERATOR(sphericalTensor, scalar, sphericalTensor, /, '|', divide)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -44,8 +44,8 @@ UNARY_FUNCTION(symmTensor, symmTensor, symm, transform)
|
|||||||
UNARY_FUNCTION(symmTensor, symmTensor, twoSymm, transform)
|
UNARY_FUNCTION(symmTensor, symmTensor, twoSymm, transform)
|
||||||
UNARY_FUNCTION(symmTensor, symmTensor, dev, transform)
|
UNARY_FUNCTION(symmTensor, symmTensor, dev, transform)
|
||||||
UNARY_FUNCTION(symmTensor, symmTensor, dev2, transform)
|
UNARY_FUNCTION(symmTensor, symmTensor, dev2, transform)
|
||||||
UNARY_FUNCTION(scalar, symmTensor, det, transform)
|
UNARY_FUNCTION(scalar, symmTensor, det, pow3)
|
||||||
UNARY_FUNCTION(symmTensor, symmTensor, cof, cof)
|
UNARY_FUNCTION(symmTensor, symmTensor, cof, pow2)
|
||||||
UNARY_FUNCTION(symmTensor, symmTensor, inv, inv)
|
UNARY_FUNCTION(symmTensor, symmTensor, inv, inv)
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -44,8 +44,8 @@ UNARY_FUNCTION(symmTensor, tensor, twoSymm, transform)
|
|||||||
UNARY_FUNCTION(tensor, tensor, skew, transform)
|
UNARY_FUNCTION(tensor, tensor, skew, transform)
|
||||||
UNARY_FUNCTION(tensor, tensor, dev, transform)
|
UNARY_FUNCTION(tensor, tensor, dev, transform)
|
||||||
UNARY_FUNCTION(tensor, tensor, dev2, transform)
|
UNARY_FUNCTION(tensor, tensor, dev2, transform)
|
||||||
UNARY_FUNCTION(scalar, tensor, det, transform)
|
UNARY_FUNCTION(scalar, tensor, det, pow3)
|
||||||
UNARY_FUNCTION(tensor, tensor, cof, cof)
|
UNARY_FUNCTION(tensor, tensor, cof, pow2)
|
||||||
UNARY_FUNCTION(tensor, tensor, inv, inv)
|
UNARY_FUNCTION(tensor, tensor, inv, inv)
|
||||||
UNARY_FUNCTION(vector, tensor, eigenValues, transform)
|
UNARY_FUNCTION(vector, tensor, eigenValues, transform)
|
||||||
UNARY_FUNCTION(tensor, tensor, eigenVectors, sign)
|
UNARY_FUNCTION(tensor, tensor, eigenVectors, sign)
|
||||||
|
Loading…
Reference in New Issue
Block a user