TUT: simplify basic/overLaplacianDyMFoam/heatTransfer

BAKW: ensure bitwise backward compatibility
This commit is contained in:
Kutalmis Bercin 2020-01-09 17:07:05 +00:00
parent c399a4b3fb
commit bda695d97a
10 changed files with 11 additions and 72 deletions

View File

@ -10,14 +10,13 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volVectorField; class volVectorField;
location "0.1"; location "0";
object cellDisplacement; object cellDisplacement;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 0 0 0 0 0]; dimensions [0 1 0 0 0 0 0];
internalField uniform (0 0 0); internalField uniform (0 0 0);
boundaryField boundaryField
@ -29,30 +28,16 @@ boundaryField
value uniform (0 0 0); value uniform (0 0 0);
} }
walls "(walls|hole|left1|right1)"
{
type cellMotion;
value uniform (0 0 0);
}
hole
{ {
type cellMotion; type cellMotion;
value uniform (0 0 0); value uniform (0 0 0);
} }
frontAndBack frontAndBack
{ {
type empty; type empty;
} }
left1
{
type cellMotion;
value uniform (0 0 0);
}
right1
{
type cellMotion;
value uniform (0 0 0);
}
} }

View File

@ -4,7 +4,6 @@ cd "${0%/*}" || exit # Run from this directory
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
cleanCase0 cleanCase0
rm -f constant/polyMesh/boundary rm -f constant/polyMesh/boundary
rm -f constant/polyMesh/zoneID rm -f constant/polyMesh/zoneID

View File

@ -5,8 +5,6 @@ cd "${0%/*}" || exit # Run from this directory
./Allrun.pre ./Allrun.pre
# Run it for a bit
# Serial # Serial
#runApplication $(getApplication) #runApplication $(getApplication)

View File

@ -1,4 +0,0 @@
Transient, moving mesh
----------------------
Simple testcase for testing mesh motion

View File

@ -10,30 +10,12 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
location "constant";
object transportProperties; object transportProperties;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
DT DT [ 0 2 -1 0 0 0 0 ] 1; DT 1;
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-05;
CrossPowerLawCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
m m [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 1;
}
BirdCarreauCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
k k [ 0 0 1 0 0 0 0 ] 0;
n n [ 0 0 0 0 0 0 0 ] 1;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -51,7 +51,6 @@ vertices
blocks blocks
( (
hex (0 1 2 3 4 5 6 7) (18 18 1) simpleGrading (1 1 1) hex (0 1 2 3 4 5 6 7) (18 18 1) simpleGrading (1 1 1)
hex (8 9 10 11 12 13 14 15) movingZone (20 20 1) simpleGrading (1 1 1) hex (8 9 10 11 12 13 14 15) movingZone (20 20 1) simpleGrading (1 1 1)
); );
@ -110,6 +109,7 @@ boundary
(0 4 7 3) (0 4 7 3)
); );
} }
right1 right1
{ {
type patch; type patch;

View File

@ -16,7 +16,7 @@ FoamFile
ddtSchemes ddtSchemes
{ {
default Euler; //steadyState; default Euler;
} }
gradSchemes gradSchemes
@ -28,13 +28,6 @@ gradSchemes
divSchemes divSchemes
{ {
default none; default none;
div(phi,U) bounded Gauss limitedLinearV 1;
div(phi,k) bounded Gauss limitedLinear 1;
div(phi,epsilon) bounded Gauss limitedLinear 1;
div(phi,R) bounded Gauss limitedLinear 1;
div(R) Gauss linear;
div(phi,nuTilda) bounded Gauss limitedLinear 1;
div((nuEff*dev(T(grad(U))))) Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -44,29 +44,15 @@ solvers
SIMPLE SIMPLE
{ {
nNonOrthogonalCorrectors 0; //2; nNonOrthogonalCorrectors 0;
} }
PIMPLE PIMPLE
{ {
correctPhi yes;
nOuterCorrectors 2; nOuterCorrectors 2;
nCorrectors 1; nCorrectors 1;
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
} }
relaxationFactors
{
fields
{
p 0.3;
}
equations
{
U 0.7;
k 0.7;
omega 0.7;
}
}
// ************************************************************************* // // ************************************************************************* //