Forces not calculated when including a library in controlDict
Hello,
The forces are not calculated when I include my own library in the controlDict. It seems like that nothing is run in the controlDict after I include the library. Here is my controlDict:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.3 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
applicationClass turbDyMFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 1.0000;
deltaT 0.005;
writeControl adjustableRunTime;
writeInterval 0.02;
cycleWrite 0;
writeFormat ascii;
writePrecision 7;
writeCompression uncompressed;
timeFormat general;
timePrecision 7;
runTimeModifiable yes;
adjustTimeStep yes;
maxCo 0.5;
maxDeltaT 1.0;
libs ("libmydynamicFvMesh.so")
functions
(
forces
{
type forces;
functionObjectLibs ("libforces.so");
outputControl outputTime;
// Patches to sample
patches (blade);
// Name of fields
pName p;
Uname U;
// Dump to file
log true;
// Density
rhoName rhoInf;
rhoInf 1000; //Reference density for fluid
// Centre of rotation
CofR (0 0 0.3);
}
);
Does someone know the way around this problem and can tell me what to do? I am using OF-1.5-dev.
Thank you.
|