--> FOAM FATAL ERROR:
Invalid wall function specification
Patch type for patch down must be wall
Current patch type is patch
From function kqRWallFunctionFvPatchField::checkType()
in file derivedFvPatchFields/wallFunctions/kqRWallFunctions/kqRWallFunction/kqRWallFunctionFvPatchField.C at line 47.
FOAM aborting
Aborted (core dumped)
边界条件如下:
nut:
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
down
{
type nutWallFunction;
value uniform 0;
}
downX
{
type nutWallFunction;
value uniform 0;
}
downY
{
type nutWallFunction;
value uniform 0;
}
upX
{
type nutWallFunction;
value uniform 0;
}
upY
{
type nutWallFunction;
value uniform 0;
}
downup
{
type nutWallFunction;//movingWallVelocity;
value uniform 0;
}
middleside
{
type nutWallFunction;//movingWallVelocity;
value uniform 0;
}
updown
{
type nutWallFunction;//movingWallVelocity;
value uniform 0;
}
wall
{
type nutWallFunction;
value uniform 0;
}
up
{
type nutWallFunction;
value uniform 0;
}
}
U:
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 3);
boundaryField
{
down
{
type fixedValue;
value uniform (0 0 3);
}
downX
{
type symmetryPlane;
}
downY
{
type symmetryPlane;
}
upX
{
type symmetryPlane;
}
upY
{
type symmetryPlane;
}
downup
{
type fixedValue;//movingWallVelocity;
value uniform (0 0 0);
}
middleside
{
type fixedValue;//movingWallVelocity;
value uniform (0 0 0);
}
updown
{
type fixedValue;//movingWallVelocity;
value uniform (0 0 0);
}
wall
{
type movingWallVelocity;
value uniform (0 0 0);
}
up
{
type zeroGradient;
}
}
p:
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
down
{
type zeroGradient;
value uniform 0;
}
downX
{
type symmetryPlane;
value uniform 0;
}
downY
{
type symmetryPlane;
value uniform 0;
}
upX
{
type symmetryPlane;
value uniform 0;
}
upY
{
type symmetryPlane;
value uniform 0;
}
downup
{
type zeroGradient;
value uniform 0;
}
middleside
{
type zeroGradient;//extrapolatedPressure;
value uniform 0;
}
updown
{
type zeroGradient;//extrapolatedPressure;
value uniform 0;
}
wall
{
type extrapolatedPressure;
value uniform 0;
}
up
{
type fixedValue;
value uniform 6.428e3;
}
}
k 的设置如下:
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0.01125;
boundaryField
{
down
{
type kqRWallFunction;
value uniform 0.01125;
}
downX
{
type kqRWallFunction;
value uniform 0.01125;
}
downY
{
type kqRWallFunction;
value uniform 0.01125;
}
upX
{
type kqRWallFunction;
value uniform 0.01125;
}
upY
{
type kqRWallFunction;
value uniform 0.01125;
}
downup
{
type kqRWallFunction;//movingWallVelocity;
value uniform 0.01125;
}
middleside
{
type kqRWallFunction;//movingWallVelocity;
value uniform 0.01125;
}
updown
{
type kqRWallFunction;//movingWallVelocity;
value uniform 0.01125;
}
wall
{
type kqRWallFunction;
value uniform 0.01125;
}
up
{
type kqRWallFunction;
value uniform 0.01125;
}
}
epsilon:
dimensions [0 2 -3 0 0 0 0];
internalField uniform 0.006583;
boundaryField
{
down
{
type epsilonWallFunction;
value uniform 0.006583;
}
downX
{
type epsilonWallFunction;
value uniform 0.006583;
}
downY
{
type epsilonWallFunction;
value uniform 0.006583;
}
upX
{
type epsilonWallFunction;
value uniform 0.006583;
}
upY
{
type epsilonWallFunction;
value uniform 0.006583;
}
downup
{
type epsilonWallFunction;//movingWallVelocity;
value uniform 0.006583;
}
middleside
{
type epsilonWallFunction;//movingWallVelocity;
value uniform 0.006583;
}
updown
{
type epsilonWallFunction;//movingWallVelocity;
value uniform 0.006583;
}
wall
{
type epsilonWallFunction;
value uniform 0.006583;
}
up
{
type epsilonWallFunction;
value uniform 0.006583;
}
}
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
down
{
type calculated;
value uniform 0;
}
downX
{
type calculated;
value uniform 0;
}
downY
{
type calculated;
value uniform 0;
}
upX
{
type calculated;
value uniform 0;
}
upY
{
type calculated;
value uniform 0;
}
downup
{
type calculated;
value uniform 0;
}
middleside
{
type calculated;
value uniform 0;
}
updown
{
type calculated;
value uniform 0;
}
wall
{
type nutkWallFunction;
value uniform 0;
}
up
{
type calculated;
value uniform 0;
}
}
k 和 epsilon 也有设置错误。kqRWallFunction 指定 wall 的边界。
以下为 k:
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0.01125;
boundaryField
{
down
{
type fixedValue;
value uniform 0.01125;
}
downX
{
type symmetryPlane;
}
downY
{
type symmetryPlane;
}
upX
{
type symmetryPlane;
}
upY
{
type symmetryPlane;
}
downup
{
type kqRWallFunction;//movingWallVelocity;
value uniform 0.01125;
}
middleside
{
type kqRWallFunction;//movingWallVelocity;
value uniform 0.01125;
}
updown
{
type kqRWallFunction;//movingWallVelocity;
value uniform 0.01125;
}
wall
{
type kqRWallFunction;
value uniform 0.01125;
}
up
{
type zeroGradient;
}
}
epsilon 应该如下:
dimensions [0 2 -3 0 0 0 0];
internalField uniform 0.006583;
boundaryField
{
down
{
type fixedValue;
value uniform 0.006583;
}
downX
{
type symmetryPlane;
}
downY
{
type symmetryPlane;
}
upX
{
type symmetryPlane;
}
upY
{
type symmetryPlane;
}
downup
{
type epsilonWallFunction;//movingWallVelocity;
value uniform 0.006583;
}
middleside
{
type epsilonWallFunction;//movingWallVelocity;
value uniform 0.006583;
}
updown
{
type epsilonWallFunction;//movingWallVelocity;
value uniform 0.006583;
}
wall
{
type epsilonWallFunction;
value uniform 0.006583;
}
up
{
type zeroGradient;
}
}
--> FOAM FATAL IO ERROR:
inconsistent patch and patchField types for field nut
patch type symmetryPlane and patchField type calculated
file: /run/media/xye/MyFiles/turbulence/fluid/0/nut::boundaryField::downY from line 37 to line 38.
From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
in file /home/xye/foam/foam-extend-3.1/src/finiteVolume/lnInclude/newFvPatchField.C at line 140.
FOAM exiting
Evolving flow model
Courant Number mean: 0.3952959 max: 175.13348 velocity magnitude: 2767.5311
DILUPBiCG: Solving for Ux, Initial residual = 0.64967429, Final residual = 0.06005503, No Iterations 1000
DILUPBiCG: Solving for Uy, Initial residual = 0.65510927, Final residual = 0.057826146, No Iterations 1000
DILUPBiCG: Solving for Uz, Initial residual = 0.45660827, Final residual = 0.19803852, No Iterations 1000
Floating point exception (core dumped)
设置例如:
down
{
type fixedValue;
value uniform 0.006583;
}
downX
{
type symmetryPlane;
}
downY
{
type symmetryPlane;
}
upX
{
type symmetryPlane;
}
upY
{
type symmetryPlane;
}
downup
{
type zeroGradient;//movingWallVelocity;
}
middleside
{
type zeroGradient;//movingWallVelocity;
}
updown
{
type zeroGradient;//movingWallVelocity;
}
wall
{
type epsilonWallFunction;
value uniform 0.006583;
}
up
{
type zeroGradient;
}
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
down
{
type fixedValue;
value uniform 0;
}
downX
{
type symmetryPlane;
}
downY
{
type symmetryPlane;
value uniform 0;
}
upX
{
type symmetryPlane;
value uniform 0;
}
upY
{
type symmetryPlane;
value uniform 0;
}
downup
{
type nutkWallFunction;
value uniform 0;
}
middleside
{
type nutkWallFunction;
value uniform 0;
}
updown
{
type nutkWallFunction;
value uniform 0;
}
wall
{
type nutkWallFunction;
value uniform 0;
}
up
{
type inletOutlet;
InletValue uniform 0;
value uniform 0;
}
}
以下为 k:
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0.01125;
boundaryField
{
down
{
type fixedValue;
value uniform 0.01125;
}
downX
{
type symmetryPlane;
}
downY
{
type symmetryPlane;
}
upX
{
type symmetryPlane;
}
upY
{
type symmetryPlane;
}
downup
{
type kqRWallFunction; //movingWallVelocity;
value uniform 0.01125;
}
middleside
{
type kqRWallFunction; //movingWallVelocity;
value uniform 0.01125;
}
updown
{
type kqRWallFunction; //movingWallVelocity;
value uniform 0.01125;
}
wall
{
type kqRWallFunction;
value uniform 0.01125;
}
up
{
type inletOutlet;
InletValue uniform 0.01125;
value uniform 0;
}
}
epsilon 应该如下:
dimensions [0 2 -3 0 0 0 0];
internalField uniform 0.006583;
boundaryField
{
down
{
type fixedValue;
value uniform 0.006583;
}
downX
{
type symmetryPlane;
}
downY
{
type symmetryPlane;
}
upX
{
type symmetryPlane;
}
upY
{
type symmetryPlane;
}
downup
{
type epsilonWallFunction; //movingWallVelocity;
value uniform 0.006583;
}
middleside
{
type epsilonWallFunction; //movingWallVelocity;
value uniform 0.006583;
}
updown
{
type epsilonWallFunction; //movingWallVelocity;
value uniform 0.006583;
}
wall
{
type epsilonWallFunction;
value uniform 0.006583;
}
up
{
type inletOutlet;
InletValue uniform 0.006583;
value uniform 0;
}
}
From function void epsilonWallFunctionFvPatchScalarField::updateCoeffs()
in file derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C at line 174
Cannot access RASModel::G field for patch wall. Evaluating as zeroGradient
From function void epsilonWallFunctionFvPatchScalarField::updateCoeffs()
in file derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C at line 174
Cannot access RASModel::G field for patch wall. Evaluating as zeroGradient
From function void epsilonWallFunctionFvPatchScalarField::updateCoeffs()
in file derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C at line 174