test/IO/fileHandler: Updated to use foamRun

This commit is contained in:
Will Bainbridge
2023-05-25 13:23:58 +01:00
parent b9b6eeb9ef
commit 5b88d10737
9 changed files with 164 additions and 20 deletions

View File

@ -19,10 +19,15 @@ internalField uniform (0 0 0);
boundaryField
{
inlet
{
type pressureInletOutletVelocity;
value $internalField;
}
outlet
{
type zeroGradient;
value uniform (0 0 0);
type pressureInletOutletVelocity;
value $internalField;
}
walls
{

44
test/IO/fileHandler/0/p Normal file
View File

@ -0,0 +1,44 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
inlet
{
type totalPressure;
p0 $internalField;
value $internalField;
}
outlet
{
type totalPressure;
p0 $internalField;
value $internalField;
}
walls
{
type zeroGradient;
}
frontAndBack
{
type zeroGradient;
}
}
// ************************************************************************* //

View File

@ -56,8 +56,6 @@ subModels
model1
{
type manualInjection;
massTotal 0;
parcelBasisType fixed;
nParticle 1;
SOI 0;
positionsFile "cloudPositions";

View File

@ -0,0 +1,23 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "constant";
object fvModels;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
clouds
{
type clouds;
libs ("liblagrangianParcel.so");
}
// ************************************************************************* //

View File

@ -18,6 +18,7 @@ viscosityModel constant;
nu 1e-05;
rho 1.2;
rhoInf 1.2;
// ************************************************************************* //

View File

@ -19,12 +19,16 @@ vertices
(
(0 77.9423 6.2)
(135 0 6.2)
(0 -77.9423 6.2)
(300 -77.9423 6.2)
(165 0 6.2)
(300 77.9423 6.2)
(300 500 6.2)
(0 500 6.2)
(0 77.9423 0)
(135 0 0)
(0 -77.9423 0)
(300 -77.9423 0)
(165 0 0)
(300 77.9423 0)
(300 500 0)
@ -34,8 +38,9 @@ vertices
blocks
(
hex (6 9 10 11 0 3 4 5 ) (20 40 1) simpleGrading (1 1 1)
hex (7 8 9 6 1 2 3 0) (20 8 1) simpleGrading (1 1 1)
hex (8 13 14 15 0 5 6 7) (24 50 1) simpleGrading (1 1 1)
hex (9 12 13 8 1 4 5 0) (24 8 1) simpleGrading (1 1 1)
hex (10 11 12 9 2 3 4 1) (24 6 1) simpleGrading (1 1 1)
);
boundary
@ -45,12 +50,12 @@ boundary
type wall;
faces
(
(1 7 8 2)
(0 6 7 1)
(2 8 9 3)
(0 5 11 6)
(3 4 10 9)
(4 10 11 5)
(0 7 15 8)
(1 0 8 9)
(13 14 6 5)
(12 13 5 4)
(2 1 9 10)
(11 12 4 3)
);
}
@ -59,12 +64,33 @@ boundary
type wall;
faces
(
(0 3 4 5)
(1 2 3 0)
(6 11 10 9)
(6 9 8 7)
(4 5 0 1)
(5 6 7 0)
(15 14 13 8)
(8 13 12 9)
(3 4 1 2)
(12 11 10 9)
);
}
inlet
{
type patch;
faces
(
(15 7 6 14)
);
}
outlet
{
type patch;
faces
(
(3 2 10 11)
);
}
);

View File

@ -14,7 +14,9 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application particleFoam;
application foamRun;
solver incompressibleFluid;
startFrom latestTime;

View File

@ -16,22 +16,24 @@ FoamFile
ddtSchemes
{
default none;
default Euler;
}
gradSchemes
{
default none;
default Gauss linear;
}
divSchemes
{
default none;
div(phi,U) Gauss limitedLinearV 1;
div((nuEff*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes
{
default none;
default Gauss linear corrected;
}
interpolationSchemes

View File

@ -16,6 +16,49 @@ FoamFile
solvers
{
p
{
solver GAMG;
smoother GaussSeidel;
tolerance 1e-6;
relTol 0.01;
}
pFinal
{
$p;
relTol 0;
}
U
{
solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-5;
relTol 0.1;
}
UFinal
{
$U;
relTol 0;
}
}
PIMPLE
{
nOuterCorrectors 1;
nCorrectors 2;
nNonOrthogonalCorrectors 0;
}
relaxationFactors
{
equations
{
".*" 1;
}
}
// ************************************************************************* //