mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
This is a small, simple tutorial for testing the implementation of large, incomplete data bases. In this tutorial case, rStatAnalysis is used as post-processor and it uses a data base in memory, which is smaller than the number of snapshots on disk.
91 lines
2.0 KiB
C++
91 lines
2.0 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: 2.1.x |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object controlDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
application twoPhaseEulerFoam;
|
|
|
|
startFrom latestTime;
|
|
|
|
startTime 0.1;
|
|
|
|
stopAt endTime;
|
|
//stopAt writeNow;
|
|
|
|
endTime 20;
|
|
|
|
deltaT 1.0e-2;
|
|
|
|
writeControl adjustableRunTime;
|
|
|
|
writeInterval 1;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat binary;
|
|
|
|
writePrecision 6;
|
|
|
|
writeCompression uncompressed;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 6;
|
|
|
|
runTimeModifiable yes;
|
|
|
|
adjustTimeStep yes;
|
|
|
|
maxCo 0.25;
|
|
|
|
maxDeltaT 1;
|
|
|
|
|
|
functions
|
|
{
|
|
forces
|
|
{
|
|
type forceCoeffs;
|
|
functionObjectLibs ( "libforces.so" );
|
|
|
|
writeControl timeStep;
|
|
writeInterval 1;
|
|
|
|
patches
|
|
(
|
|
cylinder
|
|
);
|
|
directForceDensity no;
|
|
|
|
pName p;
|
|
UName U;
|
|
rhoName rhoInf;
|
|
//log true;
|
|
rhoInf 994.5;
|
|
rho rhoInf;
|
|
CofR ( 0 0 0 );
|
|
liftDir ( 0 1 0 );
|
|
dragDir ( 1 0 0 );
|
|
pitchAxis ( 0 0 1 );
|
|
magUInf 10.0;
|
|
lRef 0.04;
|
|
Aref 0.0157;
|
|
Aref1 0.004;
|
|
rhoRef 994.5;
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|