mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
110 lines
2.4 KiB
C++
110 lines
2.4 KiB
C++
/*--------------------------------*- 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 potentialFoam;
|
|
|
|
startFrom startTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 40;
|
|
|
|
deltaT 0.0005;
|
|
|
|
writeControl timeStep;
|
|
|
|
writeInterval 8000;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat ascii;
|
|
|
|
writePrecision 6;
|
|
|
|
writeCompression off;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 6;
|
|
|
|
runTimeModifiable true;
|
|
|
|
|
|
functions
|
|
{
|
|
probes1
|
|
{
|
|
type probes;
|
|
|
|
functionObjectLibs ("libsampling.so");
|
|
|
|
#include "probesDict";
|
|
}
|
|
|
|
volInt
|
|
{
|
|
type volRegion;
|
|
functionObjectLibs ("libfieldFunctionObjects.so");
|
|
writeControl timeStep;
|
|
log true;
|
|
writeFields false;
|
|
regionType all;
|
|
// name all;
|
|
operation volIntegrate;
|
|
|
|
fields
|
|
(
|
|
alphaSt
|
|
);
|
|
}
|
|
|
|
inflow
|
|
{
|
|
type surfaceRegion;
|
|
libs ("libfieldFunctionObjects.so");
|
|
writeControl timeStep;
|
|
log true;
|
|
// Output field values as well
|
|
writeFields false;
|
|
regionType patch;
|
|
name inlet;
|
|
operation sum;//areaIntegrate;
|
|
|
|
fields
|
|
(
|
|
massFluxDyn
|
|
);
|
|
}
|
|
|
|
outflow
|
|
{
|
|
$inflow;
|
|
name outlet;
|
|
}
|
|
|
|
throughflow
|
|
{
|
|
$inflow;
|
|
regionType faceZone;
|
|
name plane1;
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|