mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -9,7 +9,7 @@ tmp<fvVectorMatrix> UEqn
|
|||||||
|
|
||||||
UEqn().relax();
|
UEqn().relax();
|
||||||
|
|
||||||
volScalarField rUA = 1.0/UEqn().A();
|
volScalarField rAU = 1.0/UEqn().A();
|
||||||
|
|
||||||
if (momentumPredictor)
|
if (momentumPredictor)
|
||||||
{
|
{
|
||||||
@ -17,6 +17,6 @@ if (momentumPredictor)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
U = rUA*(UEqn().H() - fvc::grad(p));
|
U = rAU*(UEqn().H() - fvc::grad(p));
|
||||||
U.correctBoundaryConditions();
|
U.correctBoundaryConditions();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
U = rUA*UEqn().H();
|
U = rAU*UEqn().H();
|
||||||
|
|
||||||
if (nCorr <= 1)
|
if (nCorr <= 1)
|
||||||
{
|
{
|
||||||
@ -6,7 +6,7 @@ if (nCorr <= 1)
|
|||||||
}
|
}
|
||||||
|
|
||||||
phi = (fvc::interpolate(U) & mesh.Sf())
|
phi = (fvc::interpolate(U) & mesh.Sf())
|
||||||
+ fvc::ddtPhiCorr(rUA, U, phi);
|
+ fvc::ddtPhiCorr(rAU, U, phi);
|
||||||
|
|
||||||
adjustPhi(phi, U, p);
|
adjustPhi(phi, U, p);
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
|
|||||||
// Pressure corrector
|
// Pressure corrector
|
||||||
fvScalarMatrix pEqn
|
fvScalarMatrix pEqn
|
||||||
(
|
(
|
||||||
fvm::laplacian(rUA, p) == fvc::div(phi)
|
fvm::laplacian(rAU, p) == fvc::div(phi)
|
||||||
);
|
);
|
||||||
|
|
||||||
pEqn.setReference(pRefCell, pRefValue);
|
pEqn.setReference(pRefCell, pRefValue);
|
||||||
@ -47,5 +47,5 @@ for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
|
|||||||
// Explicitly relax pressure for momentum corrector
|
// Explicitly relax pressure for momentum corrector
|
||||||
p.relax();
|
p.relax();
|
||||||
|
|
||||||
U -= rUA*fvc::grad(p);
|
U -= rAU*fvc::grad(p);
|
||||||
U.correctBoundaryConditions();
|
U.correctBoundaryConditions();
|
||||||
|
|||||||
@ -27,7 +27,7 @@
|
|||||||
mesh
|
mesh
|
||||||
);
|
);
|
||||||
|
|
||||||
# include "createPhi.H"
|
#include "createPhi.H"
|
||||||
|
|
||||||
|
|
||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
|
|||||||
@ -46,6 +46,7 @@ for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
|
|||||||
|
|
||||||
#include "continuityErrs.H"
|
#include "continuityErrs.H"
|
||||||
|
|
||||||
|
// Explicitly relax pressure for momentum corrector
|
||||||
p.relax();
|
p.relax();
|
||||||
|
|
||||||
// Make the fluxes relative to the mesh motion
|
// Make the fluxes relative to the mesh motion
|
||||||
|
|||||||
@ -27,7 +27,10 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
const Foam::scalar Foam::polyMeshTetDecomposition::minTetQuality = 1e-12;
|
// Note: the use of this tolerance is ad-hoc, there may be extreme
|
||||||
|
// cases where the resulting tetrahedra still have particle tracking
|
||||||
|
// problems.
|
||||||
|
const Foam::scalar Foam::polyMeshTetDecomposition::minTetQuality = SMALL;
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -15,8 +15,6 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
libs ("libcompressibleTurbulenceModel.so" "libcompressibleRASModels.so");
|
|
||||||
|
|
||||||
application chtMultiRegionFoam;
|
application chtMultiRegionFoam;
|
||||||
|
|
||||||
startFrom latestTime;
|
startFrom latestTime;
|
||||||
@ -54,5 +52,11 @@ maxDi 10.0;
|
|||||||
|
|
||||||
adjustTimeStep yes;
|
adjustTimeStep yes;
|
||||||
|
|
||||||
|
libs
|
||||||
|
(
|
||||||
|
"libOpenFOAM.so"
|
||||||
|
"libcompressibleTurbulenceModel.so"
|
||||||
|
"libcompressibleRASModels.so"
|
||||||
|
);
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -15,8 +15,6 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
libs ("libcompressibleTurbulenceModel.so" "libcompressibleRASModels.so");
|
|
||||||
|
|
||||||
application chtMultiRegionFoam;
|
application chtMultiRegionFoam;
|
||||||
|
|
||||||
startFrom latestTime;
|
startFrom latestTime;
|
||||||
@ -53,5 +51,11 @@ maxDi 10.0;
|
|||||||
|
|
||||||
adjustTimeStep yes;
|
adjustTimeStep yes;
|
||||||
|
|
||||||
|
libs
|
||||||
|
(
|
||||||
|
"libOpenFOAM.so"
|
||||||
|
"libcompressibleTurbulenceModel.so"
|
||||||
|
"libcompressibleRASModels.so"
|
||||||
|
);
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -15,8 +15,6 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
libs ("libcompressibleTurbulenceModel.so" "libcompressibleRASModels.so");
|
|
||||||
|
|
||||||
application chtMultiRegionSimpleFoam;
|
application chtMultiRegionSimpleFoam;
|
||||||
|
|
||||||
startFrom startTime;
|
startFrom startTime;
|
||||||
@ -47,4 +45,11 @@ timePrecision 6;
|
|||||||
|
|
||||||
runTimeModifiable true;
|
runTimeModifiable true;
|
||||||
|
|
||||||
|
libs
|
||||||
|
(
|
||||||
|
"libOpenFOAM.so"
|
||||||
|
"libcompressibleTurbulenceModel.so"
|
||||||
|
"libcompressibleRASModels.so"
|
||||||
|
);
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -17,13 +17,6 @@ FoamFile
|
|||||||
|
|
||||||
application boundaryFoam;
|
application boundaryFoam;
|
||||||
|
|
||||||
libs
|
|
||||||
(
|
|
||||||
"libOpenFOAM.so"
|
|
||||||
"libinterpolationTables_16x.so"
|
|
||||||
"libtabulatedWallFunctionFvPatchFields_16x.so"
|
|
||||||
);
|
|
||||||
|
|
||||||
startFrom startTime;
|
startFrom startTime;
|
||||||
|
|
||||||
startTime 0;
|
startTime 0;
|
||||||
@ -54,5 +47,11 @@ runTimeModifiable true;
|
|||||||
|
|
||||||
graphFormat raw;
|
graphFormat raw;
|
||||||
|
|
||||||
|
libs
|
||||||
|
(
|
||||||
|
"libOpenFOAM.so"
|
||||||
|
"libinterpolationTables_16x.so"
|
||||||
|
"libtabulatedWallFunctionFvPatchFields_16x.so"
|
||||||
|
);
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -20,47 +20,47 @@ internalField uniform (0 0 0);
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
movingWall
|
movingWall
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
value uniform (1 0 0);
|
value uniform (1 0 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
farFieldMoving
|
farFieldMoving
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
value uniform (0 0 0);
|
value uniform (0 0 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
fixedWall
|
fixedWall
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
value uniform (0 0 0);
|
value uniform (0 0 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
axis
|
axis
|
||||||
{
|
{
|
||||||
type symmetryPlane;
|
type symmetryPlane;
|
||||||
}
|
}
|
||||||
|
|
||||||
left
|
left
|
||||||
{
|
{
|
||||||
type pressureInletOutletVelocity;
|
type pressureInletOutletVelocity;
|
||||||
value uniform (0 0 0);
|
value uniform (0 0 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
farField
|
farField
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
value uniform (0 0 0);
|
value uniform (0 0 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
back
|
back
|
||||||
{
|
{
|
||||||
type wedge;
|
type wedge;
|
||||||
}
|
}
|
||||||
|
|
||||||
front
|
front
|
||||||
{
|
{
|
||||||
type wedge;
|
type wedge;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,27 +20,27 @@ internalField uniform 0;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
movingWall
|
movingWall
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|
||||||
farFieldMoving
|
farFieldMoving
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|
||||||
fixedWall
|
fixedWall
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|
||||||
axis
|
axis
|
||||||
{
|
{
|
||||||
type symmetryPlane;
|
type symmetryPlane;
|
||||||
}
|
}
|
||||||
|
|
||||||
left
|
left
|
||||||
{
|
{
|
||||||
type totalPressure;
|
type totalPressure;
|
||||||
p0 uniform 0;
|
p0 uniform 0;
|
||||||
@ -52,17 +52,17 @@ boundaryField
|
|||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
farField
|
farField
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|
||||||
back
|
back
|
||||||
{
|
{
|
||||||
type wedge;
|
type wedge;
|
||||||
}
|
}
|
||||||
|
|
||||||
front
|
front
|
||||||
{
|
{
|
||||||
type wedge;
|
type wedge;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,7 +21,7 @@ solvers
|
|||||||
{
|
{
|
||||||
solver PCG;
|
solver PCG;
|
||||||
preconditioner DIC;
|
preconditioner DIC;
|
||||||
tolerance 0.01;
|
tolerance 0.02;
|
||||||
relTol 0;
|
relTol 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ solvers
|
|||||||
solver PCG;
|
solver PCG;
|
||||||
preconditioner DIC;
|
preconditioner DIC;
|
||||||
tolerance 1e-06;
|
tolerance 1e-06;
|
||||||
relTol 0.05;
|
relTol 0.01;
|
||||||
}
|
}
|
||||||
|
|
||||||
pFinal
|
pFinal
|
||||||
@ -66,10 +66,16 @@ solvers
|
|||||||
|
|
||||||
PIMPLE
|
PIMPLE
|
||||||
{
|
{
|
||||||
|
correctPhi yes;
|
||||||
nOuterCorrectors 2;
|
nOuterCorrectors 2;
|
||||||
nCorrectors 1;
|
nCorrectors 1;
|
||||||
nNonOrthogonalCorrectors 0;
|
nNonOrthogonalCorrectors 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
relaxationFactors
|
||||||
|
{
|
||||||
|
U 1;
|
||||||
|
UFinal 1;
|
||||||
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -49,14 +49,18 @@ adjustTimeStep yes;
|
|||||||
|
|
||||||
maxCo 0.9;
|
maxCo 0.9;
|
||||||
|
|
||||||
libs ("libforces.so");
|
libs
|
||||||
|
(
|
||||||
|
"libOpenFOAM.so"
|
||||||
|
"libforces.so"
|
||||||
|
);
|
||||||
|
|
||||||
functions
|
functions
|
||||||
{
|
{
|
||||||
forces
|
forces
|
||||||
{
|
{
|
||||||
type forces;
|
type forces;
|
||||||
functionObjectLibs ( "libforces.so" );
|
functionObjectLibs ("libforces.so");
|
||||||
outputControl timeStep;
|
outputControl timeStep;
|
||||||
outputInterval 10;
|
outputInterval 10;
|
||||||
patches (wing);
|
patches (wing);
|
||||||
|
|||||||
@ -15,8 +15,6 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
libs ("libOpenFOAM.so" "libincompressibleTurbulenceModel.so" "libincompressibleRASModels.so");
|
|
||||||
|
|
||||||
application pimpleFoam;
|
application pimpleFoam;
|
||||||
|
|
||||||
startFrom startTime;
|
startFrom startTime;
|
||||||
@ -51,6 +49,13 @@ adjustTimeStep yes;
|
|||||||
|
|
||||||
maxCo 5;
|
maxCo 5;
|
||||||
|
|
||||||
|
libs
|
||||||
|
(
|
||||||
|
"libOpenFOAM.so"
|
||||||
|
"libincompressibleTurbulenceModel.so"
|
||||||
|
"libincompressibleRASModels.so"
|
||||||
|
);
|
||||||
|
|
||||||
functions
|
functions
|
||||||
{
|
{
|
||||||
probes
|
probes
|
||||||
|
|||||||
@ -15,8 +15,6 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
libs ("libOpenFOAM.so" "libincompressibleTurbulenceModel.so" "libincompressibleRASModels.so");
|
|
||||||
|
|
||||||
application pimpleFoam;
|
application pimpleFoam;
|
||||||
|
|
||||||
startFrom startTime;
|
startFrom startTime;
|
||||||
@ -51,6 +49,13 @@ adjustTimeStep yes;
|
|||||||
|
|
||||||
maxCo 5;
|
maxCo 5;
|
||||||
|
|
||||||
|
libs
|
||||||
|
(
|
||||||
|
"libOpenFOAM.so"
|
||||||
|
"libinterpolationTables_16x.so"
|
||||||
|
"libtabulatedWallFunctionFvPatchFields_16x.so"
|
||||||
|
);
|
||||||
|
|
||||||
functions
|
functions
|
||||||
{
|
{
|
||||||
probes
|
probes
|
||||||
|
|||||||
@ -14,8 +14,6 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
libs ("libincompressibleRASModels.so");
|
|
||||||
|
|
||||||
application simpleFoam;
|
application simpleFoam;
|
||||||
|
|
||||||
startFrom startTime;
|
startFrom startTime;
|
||||||
@ -46,6 +44,11 @@ timePrecision 6;
|
|||||||
|
|
||||||
runTimeModifiable true;
|
runTimeModifiable true;
|
||||||
|
|
||||||
|
libs
|
||||||
|
(
|
||||||
|
"libOpenFOAM.so"
|
||||||
|
"libincompressibleRASModels.so"
|
||||||
|
);
|
||||||
|
|
||||||
functions
|
functions
|
||||||
{
|
{
|
||||||
|
|||||||
@ -15,8 +15,6 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
libs ("libOpenFOAM.so" "libcompressibleTurbulenceModel.so" "libcompressibleRASModels.so" "libradiation.so");
|
|
||||||
|
|
||||||
application porousExplicitSourceReactingParcelFoam;
|
application porousExplicitSourceReactingParcelFoam;
|
||||||
|
|
||||||
startFrom startTime;
|
startFrom startTime;
|
||||||
@ -53,5 +51,12 @@ maxCo 1.0;
|
|||||||
|
|
||||||
maxDeltaT 1;
|
maxDeltaT 1;
|
||||||
|
|
||||||
|
libs
|
||||||
|
(
|
||||||
|
"libOpenFOAM.so"
|
||||||
|
"libcompressibleTurbulenceModel.so"
|
||||||
|
"libcompressibleRASModels.so"
|
||||||
|
"libradiation.so"
|
||||||
|
);
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -15,15 +15,6 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
libs
|
|
||||||
(
|
|
||||||
"libOpenFOAM.so"
|
|
||||||
"libcompressibleTurbulenceModel.so"
|
|
||||||
"libcompressibleRASModels.so"
|
|
||||||
"libSLGThermo.so"
|
|
||||||
"libsurfaceFilmModels.so"
|
|
||||||
);
|
|
||||||
|
|
||||||
application reactingParcelFoam;
|
application reactingParcelFoam;
|
||||||
|
|
||||||
startFrom latestTime; // startTime;
|
startFrom latestTime; // startTime;
|
||||||
@ -60,5 +51,13 @@ maxCo 0.5;
|
|||||||
|
|
||||||
maxDeltaT 0.005;
|
maxDeltaT 0.005;
|
||||||
|
|
||||||
|
libs
|
||||||
|
(
|
||||||
|
"libOpenFOAM.so"
|
||||||
|
"libcompressibleTurbulenceModel.so"
|
||||||
|
"libcompressibleRASModels.so"
|
||||||
|
"libSLGThermo.so"
|
||||||
|
"libsurfaceFilmModels.so"
|
||||||
|
);
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -53,16 +53,9 @@ maxDeltaT 0.025;
|
|||||||
|
|
||||||
libs
|
libs
|
||||||
(
|
(
|
||||||
|
"libOpenFOAM.so"
|
||||||
"libincompressibleRASModels.so"
|
"libincompressibleRASModels.so"
|
||||||
"libforces.so"
|
"libforces.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
// libs
|
|
||||||
// (
|
|
||||||
// "libgenericPatchFields.so"
|
|
||||||
// "libincompressibleRASModels.so"
|
|
||||||
// "libforces.so"
|
|
||||||
// );
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
Reference in New Issue
Block a user