adapt settings for test harness [ci skip]

This commit is contained in:
danielque
2019-08-09 13:19:10 +02:00
parent bb65be3c6b
commit a58098cc97
4 changed files with 88 additions and 39 deletions

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application cfdemSolverRhoPimpleChem;
application cfdemSolverRhoPimpleChem;
startFrom startTime;
@ -23,15 +23,15 @@ startTime 0.0;
stopAt endTime;
endTime 1;
endTime 0.5;
deltaT 0.0001;
deltaT 0.0005;
writeControl timeStep; //
writeControl timeStep;
writeInterval 50; //500;
writeInterval 500;
purgeWrite 10;
purgeWrite 0;
writeFormat ascii;
@ -53,7 +53,7 @@ maxDeltaT 0.1;
// ************************************************************************* //
libs (
libs (
"libfieldFunctionObjects.so"
);
@ -61,16 +61,16 @@ functions
{
moleFrac
{
type rhoReactionThermoMoleFractions;
}
type rhoReactionThermoMoleFractions;
}
residuals
{
type residuals;
functionObjectLibs ("libutilityFunctionObjects.so");
enabled true;
outputControl timeStep;
outputInterval 1;
writeControl timeStep;
writeInterval 1;
fields
(
@ -78,14 +78,14 @@ functions
U
);
}
gasResidual
{
{
type residuals;
functionObjectLibs ("libutilityFunctionObjects.so");
enabled true;
outputControl timeStep;
outputInterval 1;
writeControl timeStep;
writeInterval 1;
fields
(
@ -96,36 +96,35 @@ functions
N2
);
}
probes1
{
type probes;
type probes;
functionObjectLibs ("libsampling.so");
#include "probesDict";
#include "probesDict";
}
fieldMinMax1
{
type fieldMinMax;
libs ("libfieldFunctionObjects.so");
fields (U);
// Report the location of the field extrema
location yes;
// Type of extrema for rank > 0 primitives
mode magnitude; // magnitude | component
type fieldMinMax;
libs ("libfieldFunctionObjects.so");
fields (U);
// Report the location of the field extrema
location yes;
// Type of extrema for rank > 0 primitives
mode magnitude; // magnitude | component
}
globalMassFrac
{
{
type volRegion;
libs ("libfieldFunctionObjects.so");
writeControl timeStep;//outputTime;
writeInterval 1;
writeControl timeStep;
writeInterval 1;
log true;
writeFields false;
regionType all;
@ -139,14 +138,14 @@ functions
CO2
CO
N2
);
}
);
}
globalMass
{
{
type volRegion;
libs ("libfieldFunctionObjects.so");
writeControl timeStep;//outputTime;
writeControl timeStep;
writeInterval 1;
log true;
writeFields false;
@ -158,7 +157,7 @@ functions
rhoeps
rho
);
}
}
}
}
// ************************************************************************* //

View File

@ -0,0 +1,45 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 4;
method simple;
simpleCoeffs
{
n (2 1 2);
delta 0.001;
}
hierarchicalCoeffs
{
n ( 1 1 1 );
delta 0.001;
order xyz;
}
manualCoeffs
{
dataFile "";
}
distributed no;
roots ( );
// ************************************************************************* //

View File

@ -10,4 +10,9 @@ else
echo "mesh needs to be built"
cd $casePath/CFD
blockMesh
fi
fi
# adapt settings for short run
cp $casePath/CFD/system/controlDict_test $casePath/CFD/system/controlDict
cp $casePath/CFD/system/decomposeParDict_test $casePath/CFD/system/decomposeParDict

View File

@ -11,7 +11,7 @@
"depends_on" : "liggghts-init",
"solver" : "cfdemSolverRhoPimpleChem",
"type" : "CFDEMcoupling/mpi",
"nprocs" : 8,
"nprocs" : 4,
"pre_scripts" : ["prerun.sh"],
"post_scripts" : ["postrun.sh"]
}