mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
use different controlDict for test harness runs
original case runtime is too long for test harness execution
This commit is contained in:
@ -0,0 +1,229 @@
|
||||
/*--------------------------------*- 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 controlDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
application cfdemSolverRhoPimpleChem;
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0.0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 0.12;
|
||||
|
||||
deltaT 0.00025;
|
||||
|
||||
writeControl runTime; //timeStep;
|
||||
|
||||
writeInterval 0.02; //5000;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writePrecision 6;
|
||||
|
||||
writeCompression off;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
adjustTimeStep no;
|
||||
|
||||
maxCo 0.5;
|
||||
|
||||
maxDeltaT 0.1;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
libs
|
||||
(
|
||||
"libfieldFunctionObjects.so"
|
||||
);
|
||||
|
||||
functions
|
||||
{
|
||||
moleFrac
|
||||
{
|
||||
type rhoReactionThermoMoleFractions;
|
||||
}
|
||||
|
||||
probes1
|
||||
{
|
||||
type probes;
|
||||
|
||||
functionObjectLibs ("libsampling.so");
|
||||
|
||||
#include "probesDict";
|
||||
}
|
||||
|
||||
|
||||
fieldMinMax_T
|
||||
{
|
||||
type fieldMinMax;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
fields (T);
|
||||
// Report the location of the field extrema
|
||||
location yes;
|
||||
// Type of extrema for rank > 0 primitives
|
||||
mode magnitude; // magnitude | component
|
||||
}
|
||||
|
||||
fieldMinMax_Cpv
|
||||
{
|
||||
type fieldMinMax;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
fields (Cpv);
|
||||
// Report the location of the field extrema
|
||||
location yes;
|
||||
// Type of extrema for rank > 0 primitives
|
||||
mode magnitude; // magnitude | component
|
||||
}
|
||||
|
||||
fieldMinMax_partTemp
|
||||
{
|
||||
type fieldMinMax;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
fields (partTemp);
|
||||
location yes;
|
||||
mode magnitude;
|
||||
}
|
||||
|
||||
globalMassFrac
|
||||
{
|
||||
type volRegion;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
writeControl timeStep;//outputTime;
|
||||
writeInterval 1;
|
||||
log true;
|
||||
writeFields false;
|
||||
regionType all;
|
||||
name c0;
|
||||
operation weightedVolAverage;
|
||||
weightField rhoeps;
|
||||
fields
|
||||
(
|
||||
H2
|
||||
H2O
|
||||
CO2
|
||||
CO
|
||||
N2
|
||||
);
|
||||
}
|
||||
|
||||
globalMass
|
||||
{
|
||||
type volRegion;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
writeControl timeStep;//outputTime;
|
||||
writeInterval 1;
|
||||
log true;
|
||||
writeFields false;
|
||||
regionType all;
|
||||
name c1;
|
||||
operation volIntegrate;
|
||||
fields
|
||||
(
|
||||
rhoeps
|
||||
rho
|
||||
);
|
||||
}
|
||||
|
||||
inflow_GasSpecies
|
||||
{
|
||||
type surfaceRegion;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
writeControl timeStep;
|
||||
writeInterval 100;
|
||||
log true;
|
||||
// Output field values as well
|
||||
writeFields false;
|
||||
regionType patch;
|
||||
name inlet;
|
||||
operation sum;//areaIntegrate;
|
||||
|
||||
fields
|
||||
(
|
||||
CO
|
||||
CO2
|
||||
H2
|
||||
H2O
|
||||
N2
|
||||
);
|
||||
}
|
||||
|
||||
inflow_phi
|
||||
{
|
||||
type surfaceRegion;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
writeControl timeStep;
|
||||
writeInterval 100;
|
||||
log true;
|
||||
// Output field values as well
|
||||
writeFields false;
|
||||
regionType patch;
|
||||
name inlet;
|
||||
operation sum;//areaIntegrate;
|
||||
|
||||
fields
|
||||
(
|
||||
phi
|
||||
);
|
||||
}
|
||||
|
||||
inflow_U
|
||||
{
|
||||
type surfaceRegion;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
writeControl timeStep;
|
||||
writeInterval 100;
|
||||
log true;
|
||||
// Output field values as well
|
||||
writeFields false;
|
||||
regionType patch;
|
||||
name inlet;
|
||||
operation sum;//areaIntegrate;
|
||||
|
||||
fields
|
||||
(
|
||||
U
|
||||
);
|
||||
}
|
||||
|
||||
outflow_GasSpecies
|
||||
{
|
||||
$inflow_GasSpecies;
|
||||
name outlet;
|
||||
}
|
||||
|
||||
outflow_phi
|
||||
{
|
||||
$inflow_phi;
|
||||
name outlet;
|
||||
}
|
||||
|
||||
outflow_U
|
||||
{
|
||||
$inflow_U;
|
||||
name outlet;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -10,4 +10,7 @@ else
|
||||
echo "mesh needs to be built"
|
||||
cd $casePath/CFD
|
||||
blockMesh
|
||||
fi
|
||||
fi
|
||||
|
||||
# adapt settings for test harness run
|
||||
cp $casePath/CFD/system/controlDict_test $casePath/CFD/system/controlDict
|
||||
|
||||
Reference in New Issue
Block a user